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

    Default blank page when switching to php 8.x

    I did the upgrade to 1.58 finally, everything works on php 7.x . But if I switch to any php 8 version, I get a blank page. I had the same issue for the customer side, but I had some logs to work with. I think it was some language constant files. Sorting that fixed that issue. But I get no logs for the admin at all. I followed the same procedure and deleted old language files from stock zencart. And deleting any old modules. But I am thinking maybe its a file in includes/ and not admin/ that is causing this. Though I would have thought I would see a log file?

    I upgraded my normal way, perhaps in hindsight should have started from stock 1.58 but had quite a few important customisations and modules present. This process has usually worked out fine in the past. Grateful for any pointers, I reload admin page it quickly goes to blank white page. Thanks in advance.

  2. #2
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,754
    Plugin Contributions
    30

    Default Re: blank page when switching to php 8.x

    If there's no log, something is breaking before it gets to loading the file that does the error logging.

    So you need some info on the processing prior to that.

    In
    admin\includes\application_bootstrap.php

    set this to true:

    Code:
    if (!defined('DEBUG_AUTOLOAD')) define('DEBUG_AUTOLOAD', false);
    and you should see where things are coming to a halt.

    Also there should be something in the actual server error log.
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

  3. #3
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,187
    Plugin Contributions
    63

    Default Re: blank page when switching to php 8.x

    Quote Originally Posted by HeathenMagic View Post
    I did the upgrade to 1.58 finally, everything works on php 7.x . But if I switch to any php 8 version, I get a blank page. I had the same issue for the customer side, but I had some logs to work with. I think it was some language constant files. Sorting that fixed that issue. But I get no logs for the admin at all. I followed the same procedure and deleted old language files from stock zencart. And deleting any old modules. But I am thinking maybe its a file in includes/ and not admin/ that is causing this. Though I would have thought I would see a log file?

    I upgraded my normal way, perhaps in hindsight should have started from stock 1.58 but had quite a few important customisations and modules present. This process has usually worked out fine in the past. Grateful for any pointers, I reload admin page it quickly goes to blank white page. Thanks in advance.
    I found this alot when we were building 1.5.8. They couldn't go past PHP 7.4. I think it was server config issues because it was only some hosts.

    ~melanie
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

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

    Default Re: blank page when switching to php 8.x

    Quote Originally Posted by torvista View Post
    If there's no log, something is breaking before it gets to loading the file that does the error logging.

    So you need some info on the processing prior to that.

    In
    admin\includes\application_bootstrap.php

    set this to true:

    Code:
    if (!defined('DEBUG_AUTOLOAD')) define('DEBUG_AUTOLOAD', false);
    and you should see where things are coming to a halt.

    Also there should be something in the actual server error log.
    Oh thanks very much for your help! I didn't know that trick, I knew about the enable error configure file. I got a constants error in configure.php, which must be a legacy code (as it doesn't appear exactly in fileset to merge I guess):-

    $t1 = parse_url(HTTP_SERVER);$p1 = $t1['path'];$t2 = parse_url(HTTPS_SERVER);$p2 = $t2['path'];
    define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p1) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
    define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p1) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
    That gave me another error appearing when I set to false, which was ioncube module for google search tool. Though Numinix marks it as 1.58, perhaps my server completely hates ioncube on php 8.x (tried 8.1 which is last ioncube comaptible server say).
    So I disabled that, but still the blank problem persists..... very strange. Perhaps time to double check ioncube thing, though the 'true' setting doesn't show any errors. Just the process queue.

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

    Default Re: blank page when switching to php 8.x

    Thanks for your reply. Yes I am thinking maybe it is server config. I did the php options checklist and ticked the required, so maybe it is as no more errors mentioned.Very frustrating as the customer side seems to work just fine.

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

    Default Re: blank page when switching to php 8.x

    Quote Originally Posted by mprough View Post
    I found this alot when we were building 1.5.8. They couldn't go past PHP 7.4. I think it was server config issues because it was only some hosts.

    ~melanie
    I think you may be right. Tried transplanting stock 1.58a admin files with configure set correctly of course, and still blank. Am thinking it must be something in sql data somehow not liking php 8.x on admin side . Next step is to try upgrade to 2.01 on dev site and hope that might fix it. The live site is totally fine, and no logs to point to the admin issue, which is frustrating. If anybody has any possible things to try would be grateful, thanks in advance.

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

    Default Re: blank page when switching to php 8.x

    I finally solved it, got error log for shopping cart from a shipping plugin. It for some reason did not install one sql row, which I manually added to reflect the call. Otherwise it was blanking admin page, yet live site not so bad in php 8 switch.

 

 

Similar Threads

  1. v157 Blank screen in admin when switching from English
    By haakon0603 in forum Addon Language Packs
    Replies: 2
    Last Post: 26 Dec 2021, 06:38 PM
  2. Replies: 3
    Last Post: 20 Dec 2015, 10:29 AM
  3. Blank Confirmation page when switching from PHP4 to PHP5
    By gump47371 in forum General Questions
    Replies: 4
    Last Post: 28 Sep 2011, 11:26 PM
  4. Replies: 2
    Last Post: 3 Aug 2008, 03:51 PM
  5. Help! Blank Page & PHP Errors when trying to Checkout or Add to Cart!
    By nsweet in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 2 Aug 2008, 06:26 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