-
Problem report
-
Resolution: Duplicate
-
Critical
-
None
-
5.2.4
-
uname -a
Linux rh-414-pc-43 5.10.13-arch1-2 #1 SMP PREEMPT Sat, 06 Feb 2021 11:07:29 +0000 x86_64 GNU/Linux
php -v
PHP 8.0.2 (cli) (built: Feb 2 2021 18:26:02) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.2, Copyright (c) Zend Technologies
apachectl -v
Server version: Apache/2.4.46 (Unix)
Server built: Oct 14 2020 18:59:56
MariaDB [(none)]> SELECT VERSION();
+----------------+
| VERSION() |
+----------------+
| 10.5.8-MariaDB |
+----------------+
1 row in set (0.000 sec)
uname -a Linux rh-414-pc-43 5.10.13-arch1-2 #1 SMP PREEMPT Sat, 06 Feb 2021 11:07:29 +0000 x86_64 GNU/Linux php -v PHP 8.0.2 (cli) (built: Feb 2 2021 18:26:02) ( NTS ) Copyright (c) The PHP Group Zend Engine v4.0.2, Copyright (c) Zend Technologies apachectl -v Server version: Apache/2.4.46 (Unix) Server built: Oct 14 2020 18:59:56 MariaDB [(none)]> SELECT VERSION(); +----------------+ | VERSION() | +----------------+ | 10.5.8-MariaDB | +----------------+ 1 row in set (0.000 sec)
Steps to reproduce:
- Open Dashboard (http://my.host/zabbix)
- Login as Administrator
- Open any page
Result:
Not on all `dashbrd-grid-widget` but on a lot, you get the following error output.
Required parameter $sql_parts follows optional parameter $table_alias [zabbix.php:22 → require_once() → ZBase->run() → CSettingsHelper::getGlobal() → CSettingsHelper::loadParams() → API::getApiService() → CRegistryFactory->getObject() → CApiService->__construct() → CApiService->pk() → CApiService->getTableSchema() → CAutoloader->loadClass() → require() in include/classes/core/CAutoloader.php:77] Required parameter $sql_parts follows optional parameter $table_alias [zabbix.php:22 → require_once() → ZBase->run() → CSettingsHelper::getGlobal() → CSettingsHelper::loadParams() → API::getApiService() → CRegistryFactory->getObject() → CApiService->__construct() → CApiService->pk() → CApiService->getTableSchema() → CAutoloader->loadClass() → require() in include/classes/core/CAutoloader.php:77] Required parameter $sql_parts follows optional parameter $table_alias [zabbix.php:22 → require_once() → ZBase->run() → CSettingsHelper::getGlobal() → CSettingsHelper::loadParams() → API::getApiService() → CRegistryFactory->getObject() → CApiService->__construct() → CApiService->pk() → CApiService->getTableSchema() → CAutoloader->loadClass() → require() in include/classes/core/CAutoloader.php:77] Required parameter $sql_parts follows optional parameter $table_alias [zabbix.php:22 → require_once() → ZBase->run() → CSettingsHelper::getGlobal() → CSettingsHelper::loadParams() → API::getApiService() → CRegistryFactory->getObject() → CApiService->__construct() → CApiService->pk() → CApiService->getTableSchema() → CAutoloader->loadClass() → require() in include/classes/core/CAutoloader.php:77]
I tried to find the right place, but couldn't find the function.
I know that since php 8, there is a quite similar [deprecation](https://php.watch/versions/8.0/deprecate-required-param-after-optional) notice if a function defines a mandatory parameter after an optional.
Apache `error_log` is silent so far. I am using apache with php-fpm.
The error exists since I've upgraded to php 8 (because arch did it this way).
Buzz me if you need more information.
I was not able to find a repostiory for this code, could you please point me to it, if possible?
Expected:
No error is displayed.
- duplicates
-
ZBXNEXT-7080 Provide Frontend support for the upcoming PHP 8.0 + JIT
- Closed
- is duplicated by
-
ZBX-19086 Zabbix deprication issues with PHP 8.0+
- Closed
- mentioned in
-
Page Loading...