Zen Cart Logo
Forums / General Questions / Tried Debug Error Logging- no results, Blank Pages

Tried Debug Error Logging- no results, Blank Pages

Locked

Views: 2,495

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
5 Aug 2009, 2:51 AM
#1
pointwise avatar

pointwise

New Zenner

Join Date:
Jun 2009
Posts:
8
Plugin Contributions:
0

Tried Debug Error Logging- no results, Blank Pages

Ok I have racking my brain on this for a few hours now.

Last night I moved my cart from https://www.johnmorganmd.com/zencart/ to the root '/' but now :frusty: . I followed the FAQ about changing the config files (catalog and admin). My admin section seems to work just fine. The problem is that on 2 categories it leads to a white page.

Also the log in feature does not work. It seems to not be creating the session for a login.

If u create a new account the entry becomes available but there still is a white screen.

I have enabled the Debug Logging Utility but I am not getting any files today. But I got some last night when i tried to make the switch. These where caused because i left an "zencart/" in a define statement.

I have done the most common thing and re-uploaded all the function, module, etc files to see if that fix it but of course...

I have even enabled the define('STRICT_ERROR_REPORTING', true); method and that is not giving me anything.

However in the admin panel i get these messages:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/j/o/n/jonmorganmd/html/includes/functions/functions_email.php:1109) in /home/content/j/o/n/jonmorganmd/html/includes/functions/sessions.php on line 108

Warning: Cannot modify header information - headers already sent by (output started at /home/content/j/o/n/jonmorganmd/html/includes/functions/functions_email.php:1109) in /home/content/j/o/n/jonmorganmd/html/skin/includes/init_includes/init_templates.php on line 36

Any help would be great!

5 Aug 2009, 4:16 AM
#2
pointwise avatar

pointwise

New Zenner

Join Date:
Jun 2009
Posts:
8
Plugin Contributions:
0

Re: Tried Debug Error Logging- no results, Blank Pages

Progress! Kinda

Ok so now the debugger is creating the log files. i can get them from /includes/cache. here is what each one says:

[04-Aug-2009 21:11:08] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/content/j/o/n/jonmorganmd/html/includes/configure.php:120) in /home/content/j/o/n/jonmorganmd/html/includes/functions/sessions.php on line 108

[04-Aug-2009 21:11:08] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/content/j/o/n/jonmorganmd/html/includes/configure.php:120) in /home/content/j/o/n/jonmorganmd/html/includes/init_includes/init_templates.php on line 152

[04-Aug-2009 21:11:08] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/content/j/o/n/jonmorganmd/html/includes/configure.php:120) in /home/content/j/o/n/jonmorganmd/html/includes/functions/functions_general.php on line 82

Clearly its all about the sessions. And clearly I need some one smarter than me who knows about this kinda stuff.

Still trying.... Thanks every one

5 Aug 2009, 5:35 AM
#3
drbyte avatar

drbyte

Sensei

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

Re: Tried Debug Error Logging- no results, Blank Pages

pointwise:

[04-Aug-2009 21:11:08] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/content/j/o/n/jonmorganmd/html/includes/configure.php:120) in /home/content/j/o/n/jonmorganmd/html/includes/init_includes/init_templates.php on line 152

[04-Aug-2009 21:11:08] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/content/j/o/n/jonmorganmd/html/includes/configure.php:120) in /home/content/j/o/n/jonmorganmd/html/includes/functions/functions_general.php on line 82
Looking up the "headers already sent" message in the FAQ area brings up this article: https://www.zen-cart.com/tutorials/index.php?article=87 which clarifies that the above messages are a result of something amuck on line 120 of your configure.php file.

5 Aug 2009, 3:31 PM
#5
pointwise avatar

pointwise

New Zenner

Join Date:
Jun 2009
Posts:
8
Plugin Contributions:
0

Re: Tried Debug Error Logging- no results, Blank Pages

DrByte:

Looking up the "headers already sent" message in the FAQ area brings up this article: https://www.zen-cart.com/tutorials/index.php?article=87 which clarifies that the above messages are a result of something amuck on line 120 of your configure.php file.

I have checked the config file and nothing is amiss as far as I can tell. But according to the article, I need to fix the session error first because that might be whats causing the "headers" problem.

Any ideas on that one?

5 Aug 2009, 10:36 PM
#6
drbyte avatar

drbyte

Sensei

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

Re: Tried Debug Error Logging- no results, Blank Pages

Doesn't the message say that there's a session problem because headers were already sent, and that the thing that sent the headers was a problem in your configure.php file?

6 Aug 2009, 4:29 AM
#7
semaxd avatar

semaxd

New Zenner

Join Date:
May 2008
Location:
Ventura Co.
Posts:
82
Plugin Contributions:
1

Re: Tried Debug Error Logging- no results, Blank Pages

im getting the same thing a blank page when i click the "add to cart" button.
I have installed the debugger. cool tool!

here is the info from the debugger:
[05-Aug-2009 21:05:50] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/content//html/zc_store/includes/languages/english.php:1401) in /home/content///html/zc_store/includes/init_includes/init_templates.php on line 78

here is line 78
header("Content-Type: text/html; charset=" . CHARSET);

[05-Aug-2009 21:05:50] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/content/h/s/h/hshort39/html/zc_store/includes/languages/english.php:1401) in /home/content/h/s/h/hshort39/html/zc_store/includes/functions/functions_general.php on line 44

here is line 44
header('Location: ' . $url);

I dont see anything out of place. It is exactly the same as my other cart that works fine.
what am i missing um help!
jim

6 Aug 2009, 4:55 AM
#8
drbyte avatar

drbyte

Sensei

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

Re: Tried Debug Error Logging- no results, Blank Pages

You're looking at the wrong file and line number. Read my posts above, and the links I posted.

The error message is telling you "output started at .... english.php:1401". So, look on line 1401 of english.php for the problem.

6 Aug 2009, 5:40 AM
#9
semaxd avatar

semaxd

New Zenner

Join Date:
May 2008
Location:
Ventura Co.
Posts:
82
Plugin Contributions:
1

Re: Tried Debug Error Logging- no results, Blank Pages

ok i read it backwards trying to go to fast.
Thanks Doc you rock! removed the extra blank lines. all fixed now!!
your the best!

21 Sep 2009, 7:14 PM
#10
fybaoptik avatar

fybaoptik

New Zenner

Join Date:
Sep 2009
Posts:
2
Plugin Contributions:
0

Re: Tried Debug Error Logging- no results, Blank Pages

Okay so maybe I have been staring at this computer screen too long but I am having a similar issue with different outcomes. the site is http://fullmooncyclesalvage.com when I click a manufacturer link or add an item to cart it gives me the blank page. Items are added to the cart successfully I might mention but still a blank page. So okay now I installed the debug tool and here is my output:

[21-Sep-2009 11:52:57] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/content/f/u/l/fullmooncycle/html/hosting/fullmooncyclesalvage/includes/languages/english.php:1401) in /home/content/f/u/l/fullmooncycle/html/hosting/fullmooncyclesalvage/includes/init_includes/init_templates.php on line 78

Also:

[21-Sep-2009 11:53:05] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/content/f/u/l/fullmooncycle/html/hosting/fullmooncyclesalvage/includes/languages/english.php:1401) in /home/content/f/u/l/fullmooncycle/html/hosting/fullmooncyclesalvage/includes/functions/functions_general.php on line 44

Line 1401 is nonexistent its right after the
?>
which is line 1399

So I checked also init_templates.php on line 77-81

  • The actual template directory to use

*/

define('DIR_WS_TEMPLATE', DIR_WS_TEMPLATES . $template_dir . '/');

dont see any errors there ?!
very confusing. Any help with this is greatly appreciated!
:blink:
Nathan

21 Sep 2009, 7:37 PM
#11
drbyte avatar

drbyte

Sensei

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

Re: Tried Debug Error Logging- no results, Blank Pages

It has nothing to do with init_templates.php. That file is only reporting the error, it doesn't contain the problem.

Chances are your server is seeing line 1401 (the real problem location) of your english.php as a blank line, which equates to white space, which equates to new content that gets sent to the browser because it's not inside PHP tags, meaning it's not treated as PHP ... hence the "headers already sent" message. Delete the blank line, and things should be fine.
Related FAQ: https://www.zen-cart.com/tutorials/index.php?article=87

You might also remove the ending ?> tag to help prevent the matter for the future: https://www.zen-cart.com/tutorials/index.php?article=313

21 Sep 2009, 7:38 PM
#12
semaxd avatar

semaxd

New Zenner

Join Date:
May 2008
Location:
Ventura Co.
Posts:
82
Plugin Contributions:
1

Re: Tried Debug Error Logging- no results, Blank Pages

DrByte:

You're looking at the wrong file and line number. Read my posts above, and the links I posted.

The error message is telling you "output started at .... english.php:1401". So, look on line 1401 of english.php for the problem.

check this one also it looks like alot of code is showing up on your

21 Sep 2009, 7:40 PM
#13
fybaoptik avatar

fybaoptik

New Zenner

Join Date:
Sep 2009
Posts:
2
Plugin Contributions:
0

Re: Tried Debug Error Logging- no results, Blank Pages

I just reuploaded a fresh english.php file and everything works great. Time to take a break I guess !

23 Sep 2009, 4:14 PM
#14
tapper avatar

tapper

Zen Follower

Join Date:
Nov 2007
Location:
Upstate NY
Posts:
233
Plugin Contributions:
0

Re: Tried Debug Error Logging- no results, Blank Pages

DrByte:

You're looking at the wrong file and line number. Read my posts above, and the links I posted.

The error message is telling you "output started at .... english.php:1401". So, look on line 1401 of english.php for the problem.

Thanks DrByte!! I had this issue too. Add to cart went to a blank page, also login and checkout. I had the line 1401 of english.php error, and line 1401 was a blank line at the end of the file.

For anyone using Dreamweaver this will replace double lines with single.

In Edit/Find turn on Regular Expressions and search for

[\r\n]{2,}

replace it with

\n

27 Sep 2009, 5:14 AM
#15
dytron avatar

dytron

New Zenner

Join Date:
Feb 2008
Posts:
60
Plugin Contributions:
0

Re: Tried Debug Error Logging- no results, Blank Pages

Tapper:

For anyone using Dreamweaver this will replace double lines with single.

In Edit/Find turn on Regular Expressions and search for

[\r\n]{2,}

replace it with

\n

Tapper, Many thanks for that pearl of wisdom. :clap:
Had the same issue where I created a file in Dreamweaver
(pci_patch_v13x_search.php) created many error log entries
stopped customers from adding things to cart etc...

So with your clue created that file in notepad and fixed, am sure your Regular Expression searched worked but its late....:bigups:

28 Sep 2009, 5:42 PM
#16
rinker avatar

rinker

New Zenner

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

Re: Tried Debug Error Logging- no results, Blank Pages

I've have a similar problem.

only with me the debug utility give no errors and no log is written.
I only have this blank pages when i click on the privacy notice link.
I checked the cache dir and its writable, i checked all files where i found the words privacy notice in, no typos so far

I even tried that local dir with that tiny configure file in it, also no luck.

The site is in two languages and i get a blanc page on both sides.

Any help here where to look further??

tia

21 Oct 2009, 3:45 PM
#17
tvshub avatar

tvshub

New Zenner

Join Date:
Oct 2009
Location:
Georgia, USA
Posts:
1
Plugin Contributions:
0

Re: Tried Debug Error Logging- no results, Blank Pages

I resolved my blank screen errors thus: get file storedir/includes/languages/english.php ~ open this file in notepad or plain text editor. Copy contents to clipboard. Go to link below and paste file into the window - click remove blank lines. Copy text back to notepad, save & replace file on server.

mytexttools.com/Remove-Empty-Lines.html

I was using CuteFTP. Maybe during editing it stuck line feeds or carriage returns into every line in the file and that apparently may cause problems. My white blank screens were coming up in various places. This happened twice; first time I just reloaded the entire code. I read about CuteFTP doing things to files, but didn't take it seriously. After this happened again, I now use Ipswitch WS_FTP because it's been around forever and it was recommended by the ancients.

Total time to fix: 3 mins. Total time to locate problem/errors: two ZC setups and several days.