Please forgive the length of this complicated and frustrating story, but I don't want to leave out what might turn out to be the key detail.
I installed Zen Cart 1.3.8a a couple of weeks ago and have been busy building a test site alongside my existing website ever since. I didn't have any prior experience with php, but I seem to have managed to teach myself just enough to get in trouble.
I wanted Zen Cart to bypass the checkout_shipping page, because that page really wasn't doing anything useful, given my particular shipping option configuration. The only way I could see to do it was to hack includes/modules/pages/checkout_shipping/header_php.php. I managed to get my hack to work, but several days later I made some mysterious mistake somewhere else in the checkout process, resulting in a white screen. In order to figure out what was going on with that, I removed all my overrides so I could put them back one by one and try to determine where the fault lay. I also removed my hacked header_php.php file and restored the default for it. Removing the overide files solved the white screen problem, but by some bizarre persistence of memory Zen Cart continued to bypass the checkout_shipping page after the default header_php.php was restored. I ran into other problems, too, and ultimately could see no option but to reinstall Zen Cart, which I did.
After reinstallation, I uploaded my override files one by one and got them to work, but now the hacked header_php.php caused a white screen. When I restored the default, however, the white screen would still appear -- until I disconnected from the internet, turned off my computer, turned it back on, and logged back online. Then my website would execute the default instead of the hack. Worse yet, I discovered that making any hack at all to the default, even just deleting text from a commented line, would now cause the white screen. This had not happened before and was completely incomprehensible to me.
It seemed as though somehow the simple process of saving the edited file might be messing it up somehow, so I replaced the poorly regarded Notepad with Notepad++. That didn't help.
Thinking about it, I have realized that there is another anomaly. When Zen Cart leaves the shopping cart page, it goes first to the checkout_shipping page, where the header redirects it to the log_in page if the user isn't logged in. That still works with a modified header_php.php, but when it tries to go from log_in to checkout_shipping, the screen goes white. Again, it does this even if the only modification is to change a line of comments. And, it only sees the restored default after I turn off my computer and turn it back on.
Any ideas as to what on earth is going on here?
My webhost was using php version 4.4.8, but offered the option of upgrading to version 5. I upgraded. No help. The version of MySql is 5.0.45-community. The server is running Linux, kernel version 2.6.9-55.0.2.ELsmp.
Many thanks!



