Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 31
  1. #21
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: ADMIN page wont load at all! HELP!

    Quote Originally Posted by SkipperMcNally View Post
    After digging, this is a PHP 5.2.4 Windows bug with a patch available in CVS:
    http://bugs.php.net/bug.php?id=42523
    Woot! -- Thanks for digging that up.
    I guess we'll just have to hope that the next PHP version fixes it properly.
    I'm not planning to make any changes to Zen Cart to accommodate this PHP bug. Will simply be instructing to upgrade PHP.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  2. #22
    Join Date
    Sep 2007
    Location
    Saint Albans, WV 25177
    Posts
    4
    Plugin Contributions
    0

    Default Re: ADMIN page wont load at all! HELP!

    the patch works "IT WORKS" Woooo Hooo

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

    Default Re: ADMIN page wont load at all! HELP!

    Hi,
    I was using PHP 5.25 and the bug appeared to be still there (it was fixed in 5.25)

    ie. using the test script
    <?php
    echo $_SERVER['PHP_SELF'];
    ?>

    returns the double path

    /catalog/admin/test.php/catalog/admin/test.php

    which is the symptom of the bug and stops the admin page from loading.

    However it was a fault with the Abyss web server I am using for development:
    In Scripting Parameters, edit the Interpreter entry and change the Type
    field from 'PHP Style' to 'Standard'.
    http://bugs.php.net/bug.php?id=43247&edit=2
    regards
    Steve

  4. #24
    Join Date
    Jan 2008
    Posts
    8
    Plugin Contributions
    0

    Default Re: ADMIN page wont load at all! HELP!

    After digging, this is a PHP 5.2.4 Windows bug with a patch available in CVS: http://bugs.php.net/bug.php?id=42523
    For those of you running PHP 5.2.4 on Windows who, for whatever reason, are not able to patch this (perhaps because you don;t own your own server, and your web hosting provider will not patch the PHP bug for you -- like me!!), I coded a workaround that accommodates PHP with and without the patch.

    First, locate application_top.php in /admin/includes/. Search for the code block in that file that looks something like this (if memory serves me, because I've already altered my code):

    PHP Code:
    // set php_self in the local scope
    if (!isset($PHP_SELF)) 
        
    $PHP_SELF $_SERVER['PHP_SELF']; 
    Then modify this code as follows:

    PHP Code:
    // set php_self in the local scope
    if (!isset($PHP_SELF)) 
    {
        if (
    substr_count($_SERVER['PHP_SELF'],'.') > 1)
        {
            
    $pathArr explode('/',$_SERVER['PHP_SELF']);
            
    $truePathArrCount = (count($pathArr) - 1) / 2;
            for (
    $i=1$i<=$truePathArrCount$i++)
            {
                
    $newPathArr[] = $pathArr[$i];
            }
            if (
    is_array($newPathArr))
            {
                
    $PHP_SELF '/' implode('/',$newPathArr);
            }
        }
        else
        {
            
    $PHP_SELF $_SERVER['PHP_SELF'];
        }

    Volia, the Admin page no longer hangs forever and you can log into the Admin area successfully.

  5. #25
    Join Date
    Mar 2008
    Posts
    10
    Plugin Contributions
    0

    Default Re: ADMIN page wont load at all! HELP!

    doesnt seem to work for me, still get the same double name
    if anyone has a resolution for this it would be good.

  6. #26

    Default Re: ADMIN page wont load at all! HELP!

    randallj2877 ~~ Thanks so much for solving this issue for us!!! It has been driving me nuts for almost an hour! I googled all over for it, "zencart admin redirect loop" and couldn't find anything. After enough variations I found a link to this thread and you had the answer. Phew. What a hassle. Silly PHP 5.2.4! Again, thanks so much for your help.

  7. #27
    Join Date
    Apr 2010
    Posts
    5
    Plugin Contributions
    0

    Default Re: ADMIN page wont load at all! HELP!

    Quote Originally Posted by randallj2877 View Post
    For those of you running PHP 5.2.4 on Windows who, for whatever reason, are not able to patch this (perhaps because you don;t own your own server, and your web hosting provider will not patch the PHP bug for you -- like me!!), I coded a workaround that accommodates PHP with and without the patch.

    First, locate application_top.php in /admin/includes/. Search for the code block in that file that looks something like this (if memory serves me, because I've already altered my code):

    PHP Code:
    // set php_self in the local scope
    if (!isset($PHP_SELF)) 
        
    $PHP_SELF $_SERVER['PHP_SELF']; 
    Then modify this code as follows:

    PHP Code:
    // set php_self in the local scope
    if (!isset($PHP_SELF)) 
    {
        if (
    substr_count($_SERVER['PHP_SELF'],'.') > 1)
        {
            
    $pathArr explode('/',$_SERVER['PHP_SELF']);
            
    $truePathArrCount = (count($pathArr) - 1) / 2;
            for (
    $i=1$i<=$truePathArrCount$i++)
            {
                
    $newPathArr[] = $pathArr[$i];
            }
            if (
    is_array($newPathArr))
            {
                
    $PHP_SELF '/' implode('/',$newPathArr);
            }
        }
        else
        {
            
    $PHP_SELF $_SERVER['PHP_SELF'];
        }

    Volia, the Admin page no longer hangs forever and you can log into the Admin area successfully.
    HOLY CRAP, you are a god. This fixed it for me! Thank the lord, I've been trying to resolve this for HOURS. Although, I am on a Linux server.

  8. #28
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: ADMIN page wont load at all! HELP!

    Quote Originally Posted by VincentD View Post
    HOLY CRAP, you are a god. This fixed it for me! Thank the lord, I've been trying to resolve this for HOURS. Although, I am on a Linux server.
    If you're running the PHP version that contains the bug ... then I suggest you get your PHP version fixed ASAP, since it's VERY old.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #29
    Join Date
    May 2006
    Location
    Queensland, Australia
    Posts
    248
    Plugin Contributions
    0

    Default Re: ADMIN page wont load at all! (Windows Bug in PHP 5.2.4)

    Greetings;

    I was getting the same error with the white page in the admin, the way i fixed it was by changing the premissions on the file

    /public_html/includes/configure.php

    As soon as i set that to (644) the admin section started working.

  10. #30
    Join Date
    May 2011
    Posts
    2
    Plugin Contributions
    0

    Default Re: ADMIN page wont load at all! (Windows Bug in PHP 5.2.4)

    Thank You randallj2877!
    I tried manually installing zen cart, but godaddy gave me a server error during the last step of the installation. So then I tried installing the app through godaddy. I was warned through the reviews that godaddy's zen cart app installation was faulty, but I didn't want to manually install it again (did it twice). So here I am trying to find a solution to the admin login page. Good thing I stumbled upon this post!

 

 
Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. v139h v1.3.9h admin page wont load when i enable php. 5.3
    By ICwater in forum General Questions
    Replies: 7
    Last Post: 11 Dec 2012, 01:04 AM
  2. admin page wont load
    By ben harry in forum General Questions
    Replies: 3
    Last Post: 21 Aug 2011, 05:42 PM
  3. Admin page wont load and dont know why!
    By AvieLF in forum General Questions
    Replies: 9
    Last Post: 15 Sep 2009, 11:17 AM
  4. admin wont load for me - Windows 2003 server
    By dkg920 in forum General Questions
    Replies: 6
    Last Post: 24 Jun 2008, 01:18 AM
  5. Admin Page wont load!
    By NickM in forum Installing on a Linux/Unix Server
    Replies: 19
    Last Post: 14 Apr 2008, 03:25 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