View previous topic :: View next topic |
Author |
Message |
wally007 -
Joined: 13 Jan 2004 Posts: 17
|
Posted: Fri Jan 23, 2004 5:56 am Post subject: PHP prob (Warning Session showing on web site ) |
|
|
HI , i have a little bit of a problem and it's happening on both of my machines with Abyss ( 1 test , 1 server ).
My addy is www.vladik1.com ... it's simple Gallery 1.4.1 site so far , but i customized it a little. I added " recent comments " link that shows all recent comments ( right side on top ) and when you click it , you'll see the error on top of the page ( it reads "
Notice: Undefined variable: GALLERY_BASEDIR in C:\Program Files\Abyss Web Server\htdocs\recent_comments.php on line 49
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\Program Files\Abyss Web Server\htdocs\recent_comments.php:49) in C:\Program Files\Abyss Web Server\htdocs\session.php on line 60
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\Program Files\Abyss Web Server\htdocs\recent_comments.php:49) in C:\Program Files\Abyss Web Server\htdocs\session.php on line 60 "
I have no idea what's wrong as it DOES work ( ie shows all recent comments ). I just want to make that message to go away + understand waht that " Warning " actually means ?!?!
Thanks ! -=vlad
PS . if you need more info i'll gladly provide it.
Abyss Web server x1 (newest release)
PHP4 (newest release)
Gallery 1.4.1 (newest release) |
|
Back to top |
|
 |
Moxxnixx -
Joined: 21 Jun 2003 Posts: 1226 Location: Florida
|
Posted: Fri Jan 23, 2004 6:04 pm Post subject: |
|
|
wally007, welcome to the forums. :)
Go into your php.ini file and look for this:
Code: |
; - Show all errors, except for notices
;
;error_reporting = E_ALL & ~E_NOTICE
;
; - Show only errors
;
;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
;
; - Show all errors except for notices
;
;error_reporting = E_ALL; display all errors, warnings and notices |
Take away the ";" symbol on the line that says error_reporting = E_ALL & ~E_NOTICE
If that don't work, try uncommenting the next error line. :wink: |
|
Back to top |
|
 |
wally007 -
Joined: 13 Jan 2004 Posts: 17
|
Posted: Sat Jan 24, 2004 11:02 am Post subject: |
|
|
Thanks a bunch. I didnt quiet understand the code you pasted in your post , but i read up on php.ini and error reporting ( as per your suggestion ) , and i turned it completely off and now it works.
Thanks again !!! |
|
Back to top |
|
 |
|