Author Topic: Problem with session cookie and header information  (Read 4006 times)

0 Members and 1 Guest are viewing this topic.

Offline renovatio

  • Pre-Newbie
  • Posts: 1
    • View Profile
Problem with session cookie and header information
« on: June 06, 2006, 07:34:33 PM »
I use 4Images now for more than 3 years. I always fixed problems on the gallery by searching on the web or by searching here on the forum. For example, I know what causes the error "cannot modify header information". But since I moved my site to a new server, I get this error message and I have no idea what causes it:

Code: [Select]

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/admin/domains/xxx.com/public_html/gallery/config.php:1) in /home/admin/domains/xxx.com/public_html/gallery/includes/sessions.php on line 86

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/admin/domains/xxx.com/public_html/gallery/config.php:1) in /home/admin/domains/xxx.com/public_html/gallery/includes/sessions.php on line 86

Warning: Cannot modify header information - headers already sent by (output started at /home/admin/domains/xxx.com/public_html/gallery/config.php:1) in /home/admin/domains/xxx.com/public_html/gallery/includes/sessions.php on line 94

Warning: Cannot modify header information - headers already sent by (output started at /home/admin/domains/xxx.com/public_html/gallery/config.php:1) in /home/admin/domains/xxx.com/public_html/gallery/includes/sessions.php on line 94

There is no empty spaces or any other error in the config.php code. I didn't changed anything. I only moved the files to a new server and installed the database again.
I looked everywhere but I can't find any answers. Someone said that maybe I have a unstable version of Linux on the server. But does that give such an error message?

Anyone know how I can fix this error? Thanks.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Problem with session cookie and header information
« Reply #1 on: June 07, 2006, 03:14:46 AM »
There is no empty spaces or any other error in the config.php code. I didn't changed anything. I only moved the files to a new server and installed the database again.
Let me guess...you uploaded .php files in binary mode. reupload .php and .html files in ASCII (text) mode.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline deviletta

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: Problem with session cookie and header information
« Reply #2 on: June 07, 2006, 06:44:28 AM »

hi

i got the same message with 1.7.2 donno how to fix it

Code: [Select]
Warning: session_start(): The session id contains invalid characters, valid characters are only a-z, A-Z and 0-9 in /home/xxx/public_html/lolo/includes/sessions.php on line 86

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/xxx/public_html/lolo/includes/sessions.php:86) in /home/deera2/public_html/lolo/includes/sessions.php on line 86

Warning: Cannot modify header information - headers already sent by (output started at /home/xxx/public_html/lolo/includes/sessions.php:86) in /home/deera2/public_html/lolo/includes/sessions.php on line 94

Warning: Cannot modify header information - headers already sent by (output started at /home/xxx/public_html/lolo/includes/sessions.php:86) in /home/deera2/public_html/lolo/includes/sessions.php on line 94


and also the following lines under the table of the gallery

Code: [Select]
Warning: Unknown(): The session id contains invalid characters, valid characters are only a-z, A-Z and 0-9 in Unknown on line 0

Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0


anybody know how to fix it ?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Problem with session cookie and header information
« Reply #3 on: June 07, 2006, 06:48:59 AM »

hi

i got the same message
Really?

The error we are discussing in this topic:[qcode]Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/admin/domains/xxx.com/public_html/gallery/config.php:1) in /home/admin/domains/xxx.com/public_html/gallery/includes/sessions.php on line 86[/qcode]

And yours:
[qcode]Warning: session_start(): The session id contains invalid characters, valid characters are only a-z, A-Z and 0-9 in /home/xxx/public_html/lolo/includes/sessions.php on line 86[/qcode]

How is that the same?

P.S.
The answer for your problem:
http://www.4homepages.de/forum/index.php?action=search;advanced
We've discused this before.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline deviletta

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: Problem with session cookie and header information
« Reply #4 on: June 07, 2006, 06:52:50 AM »


oh sorry .. i'm just new and know nothing about scripts :(