[ZBX-16117] The first attempt to load Zabbix UI ends with 500 Error and PHP fatal error Created: 2019 May 12  Updated: 2024 Apr 10  Resolved: 2019 May 20

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Documentation (D)
Affects Version/s: 4.0.7, 4.2.1
Fix Version/s: 4.4 (plan)

Type: Documentation task Priority: Minor
Reporter: Alexander Vladishev Assignee: Andrejs Verza
Resolution: Fixed Votes: 0
Labels: fatalerror
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2019-05-12-20-49-50-962.png    
Team: Team B
Sprint: Sprint 52 (May 2019)
Story Points: 0.5

 Description   

Steps to reproduce:

  1. Setup Zabbix UI with PHP 7.3
  2. Try to open Login page

Result:

[Sat May 11 10:15:14.047083 2019] [php7:error] [pid 535] [client 192.168.3.107:45694] PHP Fatal error:  Uncaught Error: Unsupported operand types in include/classes/core/ZBase.php:111\nStack trace:\n#0 include/classes/core/ZBase.php(119): ZBase->init()\n#1 include/config.inc.php(33): ZBase->run('default')\n#2 index.php(25): require_once('...')\n#3 {main}\n  thrown in include/classes/core/ZBase.php on line 111


 Comments   
Comment by Alexander Vladishev [ 2019 May 12 ]

This also mentioned in:

Comment by Andrejs Verza [ 2019 May 13 ]

Resolved in development branch feature/ZBX-16117-4.0.

Comment by Andrejs Verza [ 2019 May 15 ]

Since this is a PHP bug (which hopefully will be fixed soon), the most correct solution seems to only mention this problem in the "Known issues" section of the Installation manual, along with a workaround to the problem.

Here is what should be put to the "Known issues":

PHP 7.3 opcache configuration
-----------------------------
If "opcache" is enabled in the PHP 7.3 configuration, the frontend may show blank screen when loaded for the first time. This is a PHP bug (Bug #78015). To workaround this, please set the "opcache.optimization_level" parameter to 0x7FFFBFDF in PHP configuration (php.ini file).

Comment by Andrejs Verza [ 2019 May 15 ]

Created a PHP bug report #78015.

Comment by richlv [ 2019 May 15 ]

Included the upstream bug in https://zabbix.org/wiki/Upstream_Issues

Comment by Alexander Vladishev [ 2019 May 20 ]

Added to the known issues: 4.0, 4.2, 4.4.

Generated at Wed Apr 09 10:03:08 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.