Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Feb 2014
    Location
    Germany
    Posts
    101
    Plugin Contributions
    0

    help question 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:

    1. Installation with 8.0.27 finishes well
    2. Loading Frontend and Backend shows only white page / HTML error
    3. Switching to PHP 7.4.33 and reloading works
    4. 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)

  2. #2
    Join Date
    Feb 2014
    Location
    Germany
    Posts
    101
    Plugin Contributions
    0

    Default 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
    Last edited by Shop Suey; 14 Apr 2023 at 08:59 AM.

  3. #3
    Join Date
    Feb 2014
    Location
    Germany
    Posts
    101
    Plugin Contributions
    0

    Default 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.
    Last edited by Shop Suey; 18 Apr 2023 at 10:48 AM.

  4. #4
    Join Date
    Feb 2014
    Location
    Germany
    Posts
    101
    Plugin Contributions
    0

    Default 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

  5. #5
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,240
    Plugin Contributions
    1

    Default Re: PHP Problems after Upgrading (production sys) but also on Fresh install (test sys

    Quote Originally Posted by Shop Suey View Post
    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?
    Simon

  6. #6
    Join Date
    Feb 2014
    Location
    Germany
    Posts
    101
    Plugin Contributions
    0

    Default Re: PHP Problems after Upgrading (production sys) but also on Fresh install (test sys

    yes, these Name:  2023-04-18-132746_1920x1080_scrot.png
Views: 218
Size:  54.9 KB ones

  7. #7
    Join Date
    Feb 2014
    Location
    Germany
    Posts
    101
    Plugin Contributions
    0

    Default 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

  8. #8
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,240
    Plugin Contributions
    1

    Default Re: PHP Problems after Upgrading (production sys) but also on Fresh install (test sys

    Quote Originally Posted by Shop Suey View Post
    yes, these Name:  2023-04-18-132746_1920x1080_scrot.png
Views: 218
Size:  54.9 KB ones
    Quote Originally Posted by Shop Suey View Post
    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.
    Simon

  9. #9
    Join Date
    Feb 2014
    Location
    Germany
    Posts
    101
    Plugin Contributions
    0

    Default 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

  10. #10
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,521
    Plugin Contributions
    88

    Default 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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 5
    Last Post: 30 Jul 2020, 09:45 PM
  2. v153 Major problems upgrading from 1.5.3 and also fresh install of 1.5.4
    By irishshopper in forum General Questions
    Replies: 1
    Last Post: 5 Mar 2015, 11:13 PM
  3. v154 ZC154 admin havn't Menu after fresh install on PHP 5.2.17
    By sunrise99 in forum Upgrading to 1.5.x
    Replies: 6
    Last Post: 21 Jan 2015, 10:17 PM
  4. has anybody had luck with quickbooks merchant sys
    By stoneymontana in forum Addon Payment Modules
    Replies: 5
    Last Post: 16 Oct 2008, 04:02 AM
  5. Order Display Problems after upgrading to PHP 5.2.5
    By studio3d in forum General Questions
    Replies: 6
    Last Post: 23 Jan 2008, 02:37 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR