Forums / Templates, Stylesheets, Page Layout / Another damn blank page

Another damn blank page

Locked

Views: 1,600

Results 1 to 16 of 16
This thread is locked. New replies are disabled.
8 Feb 2009, 9:41 PM
#1
bettsaj avatar

bettsaj

New Zenner

Join Date:
Dec 2008
Posts:
82
Plugin Contributions:
0

Another damn blank page

Result from PHP Logging Tool below:

[08-Feb-2009 21:27:15] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/u30chri/public_html/sienna/includes/languages/english/modules/shipping/cherry_zen/flat.php:53) in /home/u30chri/public_html/sienna/includes/functions/functions_general.php on line 44

I assume that the file that's wrong is functions_general.php on line 44. I've checked it and there's nothing on that line Check the screen grab image... Any ideas peeps ?

"You've seen the film, now get the doll. Handi Bendi Ghandi, complete with a wardrobe of robes and a cast of five thousand"

8 Feb 2009, 9:59 PM
#2
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Another damn blank page

check the flat.php at line 53 ..

9 Feb 2009, 7:31 AM
#3
bettsaj avatar

bettsaj

New Zenner

Join Date:
Dec 2008
Posts:
82
Plugin Contributions:
0

Re: Another damn blank page

Ok checked flat.php at line 53, there was a blank space. Removed the blank space and the second line of error code has now changed to this:

[09-Feb-2009 07:12:25] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/u30chri/public_html/sienna/includes/languages/english/modules/shipping/cherry_zen/flat.php:53) in /home/u30chri/public_html/sienna/includes/functions/functions_general.php on line 87

I've checked line 87 of functions_general.php and can see the following (See attachment)

Not sure what i'm looking for... php newbie :-)

"You've seen the film, now get the doll. Handi Bendi Ghandi, complete with a wardrobe of robes and a cast of five thousand"

9 Feb 2009, 9:32 AM
#4
kuroi avatar

kuroi

Totally Zenned

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

Re: Another damn blank page

Your files are all double-spaced. That's not how they're distributed and if that's how they are on your server is likely going to cause you a whole heap of problems with extra blank lines being interpreted as premature output.

This usually happens because of line endings getting converted somewhere between your download of the zipped files from Zen Cart, your editor and your FTP software.

Kuroi Web Design and Development | Twitter

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

9 Feb 2009, 10:44 AM
#5
bettsaj avatar

bettsaj

New Zenner

Join Date:
Dec 2008
Posts:
82
Plugin Contributions:
0

Re: Another damn blank page

What do you suggest I do then...... Everything was ok up untill yesterday when I set up all the paypal module stuff.

After setting up that i tested it and it worked fine, went through to the paypal site and everything was ok...

Do you think I should make a backup of this file, then download a fresh copy and upload that?

"You've seen the film, now get the doll. Handi Bendi Ghandi, complete with a wardrobe of robes and a cast of five thousand"

9 Feb 2009, 11:08 AM
#6
bettsaj avatar

bettsaj

New Zenner

Join Date:
Dec 2008
Posts:
82
Plugin Contributions:
0

Re: Another damn blank page

Ok.... I tried that anyway. renamed my old file _old and uploaded a fresh copy into the server from a new zen download. I'm now getting this error in the log:

[09-Feb-2009 10:55:22] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/u30chri/public_html/sienna/includes/languages/english/modules/shipping/cherry_zen/flat.php:53) in /home/u30chri/public_html/sienna/includes/functions/functions_general.php on line 44

I've been led to believe that the first section that says;

output started at /home/u30chri/public_html/sienna/includes/languages/english/modules/shipping/cherry_zen/flat.php:53

I should ignore and the the actual page generating the error was the second one... In this case functions_general.php, is this correct?

i have uploaded a FRESH copy of the functions_general.php file and am now getting an error on line 44.... How can this be when i's a brand new copy?

I think this issue has something to do with the first file flat.php

"You've seen the film, now get the doll. Handi Bendi Ghandi, complete with a wardrobe of robes and a cast of five thousand"

9 Feb 2009, 11:12 AM
#7
kuroi avatar

kuroi

Totally Zenned

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

Re: Another damn blank page

bettsaj:

i have uploaded a FRESH copy of the functions_general.php file and am now getting an error on line 44.... How can this be when i's a brand new copy?This is my point. Somewhere between downloading a fresh copy of Zen Cart and getting the files to your sever, then are getting corrupted. You need to track down which step is causing this, adjust the settings for the relevant piece of software and then re-load your files.

Simply moving them through the same process is unlikely to resolve the problem. Fixing them one by one would, but would be mighty tedious and likely cause yoy the same problem in the future.

Kuroi Web Design and Development | Twitter

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

9 Feb 2009, 12:23 PM
#8
bettsaj avatar

bettsaj

New Zenner

Join Date:
Dec 2008
Posts:
82
Plugin Contributions:
0

Re: Another damn blank page

Ok point taken.... I understand..

I'm using Cute FTP Pro to upload, I expect you're talking about ASCII and Binary mode transfer types. What mode should I use to upload php files. It's currently set to "Use Global setting".

I have 4 options in Cute FTP, ASCII, Binary Auto Detect & Use Global setting.

As a matter of interest, I've visually compared the two copies the one on the server and the fresh one from the Zen zip file... and they look identical

"You've seen the film, now get the doll. Handi Bendi Ghandi, complete with a wardrobe of robes and a cast of five thousand"

9 Feb 2009, 1:23 PM
#9
bettsaj avatar

bettsaj

New Zenner

Join Date:
Dec 2008
Posts:
82
Plugin Contributions:
0

Re: Another damn blank page

I have downloaded yet another fresh copy of the zen cart files and uploaded the functions_general.php via CuteFTP in ASCII mode, it being basically a text document that's editable in wordpad.... Still no luck and I'm getting this error in the error log:

[09-Feb-2009 13:16:53] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/u30chri/public_html/sienna/includes/languages/english/modules/shipping/cherry_zen/flat.php:53) in /home/u30chri/public_html/sienna/includes/functions/functions_general.php on line 44

I'm losing the will to live at the moment, has anyone got any suggestions please.... Could it be the flat.php file? This isn't in the Zen zip, it's in my template folder which is cherry_zen. However it isn't in the cherry_zen.zip that you download... it's created later on.

"You've seen the film, now get the doll. Handi Bendi Ghandi, complete with a wardrobe of robes and a cast of five thousand"

9 Feb 2009, 2:21 PM
#10
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Another damn blank page

/home/u30chri/public_html/sienna/includes/languages/english/modules/shipping/cherry_zen/flat.php:53

is file causing problems...switch templates, then go back to cherry zen and investigate

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

9 Feb 2009, 2:40 PM
#11
bettsaj avatar

bettsaj

New Zenner

Join Date:
Dec 2008
Posts:
82
Plugin Contributions:
0

Re: Another damn blank page

I've just looked at the flat.php file in notepad++ and noticed spaces at the bottom of the page, primarily line 53.... Could this be the problem do you think?

Can you see nythig wrong with making a backup of that file and deleting all the spaces effectively so there's only 51 lines?

screen grab attached

"You've seen the film, now get the doll. Handi Bendi Ghandi, complete with a wardrobe of robes and a cast of five thousand"

9 Feb 2009, 2:45 PM
#12
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Another damn blank page

Can only try PLUS make sure no spaces after the final
?>

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

9 Feb 2009, 2:48 PM
#13
kuroi avatar

kuroi

Totally Zenned

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

Re: Another damn blank page

That is the problem, but you may find yourself going from file to file with the same problem as you haven't identified the underlying cause.

I'm afraid that I can't advice on settings for CuteFTP as I don't use it. I have FileZilla set to autoDetect, but elsewhere I have settings that define which file extensions should be treated as binary and which ascii. And that's assuming that it's the FTP software that's introducing the problem.

Kuroi Web Design and Development | Twitter

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

9 Feb 2009, 3:08 PM
#14
stride_r avatar

stride_r

Zen Follower

Join Date:
Aug 2008
Posts:
115
Plugin Contributions:
0

Re: Another damn blank page

I use CUTE FTP 8.3 all the time with no problems at all.

Go to Tools / Global Options / Transfer / ...and make sure the transfer method is "auto detect" & that Data mode = "Auto". The rest of the Transfer settings should be fine at their defaults. I'm not sure if this is the reason for your issues with added spaces at the end of your files or not ...but at least it should rule out your CUTE FTP as a culprit.

Good luck.

9 Feb 2009, 5:52 PM
#15
bettsaj avatar

bettsaj

New Zenner

Join Date:
Dec 2008
Posts:
82
Plugin Contributions:
0

Re: Another damn blank page

Did the CuteFTP thing and that was already set to auto on everything.
Checked the flat.php file, deleted the spaces after the closing ?>, uploaded and everything is now fine

"You've seen the film, now get the doll. Handi Bendi Ghandi, complete with a wardrobe of robes and a cast of five thousand"

9 Feb 2009, 5:58 PM
#16
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Another damn blank page

bettsaj:

Did the CuteFTP thing and that was already set to auto on everything.
Checked the flat.php file, deleted the spaces after the closing ?>, uploaded and everything is now fine
Pleased to hear that solved your problem

:clap:

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others