Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
Here are the errors messages with the sensitive data expunged:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at ...shop/admin/includes/configure.php:183) in ...shop/includes/functions/sessions.php on line 108
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at .../shop/admin/includes/configure.php:183) in ...shop/includes/functions/sessions.php on line 108
Warning: Cannot modify header information - headers already sent by (output started at ...shop/admin/includes/configure.php:183) in.../shop/admin/includes/init_includes/init_templates.php on line 36
Line 183 in the configure.php document is after the closing ?>
It is a blank line. Could the blank line be causing the problem?
Thank you kuroi,
It was indeed a blank line at the end of the php code that was creating the problem.
Teragram
The warning tells us that there is a problem at the end of your configure.php file (as you have confirmed). As the file is normally only half this length, the problem is probably due to a problem with the way in which the app which you are using to upload the file is configured. It's probably causing the file to be double-spaced by mishandling the invisible line end characters.
If your configure file has a closing php tag at the end ("?>") then the problem would be that this doubling up has resulting in there being a non-printing character output after that tag. In which case, counter-intuitive though it may sound, simply deleting the tag would also have resolved the problem for you. In general, it's a good idea nowadays to leave the final php closing tag off the end of files specifically to avoid the problem that you had.
https://www.zen-cart.com/tutorials/i...hp?article=313
https://www.zen-cart.com/tutorials/index.php?article=87
Last edited by kuroi; 1 Feb 2010 at 04:38 PM. Reason: Original written before seeing teragram's explanation
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)