.
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.
the patch works "IT WORKS" Woooo Hooo
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
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.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
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):
Then modify this code as follows:PHP Code:
// set php_self in the local scope
if (!isset($PHP_SELF))
$PHP_SELF = $_SERVER['PHP_SELF'];
Volia, the Admin page no longer hangs forever and you can log into the Admin area successfully.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'];
}
}
doesnt seem to work for me, still get the same double name
if anyone has a resolution for this it would be good.
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.
.
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.
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.
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!
Bookmarks