Forum Moderators: coopster

Message Too Old, No Replies

Login Script Errors

         

artie2004

10:33 pm on Mar 13, 2005 (gmt 0)

10+ Year Member



Hi. Could someone please tell me what these errors mean? I just switched over to a new server. It was working fine when i had it on the previous server. Thanks.


Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /usr/home/prescrip/public_html/mdsapp/beta/dbconn.php4:11) in /usr/home/prescrip/public_html/mdsapp/beta/login.php on line 18

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /usr/home/prescrip/public_html/mdsapp/beta/dbconn.php4:11) in /usr/home/prescrip/public_html/mdsapp/beta/login.php on line 18

Warning: main(error.php): failed to open stream: No such file or directory in /usr/home/prescrip/public_html/mdsapp/beta/login.php on line 59

Warning: main(): Failed opening 'error.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /usr/home/prescrip/public_html/mdsapp/beta/login.php on line 59

dreamcatcher

11:17 pm on Mar 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The errors mean that there is data being sent to your browser BEFORE the session start function is called. Check line 18 of your log in file to see whats there. Whitespace can also cause this error.

The second set of errors may be related to the first.

Good luck.

dc

artie2004

12:31 am on Mar 14, 2005 (gmt 0)

10+ Year Member



Thanks Dreamcatcher.

Now i am getting this error. Any idea.

Warning: Cannot modify header information - headers already sent by (output started at /usr/home/prescrip/public_html/mdsapp/beta/globals.php4:40) in /usr/home/prescrip/public_html/mdsapp/beta/login.php on line 85

dreamcatcher

8:27 am on Mar 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Its the same type of error. This time data is being sent to the browser BEFORE the header() function is being called. As with the session_start() function and also the set_cookie() function, no data can be sent to the browser BEFORE you call these functions.

dc