Just spent time upgrade one of my shopping cart from ZC 1.55f php 7.3 to ZC 1.57d with PHP 8.1
I have notice the following pattern:
ZC 1.57d seems to run flawlessly on Php 7.4. Its basic cart, so it doesnt really throw log entries at all, not even warnings or deprivation notices.
However up on upgrading to PHP 8.0 (and even 8.1) , ZC 1.57d throws a whole lot of warnings. The warnings looks like they are from ZC core files.
Is this a known issue with when running ZC 1.57d with PHP 8.0? Is there a way to temporarily suppress the warnings, as I don't think php.ini affects ZC log files?
Thanks.
----
Index page:
#1 require_once(/home/zencart/includes/init_includes/init_sessions.php) called at [/home/zencart/includes/autoload_func.php:37]
#2 require(/home/zencart/includes/autoload_func.php) called at [/home/zencart/includes/application_top.php:222]
#3 require(/home/zencart/includes/application_top.php) called at [/home/zencart/index.php:25]
--> PHP Warning: Undefined array key "SSL_SESSION_ID" in /home/zencart/includes/init_includes/init_sessions.php on line 132.
[21-May-2022 06:29:50 America/Los_Angeles] Request URI: /, IP address: xxx.xxx.xxx.xxx
#1 products_viewed_counter->should_be_excluded() called at [/home/zencart/includes/classes/observers/class.products_viewed_counter.php:17]
#2 products_viewed_counter->__construct() called at [/home/zencart/includes/autoload_func.php:44]
#3 require(/home/zencart/includes/autoload_func.php) called at [/home/zencart/includes/application_top.php:222]
#4 require(/home/zencart/includes/application_top.php) called at [/home/zencart/index.php:25]
--> PHP Warning: Undefined array key "spider_flag" in /home/zencart/includes/classes/observers/class.products_viewed_counter.php on line 37.
Load any category:
[21-May-2022 06:47:13 America/Los_Angeles] Request URI: /index.php?main_page=index&cPath=21, IP address: xxx.xxx.xxx.xxx
#1 require_once(/home/zencart/includes/init_includes/init_sessions.php) called at [/home/zencart/includes/autoload_func.php:37]
#2 require(/home/zencart/includes/autoload_func.php) called at [/home/zencart/includes/application_top.php:222]
#3 require(/home/zencart/includes/application_top.php) called at [/home/zencart/index.php:25]
--> PHP Warning: Undefined array key "SSL_SESSION_ID" in /home/zencart/includes/init_includes/init_sessions.php on line 132.
[21-May-2022 06:47:13 America/Los_Angeles] Request URI: /index.php?main_page=index&cPath=21, IP address: xxx.xxx.xxx.xxx
#1 products_viewed_counter->should_be_excluded() called at [/home/zencart/includes/classes/observers/class.products_viewed_counter.php:17]
#2 products_viewed_counter->__construct() called at [/home/zencart/includes/autoload_func.php:44]
#3 require(/home/zencart/includes/autoload_func.php) called at [/home/zencart/includes/application_top.php:222]
#4 require(/home/zencart/includes/application_top.php) called at [/home/zencart/index.php:25]
--> PHP Warning: Undefined array key "spider_flag" in /home/zencart/includes/classes/observers/class.products_viewed_counter.php on line 37.
[21-May-2022 06:47:13 America/Los_Angeles] Request URI: /index.php?main_page=index&cPath=21, IP address: xxx.xxx.xxx.xxx
#1 require_once(/home/zencart/includes/languages/english/index.php) called at [/home/zencart/includes/modules/require_languages.php:22]
#2 require(/home/zencart/includes/modules/require_languages.php) called at [/home/zencart/includes/modules/pages/index/header_php.php:123]
#3 require(/home/zencart/includes/modules/pages/index/header_php.php) called at [/home/zencart/index.php:35]
--> PHP Warning: Constant TABLE_HEADING_PRODUCTS already defined in /home/zencart/includes/languages/english/index.php on line 33.
Bookmarks