I was getting a lot of warnings in my log files:
"Php warning: Cannot modify header information - headers already sent <file one> <file two>
and <file one> was always the same file, <file two> varied. I was going to edit file one because that is what I was working on yesterday but I wasn't sure what to look for.
I searched on "headers already sent" and found this response by Ajeh:
It worked. I had leaned on my keyboard or something before I closed the file yesterday and there were some random characters at the top.Based on the error message, check the file:
<file one>
and remove the space(s) blank and/or line(s) at the start of the file before the opening php bracket <?php and see if this corrects the problem ...
As a precaution, check at the bottom of the file and if there is a closing php bracket ?> remove that as well .
My question is twofold:
1. How did she know (just experience or was it a specific behavior of the header files?
2. Why is their no closing php bracket?
My guess is that it is something about the way the developers structured zencart?
Thank you Ajeh for the solution and anyone for the explanation. Also, I started a new thread because this was buried in a template forum.
PS: I didn't post the file name because mine was different than the original post so I thought it didn't matter. But it case it does, I was editing meta_tags.php in includes/modules/mytemplate/


Reply With Quote
