Zen Cart Logo
Forums / General Questions / why am I getting server 500 white page?

why am I getting server 500 white page?

Views: 938

Results 1 to 11 of 11
25 Nov 2015, 2:59 AM
#1
lrfowler24 avatar

lrfowler24

New Zenner

Join Date:
Feb 2010
Posts:
74
Plugin Contributions:
0

why am I getting server 500 white page?

Hi people ...
https://www.leoandmo.com is not working...
i got a couple of people working on it....

here's the log error... [24-Nov-2015 18:38:31 America/Denver] PHP Warning: require(includes/templates/template_default/common/html_header.php): failed to open stream: No such file or directory in /home1/twomuch1/public_html/leoandmo/index.php on line 43
[24-Nov-2015 18:38:31 America/Denver] PHP Fatal error: require(): Failed opening required 'includes/templates/template_default/common/html_header.php' (include_path='.:/usr/php/54/usr/lib64:/usr/php/54/usr/share/pear') in /home1/twomuch1/public_html/leoandmo/index.php on line 43

what does it mean?..I got like 23 of these...log errors...

Thanks!!!

25 Nov 2015, 3:48 AM
#2
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: why am I getting server 500 white page?

lrfowler24:

Hi people ...
www.leoandmo.com is not working...
i got a couple of people working on it....

here's the log error... [24-Nov-2015 18:38:31 America/Denver] PHP Warning: require(includes/templates/template_default/common/html_header.php): failed to open stream: No such file or directory in /home1/twomuch1/public_html/leoandmo/index.php on line 43
[24-Nov-2015 18:38:31 America/Denver] PHP Fatal error: require(): Failed opening required 'includes/templates/template_default/common/html_header.php' (include_path='.:/usr/php/54/usr/lib64:/usr/php/54/usr/share/pear') in /home1/twomuch1/public_html/leoandmo/index.php on line 43

what does it mean?..I got like 23 of these...log errors...

Thanks!!!

I am not getting error 500 but a blank page. To fix that see

https://www.zen-cart.com/content.php?124-i-am-getting-a-blank-page-%28or-blank-part-of-a-page%29

What is your version number?

Fresh install or upgraded?

25 Nov 2015, 4:09 AM
#3
lrfowler24 avatar

lrfowler24

New Zenner

Join Date:
Feb 2010
Posts:
74
Plugin Contributions:
0

Re: why am I getting server 500 white page?

not a fresh install...................just uploading products..

25 Nov 2015, 4:57 AM
#4
lrfowler24 avatar

lrfowler24

New Zenner

Join Date:
Feb 2010
Posts:
74
Plugin Contributions:
0

Re: why am I getting server 500 white page?

so...index is looking for html_header?

25 Nov 2015, 5:43 AM
#5
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: why am I getting server 500 white page?

Yes, it is first looking for html_header.php in your assigned template directory and if it can not find it there then it is looking in the template_default directory at the same location. The file should exist there if the files have been uploaded successfully.

So either: includes/templates/YOUR_TEMPLATE/common/html_header.php or then includes/templates/template_default/common/html_header.php whichever is discovered first.

Look to see if the file exists, and then to see if the content is correct by comparison with a fresh download of the file.

25 Nov 2015, 6:23 AM
#6
lrfowler24 avatar

lrfowler24

New Zenner

Join Date:
Feb 2010
Posts:
74
Plugin Contributions:
0

Re: why am I getting server 500 white page?

ok...but why is it doing this all of a sudden?
It is not in includes/templates/YOUR_TEMPLATE/common/html_header.php....
it is in ........includes/templates/template_default/common/html_header.php ..........but then it just shows a white page....

25 Nov 2015, 7:00 AM
#7
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: why am I getting server 500 white page?

You understand that YOUR_TEMPLATE stands for the template folder name for the template on your site, right?
Rarely is the folder YOUR_TEMPLATE actually the folder name.

As too why "all of a sudden"? Well, something changed whether you did it, the host, or unfortunately someone that has gained inappropriate access to the server/database...

25 Nov 2015, 9:15 AM
#8
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: why am I getting server 500 white page?

lrfowler24:

ok...but why is it doing this all of a sudden?
It is not in includes/templates/YOUR_TEMPLATE/common/html_header.php....
it is in ........includes/templates/template_default/common/html_header.php ..........but then it just shows a white page....

Compare your includes/templates/template_default/common/html_header.php file against a stock includes/templates/template_default/common/html_header.php file from a fresh ZC 1.5.4 download.

Your file should have 149 lines with the last line (149) being left blank which is intended. My guess is that this last blank line does not exist hence causing the error.

25 Nov 2015, 8:31 PM
#9
lrfowler24 avatar

lrfowler24

New Zenner

Join Date:
Feb 2010
Posts:
74
Plugin Contributions:
0

Re: why am I getting server 500 white page?

I will check ...thanks!

26 Nov 2015, 3:32 AM
#10
lrfowler24 avatar

lrfowler24

New Zenner

Join Date:
Feb 2010
Posts:
74
Plugin Contributions:
0

Re: why am I getting server 500 white page?

wow....I added the template_default folder.....all fixed!

26 Nov 2015, 4:14 AM
#11
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: why am I getting server 500 white page?

lrfowler24:

wow....I added the template_default folder.....all fixed!

Hmmm..... why wasn't that folder there in first place?? It is essential for ZC to work.

Someone.... must have deleted it from the server to get that "all of a sudden" change!