If this is your first visit, check our documentation. To post, register or login.
Forums / Upgrading Your Zen Cart / Upgrading from 1.3.x to 1.3.9 / 1.3.7 to 1.3.8a -> blank page on the public side

1.3.7 to 1.3.8a -> blank page on the public side

Locked

Started by sanji on 25 Dec 2007, 10:29 PM · Views: 4,152

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
25 Dec 2007, 10:29 PM
#1
sanji avatar

sanji

Zen Follower

Join Date:
Jan 2005
Posts:
138
Plugin Contributions:
0

Post #1 by sanji

Hello,

I have just upgraded my 1.3.7 cart to the latest 1.3.8a version, and I am running into a problem: when I try to enter on the public side of the site, I get only a white page. A completely white page, without any single code on it (not even the <html>)...

The upgrade proceeded smoothly, I first updated my files with WinMerge (I
use several mods), uploaded them and upgraded the database. No error was found.

Admin side is OK, it is just the public side that causes problem.

Of course, since I use modified files, I don't expect a straight answer - after all, this is my problem - but I hope that someone could explain me what could cause this completely blank page to appear...

When I type the following address : http://www.sogival.com/~ilot20
I get redirected to : http://www.sogival.com/~ilot20/index.php?main_page=login (blank page)

Thanks,

sanji

25 Dec 2007, 10:40 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Post #2 by kuroi

As an added security measure, Zen Cart 1.3.8 turns off all PHP error reporting.

In 1.3.7, if your site had a problem before it reached the point of outputting any normal text, you would have seen the PHP error message. Now you will just see a blank screen.

You can, temporarily, turn the error messages on again to see where the failure is taking place, by commenting out (as shown) the line highlighted in red below in your includes/application_top.php file> if (defined('STRICT_ERROR_REPORTING') && STRICT_ERROR_REPORTING == true) {

@ini_set('display_errors', '1');
error_reporting(E_ALL);
} else {
// error_reporting(0);
}

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

25 Dec 2007, 11:38 PM
#3
sanji avatar

sanji

Zen Follower

Join Date:
Jan 2005
Posts:
138
Plugin Contributions:
0

Post #3 by sanji

Thanks a lot Kuroi! This allowed me to see the problem - the master passord mod had to be upgraded, too - and solve it.

I appreciate, as usually, your fast and effective help.

sanji

26 Dec 2007, 4:38 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #4 by drbyte

kuroi:

As an added security measure, Zen Cart 1.3.8 turns off all PHP error reporting.

In 1.3.7, if your site had a problem before it reached the point of outputting any normal text, you would have seen the PHP error message. Now you will just see a blank screen.

You can, temporarily, turn the error messages on again to see where the failure is taking place, by commenting out (as shown) the line highlighted in red below in your includes/application_top.php file

The less intrusive way to do the same thing is to follow step #2 of this FAQ:
https://www.zen-cart.com/tutorials/index.php?article=82
... that way you don't have to touch the application_top file.

.
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.

26 Dec 2007, 10:45 PM
#5
sanji avatar

sanji

Zen Follower

Join Date:
Jan 2005
Posts:
138
Plugin Contributions:
0

Post #5 by sanji

I could use the error log of my host, but franckly, I think that the following error :

Parse error: syntax error, unexpected '?' in /web/includes/languages/french.php on line 600

is much more clear than the logged one :

[Wed Dec 26 23:40:00 2007] [error] PHP Fatal error: Call to undefined function: sefreltoabs() in web/components/com_content/content.html.php on line 584

After all, the shop is offline for the moment...

Thanks,

sanji

5 Feb 2008, 3:17 PM
#6
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

Post #6 by qhome

kuroi:

As an added security measure, Zen Cart 1.3.8 turns off all PHP error reporting.

In 1.3.7, if your site had a problem before it reached the point of outputting any normal text, you would have seen the PHP error message. Now you will just see a blank screen.

You can, temporarily, turn the error messages on again to see where the failure is taking place, by commenting out (as shown) the line highlighted in red below in your includes/application_top.php file

Ahh thank you Kuroi & Dr Byte.... this was driving me crazy. I have been searching "enable php errors" but kept getting garbage results. and that cache/log contrib work around is a pain. I need my php errors sometimes.

5 Feb 2008, 3:24 PM
#7
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Post #7 by kuroi

Ooouuu. You're going to get me into trouble. Already had my wrist slapped once by DrByte for suggesting people edit application_top! :smile:

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

5 Feb 2008, 3:25 PM
#8
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

Post #8 by qhome

Could do without the Yellow box tho. That should probably be moved to the admin panel to "passively" alert the admin that it is enabled. Message should probably be moved to language file as well. Perhaps the whole shebang should be moved to the Admin section.

5 Feb 2008, 3:29 PM
#9
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

Post #9 by qhome

kuroi:

Ooouuu. You're going to get me into trouble. Already had my wrist slapped once by DrByte for suggesting people edit application_top! :smile:

heh sorry.. i read yours and replied before reading Dr Bytes method. Either way they are both flawed :D:P

6 Feb 2008, 8:24 AM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #10 by drbyte

Your comments are understandable if you're doing development or debugging.
But not for a live site.

.
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.

6 Feb 2008, 11:55 AM
#11
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

Post #11 by qhome

DrByte:

Your comments are understandable if you're doing development or debugging.
But not for a live site.

Well the problem has always been the message stack doesn't really belong on the customer side. If you are in maintenance mode and you enable errors, customers will still see your message stack debug messages while still able to use the contact us page and stuff. Messagestack should really be admin side only.. especially on a live site.

7 Feb 2008, 3:25 AM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #12 by drbyte

qhome:

Messagestack should really be admin side only.. especially on a live site.

So, a messageStack notification that the customer has entered invalid information shouldn't be displayed to them? I think I'll have to disagree with the idea that messageStack should be admin only. The messageStack is used to communicate important messages, and in specific places.

Anyway, this discussion is now way off topic. If you have a coding suggestion for something that should be changed, please post it in the Code Suggestions area with detailed reasoning behind the suggestion so that it can be considered.

.
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.

7 Feb 2008, 3:35 AM
#13
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

Post #13 by qhome

DrByte:

So, a messageStack notification that the customer has entered invalid information shouldn't be displayed to them? I think I'll have to disagree with the idea that messageStack should be admin only. The messageStack is used to communicate important messages, and in specific places.

Anyway, this discussion is now way off topic. If you have a coding suggestion for something that should be changed, please post it in the Code Suggestions area with detailed reasoning behind the suggestion so that it can be considered.

Error message stacks like "I can still write to configure.php" & "Install directory still exists". Shouldn't really need to explain why those don't belong on the customer side.

Back on topic.. Isn't there a way to set the php errpr level like E_STRICT, E_ERROR, E_WARNING... aren't there "acceptable" error levels to display instead of a blank page?