PHP prob (Warning Session showing on web site )

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
wally007
-


Joined: 13 Jan 2004
Posts: 17

PostPosted: Fri Jan 23, 2004 5:56 am    Post subject: PHP prob (Warning Session showing on web site ) Reply with quote

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 View user's profile Send private message
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Fri Jan 23, 2004 6:04 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
wally007
-


Joined: 13 Jan 2004
Posts: 17

PostPosted: Sat Jan 24, 2004 11:02 am    Post subject: Reply with quote

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 View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group