Zen Cart Logo
Forums / General Questions / Blank pages

Blank pages

Locked

Views: 1,841

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
17 Apr 2008, 11:04 PM
#1
govanmac avatar

govanmac

New Zenner

Join Date:
Apr 2008
Posts:
18
Plugin Contributions:
0

Blank pages

Hi

I am getting a blank page whenever I add something to the cart, when I checked the error log in the cache, it reports the following:

[17-Apr-2008 17:18:02] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/content/l/r/c/lrcnet/html/includes/languages/english.php:1401) in /home/content/l/r/c/lrcnet/html/includes/init_includes/init_templates.php on line 78
[17-Apr-2008 17:18:02] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/content/l/r/c/lrcnet/html/includes/languages/english.php:1401) in /home/content/l/r/c/lrcnet/html/includes/functions/functions_general.php on line 44

I have looked at these files in a working zen cart, and I don't see any difference in it. Anybody any idea what is going wrong?

Thanks

Govanmac

17 Apr 2008, 11:29 PM
#2
webwired avatar

webwired

New Zenner

Join Date:
Apr 2008
Posts:
12
Plugin Contributions:
0

Re: Blank pages

Did you add some code to the top of one of your php pages?

18 Apr 2008, 12:53 AM
#3
govanmac avatar

govanmac

New Zenner

Join Date:
Apr 2008
Posts:
18
Plugin Contributions:
0

Re: Blank pages

Hi

No! I didn't add any code to the top of pages.

Govanmac

18 Apr 2008, 1:08 AM
#4
webwired avatar

webwired

New Zenner

Join Date:
Apr 2008
Posts:
12
Plugin Contributions:
0

Re: Blank pages

The reason that I ask is that because the "PHP Warning: Cannot modify header information - headers already sent" warning comes from having output, ie, white space, prior to the header.

18 Apr 2008, 5:46 AM
#5
drbyte avatar

drbyte

Sensei

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

Re: Blank pages

govanmac:

PHP Warning: Cannot modify header information - headers already sent by (output started at /home/content/l/r/c/lrcnet/html/includes/languages/english.php:1401) in ...

https://www.zen-cart.com/tutorials/index.php?article=87

18 Apr 2008, 8:13 AM
#6
govanmac avatar

govanmac

New Zenner

Join Date:
Apr 2008
Posts:
18
Plugin Contributions:
0

Re: Blank pages

Hi

I have not edited any of the pages mentioned, I have even tried uploading the files again.
I just done a clean installation on a different web site, put in a test product and get the same problem.

Could it be there is a problem with this version (1.3.8), I had no problem like this with the previous version?

Thanks

Govanmac

18 Apr 2008, 8:19 AM
#7
govanmac avatar

govanmac

New Zenner

Join Date:
Apr 2008
Posts:
18
Plugin Contributions:
0

Re: Blank pages

In the tutorial it quotes this:
In the example above, you'll see output started at /....includes/something/something/something.php:12. The includes/something/something/something.php is the filename you need to be concerned about. The :12 means that the problem you need to fix is on line 12.

In that same example, the /includes/something_else.php on line 67 message can be completely ignored. It is not the problem. It is the one that discovered that the problem had already occurred.
But in my case going by this, I should be looking at line 1401, there is no such line in the file.

Govanmac

18 Apr 2008, 4:51 PM
#8
drbyte avatar

drbyte

Sensei

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

Re: Blank pages

What files have you changed?
What happens if you reload the original english.php instead of your customized one?

If reloading the original version of files mentioned in errors doesn't solve it, then you may have created a PHP error in another file by removing required braces or something, thus causing the PHP code to get confused in other places, etc.

18 Apr 2008, 5:50 PM
#9
govanmac avatar

govanmac

New Zenner

Join Date:
Apr 2008
Posts:
18
Plugin Contributions:
0

Re: Blank pages

Hi

I have tried re-uploading english.php, it is still the same.

The only things I have edited is that page, I have also changed template images, and created some categories and entered some products.

The site is at: https://www.laptoprepaircourse.net

I have uploaded zencart to another domain and hosting account and get the same problem when I add to cart.

Govanmac

19 Apr 2008, 2:27 AM
#11
govanmac avatar

govanmac

New Zenner

Join Date:
Apr 2008
Posts:
18
Plugin Contributions:
0

Re: Blank pages

I have just installed 1.3.7 on a different server, doing all the same things I did when installing 1.3.8 on the Godaddy server. And it is working perfectly.

Could this be an issue with the Godaddy hosting plan or with 1.3.8?

Govanmac

19 Apr 2008, 2:36 AM
#12
drbyte avatar

drbyte

Sensei

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

Re: Blank pages

I doubt it's GoDaddy, although I'm no fan of their hosting services.
I doubt it's 1.3.8, since there are thousands of sites using it without the problem you are reporting.
Chances are it's your upload or your customizations.