Results 1 to 8 of 8
  1. #1
    Join Date
    May 2005
    Location
    England
    Posts
    673
    Plugin Contributions
    0

    Default blank pages when upgrading to 2.10 zencart - unusual time stamp error logs

    php 8.2 , tried php 8.3 also. Zencart 2.10

    I wonder if someone might know what is causing these logs at all please? I am getting blank page on admin and store, it seems to be just the following error log. I had similar error when upgrading the dev site from 2.01, and did the 2.10 update carefully. Either I have done something really stupid or its a server related issue. I do recall having to do a fix for time / date at a previous upgrade juncture as I found a few others at that time having the same error. But I tried searching for some of these error warning snippets, but no results. Thanks in advance.


    PHP Code:
    [24-Feb-2025 23:12:21 Europe/LondonRequest URI/************//index.php?cmd=alert_pageIP address81.100.177.88Language id 1
    #0 /home/t**public_html/************/includes/init_includes/init_errors.php(160): zen_debug_error_handler()
    #1 /home/t**/public_html/************/includes/autoload_func.php(40): require_once('/home/t**/...')
    #2 /home/t**/public_html/************/includes/application_top.php(40): require('/home/t**r/...')
    #3 /home/t**/public_html/************/alert_page.php(7): require('/home/th**/...')
    #4 /home/**r/public_html/************/index.php(16): require('/home/t**/...')
    --> PHP WarningUndefined array key "coupon_expire_date" in /home/t**/public_html/test_store************/includes/init_includes/init_errors.php on line 160.

    [24-Feb-2025 23:12:21 Europe/LondonRequest URI/************//index.php?cmd=alert_pageIP address81.100.177.88Language id 1
    #0 /home/t**/public_html/************//includes/functions/functions_dates.php(325): zen_debug_error_handler()
    #1 /home**/public_html/************/includes/init_includes/init_errors.php(160): zen_date_diff()
    #2 /home/**r/public_html/************/includes/autoload_func.php(40): require_once('/home/**/...')
    #3 /home/t**r/public_html/************/************/includes/application_top.php(40): require('/home/**/...')
    #4 /home**/public_html//************/alert_page.php(7): require('/home/**/...')
    #5 /home/t**r/public_html//l************/index.php(16): require('/home/**/...')
    --> PHP WarningUndefined array key 1 in /home/**/public_html/************/includes/functions/functions_dates.php on line 325.

    [24-Feb-2025 23:12:21 Europe/LondonRequest URI/**/index.php?cmd=alert_pageIP address81.100.177.88Language id 1
    #0 /home/**public_html/************//includes/functions/functions_dates.php(326): zen_debug_error_handler()
    #1 /home/**/public_html/************//includes/init_includes/init_errors.php(160): zen_date_diff()
    #2 /home/**/public_html************//includes/autoload_func.php(40): require_once('/home/**/...')
    #3 /home/**r/public_html/************//includes/application_top.php(40): require('/home/**/...')
    #4 /home/t**/public_html/************//alert_page.php(7): require('/home/**/...')
    #5 /home/t**/public_html/************//index.php(16): require('/home/**/...')
    --> PHP WarningUndefined array key 2 in /home/**r/public_html/************//includes/functions/functions_dates.php on line 326.

    [24-Feb-2025 23:12:21 Europe/LondonPHP Fatal error:  Uncaught TypeErrormktime(): Argument #6 ($year) must be of type ?int, string given in /home/**/public_html/************//includes/functions/functions_dates.php:329
    Stack trace:
    #0 /home/t**/public_html/************//includes/functions/functions_dates.php(329): mktime()
    #1 /home/t**/public_html/************//includes/init_includes/init_errors.php(160): zen_date_diff()
    #2 /home/t**r/public_html/************//includes/autoload_func.php(40): require_once('/home/**/...')
    #3 /home/t**/public_html/************//includes/application_top.php(40): require('/home/**/...')
    #4 /home/**/public_html/************//alert_page.php(7): require('/home/**/...')
    #5 /home/t**/public_html/************//index.php(16): require('/home/**/...')
    #6 {main}
      
    thrown in /home/**/public_html/************//includes/functions/functions_dates.php on line 329

    [24-Feb-2025 23:12:21 Europe/LondonRequest URI: ************/index.php?cmd=alert_pageIP address81.100.177.88
    --> PHP Fatal errorUncaught TypeErrormktime(): Argument #6 ($year) must be of type ?int, string given in /home/**/public_html/test_store/includes/functions/functions_dates.php:329
    Stack trace:
    #0 /home/**r/public_html/************/functions/functions_dates.php(329): mktime()
    #1 /home/**/public_html/************/includes/init_includes/init_errors.php(160): zen_date_diff()
    #2 /home/**/public_html/************/includes/autoload_func.php(40): require_once('/home/**/...')
    #3 /home/**/public_html/************/includes/application_top.php(40): require('/home/**/...')
    #4 /home**/public_html/************/alert_page.php(7): require('/home/**/...')
    #5 /home/**r/public_html/************/index.php(16): require('/home/**/...')
    #6 {main}
      
    thrown in /home/**/public_html/************//includes/functions/functions_dates.php on line 329.

    [24-Feb-2025 23:12:21 Europe/LondonRequest URI/************//index.php?cmd=alert_pageIP address81.100.177.88
    --> PHP Fatal errorUncaught TypeErrormktime(): Argument #6 ($year) must be of type ?int, string given in /home/************//includes/functions/functions_dates.php:329
    Stack trace:
    #0 /************/public_html/************/includes/functions/functions_dates.php(329): mktime()
    #1 /************/public_html/************//includes/init_includes/init_errors.php(160): zen_date_diff()
    #2 /************/public_html/************//includes/autoload_func.php(40): require_once('/home/**/...')
    #3 /************/public_html/************//includes/application_top.php(40): require('/home/**/...')
    #4 /************/public_html/************//alert_page.php(7): require('/home/**/...')
    #5 /************/public_html/************//index.php(16): require('/home/**/...')
    #6 {main}
      
    thrown in /************/public_html/************//includes/functions/functions_dates.php on line 329. 
    Last edited by HeathenMagic; 25 Feb 2025 at 12:47 AM. Reason: sensitive data

  2. #2
    Join Date
    Apr 2008
    Location
    Qld, Australia
    Posts
    306
    Plugin Contributions
    6

    Default Re: blank pages when upgrading to 2.10 zencart - unusual time stamp error logs

    Have a look at the top of that file "/home/t**/public_html/test_store************/includes/init_includes/init_errors.php" ("\admin\includes\init_includes\init_errors.php").

    Line 6 should read " * @version $Id: torvista 2022 Mar 01 Modified in v1.5.8-alpha $" .
    This latest file has "coupon_expire_date" on line 158
    whereas the zc157 version has "coupon_expire_date" on line 158
    OldNGrey
    ZC158a PHP 8.2.15
    MySQL 10.6.16-MariaDB

  3. #3
    Join Date
    May 2005
    Location
    England
    Posts
    673
    Plugin Contributions
    0

    Default Re: blank pages when upgrading to 2.10 zencart - unusual time stamp error logs

    Quote Originally Posted by OldNGrey View Post
    Have a look at the top of that file "/home/t**/public_html/test_store************/includes/init_includes/init_errors.php" ("\admin\includes\init_includes\init_errors.php").

    Line 6 should read " * @version $Id: torvista 2022 Mar 01 Modified in v1.5.8-alpha $" .
    This latest file has "coupon_expire_date" on line 158
    whereas the zc157 version has "coupon_expire_date" on line 158
    Thanks for reply. Yes I had one line difference around there which seems to have pushed the line numbers around as you spotted. It was the following:-

    PHP Code:
    define('NEW_SIGNUP_DISCOUNT_COUPON''New Signup Discount'); 
    Which I saw was not in 2.10 so I overwrote. Though I get a second log now as follows:-

    PHP Code:
    --> PHP Fatal errorUncaught ErrorUndefined constant "NEW_SIGNUP_DISCOUNT_COUPON" in 

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,334
    Plugin Contributions
    94

    Default Re: blank pages when upgrading to 2.10 zencart - unusual time stamp error logs

    You've configured a NEW_SIGNUP_DISCOUNT_COUPON (Configuration / GV COUPONS / New Signup Discount Coupon ID#) that no longer exists.

    If you have access to your cPanel phpMyAdmin, you can search the site's configuration table's configuration_key fields for NEW_SIGNUP_DISCOUNT_COUPON and change that to 0.

    You could also create a simple file in the admin/includes/extra_datafiles/set_new_signup_discount_coupon.php that contains
    Code:
    <?php
    define('NEW_SIGNUP_DISCOUNT_COUPON', '0');
    Once you've successfully logged in, navigate to Configuration / GV Coupons to change that value and remove the newly-added file.

  5. #5
    Join Date
    May 2005
    Location
    England
    Posts
    673
    Plugin Contributions
    0

    Default Re: blank pages when upgrading to 2.10 zencart - unusual time stamp error logs

    Quote Originally Posted by lat9 View Post
    You've configured a NEW_SIGNUP_DISCOUNT_COUPON (Configuration / GV COUPONS / New Signup Discount Coupon ID#) that no longer exists.

    If you have access to your cPanel phpMyAdmin, you can search the site's configuration table's configuration_key fields for NEW_SIGNUP_DISCOUNT_COUPON and change that to 0.

    You could also create a simple file in the admin/includes/extra_datafiles/set_new_signup_discount_coupon.php that contains
    Code:
    <?php
    define('NEW_SIGNUP_DISCOUNT_COUPON', '0');
    Once you've successfully logged in, navigate to Configuration / GV Coupons to change that value and remove the newly-added file.
    Thanks for that! I actually searched for it and could not find, so I managed to add that sql line (via phpmyadmin) and an associated one and it seems those logs disappear. I can see admin login now, but live site still blank. I suppose my only recourse is to try the application_bootstrap.php and enable the relevant debug tester to 'true' and see what I can find? This 2.10 dev site is from the 1.58a path, where I did have to remove old defines that were giving possible blanks. But can't be that I suppose as already fixed them, Not getting any other error logs right now, just deprecated I think and they I reckon don't pose a problem just yet?

  6. #6
    Join Date
    May 2005
    Location
    England
    Posts
    673
    Plugin Contributions
    0

    Default Re: blank pages when upgrading to 2.10 zencart - unusual time stamp error logs

    Ah I just realised this tool:-

    if (!defined('DEBUG_AUTOLOAD')) define('DEBUG_AUTOLOAD', false);

    Is for admin side only I think, I tried developers toolkit to see if it occurs in includes/ . For 1.58a I had blank admin page for so long so this was useful for that, typical I have it other way round now lol.

    Though the only log I got since is starting like below, but it mentions debug so must have been when I was trying debu_autoload:-

    PHP Code:
    --> PHP WarningCannot modify header information headers already sent by (output started at /home/*********/public_html/********/includes/classes/InitSystem.php:58in /home/***********/public_html/********/includes/init_includes/init_gzip.php on line 34. 

  7. #7
    Join Date
    May 2005
    Location
    England
    Posts
    673
    Plugin Contributions
    0

    Default Re: blank pages when upgrading to 2.10 zencart - unusual time stamp error logs

    Actually looking at deprecated log, there is a fatal one there. Thats a lesson learned not to overlook them I guess!

    Its a weird one, I actually replaced this modified file (2.10 template supported apparently) and still blank, but perhaps somewhere for me to work from:-

    PHP Code:
    PHP Fatal error:  Uncaught TypeErrorUnsupported operand typesstring string in /home/*****/****/includes/templates/****/common/tpl_main_page.php:81
    Stack trace
    :
    #0 /home/*****/***/****/index.php(94): require()
    #1 {main}
      
    thrown in /home/*****/public_html/***/includes/templates/****/common/tpl_main_page.php on line 81 
    Which seems to be the following:-

    PHP Code:
    $side_columns_total $box_width_left $box_width_right
    I guess it could be a sql issue similar to the discount coupon thing?
    Last edited by HeathenMagic; 25 Feb 2025 at 11:54 AM.

  8. #8
    Join Date
    May 2005
    Location
    England
    Posts
    673
    Plugin Contributions
    0

    Default Re: blank pages when upgrading to 2.10 zencart - unusual time stamp error logs

    Think I am getting there now! Yes it must have been a php thing recognising this value, I have actually had pre 1.58a so must be stricter rules in the php language now:-


    Column Width - Right = Auto

    So I changed to a 250 px (though in template I turned off sideboxes right usually)

    And I am seeing a bit more progress on live site, something else to fix but deprecated error logs giving me clear pointers now. Think its just a sql entry from 2.10 update somehow needs adding again, somehow it must have not passed through in phpmyadmin (was doing it that way because of blank status).

 

 

Similar Threads

  1. Replies: 2
    Last Post: 29 Dec 2020, 06:24 AM
  2. Replies: 2
    Last Post: 14 Nov 2017, 03:03 AM
  3. Incorrect Date Time Stamp on Orders
    By pinkchalkstudio in forum Managing Customers and Orders
    Replies: 2
    Last Post: 3 Sep 2010, 07:23 AM
  4. Add time stamp to orders
    By ebaobao in forum Managing Customers and Orders
    Replies: 2
    Last Post: 18 Aug 2008, 05:28 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