PHP Problems after Upgrading (production sys) but also on Fresh install (test sys)
I just upgraded to the newest version 1.5.7f.
I'm using the German version (zen-cart-pro.at).
1. Various items e.g. "stats_products_lowstock" in the admin don't work and show up a simple white HTML error page and an additional warning log (see below):
HTML Code:
[11-Apr-2023 09:02:32 Europe/Berlin] PHP Fatal error: Uncaught Error: Call to undefined function error_log() in /includes/extra_configures/enable_error_logging.php:91
Stack trace:
#0 /admin/stats_products_lowstock.php(16): zen_debug_error_handler()
#1 /admin/index.php(18): require('...')
#2 {main}
thrown in /includes/extra_configures/enable_error_logging.php on line 91
[11-Apr-2023 09:02:32 Europe/Berlin] PHP Fatal error: Uncaught Error: Call to undefined function error_log() in /includes/extra_configures/enable_error_logging.php:104
Stack trace:
#0 [internal function]: zen_fatal_error_handler()
#1 {main}
thrown in /includes/extra_configures/enable_error_logging.php on line 104
[11-Apr-2023 09:02:32 Europe/Berlin] PHP Fatal error: Uncaught Error: Call to undefined function error_log() in /includes/extra_configures/enable_error_logging.php:91
Stack trace:
#0 /includes/classes/db/mysql/query_factory.php(123): zen_debug_error_handler()
#1 /includes/classes/db/mysql/query_factory.php(477): queryFactory->prepare_input()
#2 /includes/classes/db/mysql/query_factory.php(511): queryFactory->getBindVarValue()
#3 /includes/functions/sessions.php(75): queryFactory->bindVars()
#4 [internal function]: _sess_write()
#5 {main}
thrown in /includes/extra_configures/enable_error_logging.php on line 91
[11-Apr-2023 09:02:32 Europe/Berlin] PHP Fatal error: Uncaught Error: Call to undefined function error_log() in /includes/extra_configures/enable_error_logging.php:91
Stack trace:
#0 [internal function]: zen_debug_error_handler()
#1 {main}
thrown in /includes/extra_configures/enable_error_logging.php on line 91
2. On a test subdomain I installed a fresh installation which also shows the following error:
- Installation with 8.0.27 finishes well
- Loading Frontend and Backend shows only white page / HTML error
- Switching to PHP 7.4.33 and reloading works
- Switching then back again to 8.0.27 and reloading also works !!! for Frontend and Backend, but with the above problems and error logs.
The maintainer of the German version says I haven't uploaded all files. But I compared the downloaded file and I unzipped the full file directly on the server via SSH.
3. Another curiosity is that the module for showing "price per unit" disappears in the Fronend when switching to PHP 7.4.33
Any help is very appreciated.
Information about my system
zc German version (zen-cart-pro.at) 1.5.7f
debian stable
Linux 5.10.0-21-amd64
PHP 8.0.27
PHP Memory Limit: 256M
Datenbank Engine: MySQL 10.5.18-MariaDB-0+deb11u1
MySQL Slow Query Log Status: Off
MySQL Modus: (None set)
Re: PHP Problems after Upgrading (production sys) but also on Fresh install (test sys
I tested another hosting which runs Ubuntu and PHP 8.0.28.
There don't appear these kind of problems.
Though there are warning logs too (but different kind of)
Code:
[14-Apr-2023 09:55:36 Europe/Berlin] Request URI: /admin/stats_products_lowstock.php?page=all&sort=products_name&dir=ASC&cat=, IP address: 31.18.248.9, Language id 43
--> PHP Warning: Undefined array key "mfg" in /admin/stats_products_lowstock.php on line 20.
[14-Apr-2023 09:55:36 Europe/Berlin] Request URI: /admin/stats_products_lowstock.php?page=all&sort=products_name&dir=ASC&cat=, IP address: 31.18.248.9, Language id 43
--> PHP Warning: Undefined array key "status" in /admin/stats_products_lowstock.php on line 21.
[14-Apr-2023 09:55:36 Europe/Berlin] Request URI: /admin/stats_products_lowstock.php?page=all&sort=products_name&dir=ASC&cat=, IP address: 31.18.248.9, Language id 43
--> PHP Warning: Undefined array key "csv" in /admin/stats_products_lowstock.php on line 22.
[14-Apr-2023 09:55:36 Europe/Berlin] Request URI: /admin/stats_products_lowstock.php?page=all&sort=products_name&dir=ASC&cat=, IP address: 31.18.248.9, Language id 43
--> PHP Warning: Undefined variable $replace_dir in /admin/stats_products_lowstock.php on line 149.
[14-Apr-2023 09:55:36 Europe/Berlin] Request URI: /admin/stats_products_lowstock.php?page=all&sort=products_name&dir=ASC&cat=, IP address: 31.18.248.9, Language id 43
--> PHP Warning: Undefined variable $dir_model in /admin/stats_products_lowstock.php on line 162.
[14-Apr-2023 09:55:36 Europe/Berlin] PHP Fatal error: Uncaught TypeError: Unsupported operand types: string * string in /admin/stats_products_lowstock.php:173
Stack trace:
#0 {main}
thrown in /admin/stats_products_lowstock.php on line 173
[14-Apr-2023 09:55:36 Europe/Berlin] Request URI: /admin/stats_products_lowstock.php?page=all&sort=products_name&dir=ASC&cat=, IP address: 31.18.248.9
--> PHP Fatal error: Uncaught TypeError: Unsupported operand types: string * string in /admin/stats_products_lowstock.php:173
Stack trace:
#0 {main}
thrown in /admin/stats_products_lowstock.php on line 173.
Linux dd6006 5.15.0-60-generic #66-Ubuntu
PHP Version: 8.0.28 (Zend: 4.0.28)
PHP Memory Limit: 256M
Datenbank Engine: MySQL 10.6.12-MariaDB-0ubuntu0.22.04.1-log
MySQL Slow Query Log Status: On
MySQL Modus: NO_ENGINE_SUBSTITUTION
Re: PHP Problems after Upgrading (production sys) but also on Fresh install (test sys
no chance to have running it with PHP 8.0
Create Account resulted in an Error Page :(
So switched down to 7.4.33 meanwhile.
Here another error message at admin -> database-backup (translated)
Code:
ERROR: This Backup-Skript seldom works, if safe_mode is activated or if there are open_basedir restrictions.
Code:
MySQL Tools (mysql, mysqldump) not found.
Re: PHP Problems after Upgrading (production sys) but also on Fresh install (test sys
Just tried to install the US version 1.5..8a.
Installer runs perfect, but then HTML error with PHP 8.0
Re: PHP Problems after Upgrading (production sys) but also on Fresh install (test sys
Quote:
Originally Posted by
Shop Suey
Just tried to install the US version 1.5..8a.
Installer runs perfect, but then HTML error with PHP 8.0
Are there any error logs in the /logs folder?
1 Attachment(s)
Re: PHP Problems after Upgrading (production sys) but also on Fresh install (test sys
yes, these Attachment 20263 ones
Re: PHP Problems after Upgrading (production sys) but also on Fresh install (test sys
at Install everything "PASSED"
Firtst access to frontend:
Code:
[18-Apr-2023 13:45:30 Europe/Berlin] PHP Warning: Undefined variable $_SESSION in /home/users/roller/www/usa-158a/includes/extra_configures/enable_error_logging.php on line 84
[18-Apr-2023 13:45:30 Europe/Berlin] PHP Warning: Trying to access array offset on value of type null in /home/users/roller/www/usa-158a/includes/extra_configures/enable_error_logging.php on line 84
[18-Apr-2023 13:45:30 Europe/Berlin] PHP Fatal error: Uncaught Error: Call to undefined function error_log() in /home/users/roller/www/usa-158a/includes/extra_configures/enable_error_logging.php:89
Stack trace:
#0 [internal function]: zen_debug_error_handler()
#1 /home/users/roller/www/usa-158a/includes/functions/sessions.php(164): session_save_path()
#2 /home/users/roller/www/usa-158a/includes/init_includes/init_sessions.php(29): zen_session_save_path()
#3 /home/users/roller/www/usa-158a/includes/autoload_func.php(40): require_once('...')
#4 /home/users/roller/www/usa-158a/includes/application_top.php(237): require('...')
#5 /home/users/roller/www/usa-158a/index.php(25): require('...')
#6 {main}
thrown in /home/users/roller/www/usa-158a/includes/extra_configures/enable_error_logging.php on line 89
[18-Apr-2023 13:45:30 Europe/Berlin] PHP Fatal error: Uncaught Error: Call to undefined function error_log() in /home/users/roller/www/usa-158a/includes/extra_configures/enable_error_logging.php:102
Stack trace:
#0 [internal function]: zen_fatal_error_handler()
#1 {main}
thrown in /home/users/roller/www/usa-158a/includes/extra_configures/enable_error_logging.php on line 102
Firtst access to admin:
Code:
[18-Apr-2023 11:59:40 Europe/Berlin] PHP Warning: Undefined variable $_SESSION in /home/users/roller/www/usa-158a/includes/extra_configures/enable_error_logging.php on line 84
[18-Apr-2023 11:59:40 Europe/Berlin] PHP Warning: Trying to access array offset on value of type null in /home/users/roller/www/usa-158a/includes/extra_configures/enable_error_logging.php on line 84
[18-Apr-2023 11:59:40 Europe/Berlin] PHP Fatal error: Uncaught Error: Call to undefined function error_log() in /home/users/roller/www/usa-158a/includes/extra_configures/enable_error_logging.php:89
Stack trace:
#0 [internal function]: zen_debug_error_handler()
#1 /home/users/roller/www/usa-158a/sHell-ziM-stIll/includes/init_includes/init_cache_key_check.php(14): file_exists()
#2 /home/users/roller/www/usa-158a/includes/autoload_func.php(40): require_once('...')
#3 /home/users/roller/www/usa-158a/sHell-ziM-stIll/includes/application_top.php(42): require('...')
#4 /home/users/roller/www/usa-158a/sHell-ziM-stIll/home.php(9): require('...')
#5 /home/users/roller/www/usa-158a/sHell-ziM-stIll/index.php(11): require('...')
#6 {main}
thrown in /home/users/roller/www/usa-158a/includes/extra_configures/enable_error_logging.php on line 89
[18-Apr-2023 11:59:40 Europe/Berlin] PHP Fatal error: Uncaught Error: Call to undefined function error_log() in /home/users/roller/www/usa-158a/includes/extra_configures/enable_error_logging.php:102
Stack trace:
#0 [internal function]: zen_fatal_error_handler()
#1 {main}
thrown in /home/users/roller/www/usa-158a/includes/extra_configures/enable_error_logging.php on line 102
Re: PHP Problems after Upgrading (production sys) but also on Fresh install (test sys
Quote:
Originally Posted by
Shop Suey
Quote:
Originally Posted by
Shop Suey
Just tried to install the US version 1.5..8a.
Installer runs perfect, but then HTML error with PHP 8.0
Open the log file that is generated by "but then HTML error with PHP 8.0" and post its contents here.
Re: PHP Problems after Upgrading (production sys) but also on Fresh install (test sys
Fro admin it is:
Code:
[[18-Apr-2023 13:45:30 Europe/Berlin] PHP Warning: Undefined variable $_SESSION in /home/users/roller/www/usa-158a/includes/extra_configures/enable_error_logging.php on line 84
[18-Apr-2023 13:45:30 Europe/Berlin] PHP Warning: Trying to access array offset on value of type null in /home/users/roller/www/usa-158a/includes/extra_configures/enable_error_logging.php on line 84
[18-Apr-2023 13:45:30 Europe/Berlin] PHP Fatal error: Uncaught Error: Call to undefined function error_log() in /home/users/roller/www/usa-158a/includes/extra_configures/enable_error_logging.php:89
Stack trace:
#0 [internal function]: zen_debug_error_handler()
#1 /home/users/roller/www/usa-158a/includes/functions/sessions.php(164): session_save_path()
#2 /home/users/roller/www/usa-158a/includes/init_includes/init_sessions.php(29): zen_session_save_path()
#3 /home/users/roller/www/usa-158a/includes/autoload_func.php(40): require_once('...')
#4 /home/users/roller/www/usa-158a/includes/application_top.php(237): require('...')
#5 /home/users/roller/www/usa-158a/index.php(25): require('...')
#6 {main}
thrown in /home/users/roller/www/usa-158a/includes/extra_configures/enable_error_logging.php on line 89
[18-Apr-2023 13:45:30 Europe/Berlin] PHP Fatal error: Uncaught Error: Call to undefined function error_log() in /home/users/roller/www/usa-158a/includes/extra_configures/enable_error_logging.php:102
Stack trace:
#0 [internal function]: zen_fatal_error_handler()
#1 {main}
thrown in /home/users/roller/www/usa-158a/includes/extra_configures/enable_error_logging.php on line 102
For Frontend is is:
Code:
[18-Apr-2023 13:45:30 Europe/Berlin] PHP Warning: Undefined variable $_SESSION in /home/users/roller/www/usa-158a/includes/extra_configures/enable_error_logging.php on line 84
[18-Apr-2023 13:45:30 Europe/Berlin] PHP Warning: Trying to access array offset on value of type null in /home/users/roller/www/usa-158a/includes/extra_configures/enable_error_logging.php on line 84
[18-Apr-2023 13:45:30 Europe/Berlin] PHP Fatal error: Uncaught Error: Call to undefined function error_log() in /home/users/roller/www/usa-158a/includes/extra_configures/enable_error_logging.php:89
Stack trace:
#0 [internal function]: zen_debug_error_handler()
#1 /home/users/roller/www/usa-158a/includes/functions/sessions.php(164): session_save_path()
#2 /home/users/roller/www/usa-158a/includes/init_includes/init_sessions.php(29): zen_session_save_path()
#3 /home/users/roller/www/usa-158a/includes/autoload_func.php(40): require_once('...')
#4 /home/users/roller/www/usa-158a/includes/application_top.php(237): require('...')
#5 /home/users/roller/www/usa-158a/index.php(25): require('...')
#6 {main}
thrown in /home/users/roller/www/usa-158a/includes/extra_configures/enable_error_logging.php on line 89
[18-Apr-2023 13:45:30 Europe/Berlin] PHP Fatal error: Uncaught Error: Call to undefined function error_log() in /home/users/roller/www/usa-158a/includes/extra_configures/enable_error_logging.php:102
Stack trace:
#0 [internal function]: zen_fatal_error_handler()
#1 {main}
thrown in /home/users/roller/www/usa-158a/includes/extra_configures/enable_error_logging.php on line 102
Re: PHP Problems after Upgrading (production sys) but also on Fresh install (test sys
Go to your admin's Tools :: Server/Version Info and find occurrences of error_log on the screen. It 'looks like' your webhost (for whatever reason) has added the base PHP error_log function to your site's disabled_functions list.
You'll need to contact your webhost to get that corrected.