How do I keep from getting errors like this

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
sneedo
-


Joined: 25 Jun 2003
Posts: 53

PostPosted: Thu Nov 27, 2003 12:24 pm    Post subject: How do I keep from getting errors like this Reply with quote

Notice: Use of undefined constant totalpts - assumed 'totalpts' in c:\program files\abyss web server\punkfights\lgx.php on line 32

Notice: Use of undefined constant attacked - assumed 'attacked' in c:\program files\abyss web server\punkfights\lgx.php on line 34

Notice: Undefined index: attacked in c:\program files\abyss web server\punkfights\lgx.php on line 34

Notice: Use of undefined constant numattack - assumed 'numattack' in c:\program files\abyss web server\punkfights\lgx.php on line 36

Notice: Undefined index: numattack in c:\program files\abyss web server\punkfights\lgx.php on line 36

Notice: Use of undefined constant attacker - assumed 'attacker' in c:\program files\abyss web server\punkfights\lgx.php on line 38

Notice: Undefined index: attacker in c:\program files\abyss web server\punkfights\lgx.php on line 38
Back to top View user's profile Send private message
sneedo
-


Joined: 25 Jun 2003
Posts: 53

PostPosted: Thu Nov 27, 2003 12:26 pm    Post subject: Reply with quote

it happens on alot of the software i try to install from like hotscripts, it really bugs me, some good stuff out there and these errors are everywhere, I'm new so go easy on me
Back to top View user's profile Send private message
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Thu Nov 27, 2003 1:00 pm    Post subject: Reply with quote

To get rid of notices, go to your php.ini file.
Look for "error handling and logging" section and change :
;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
to this:
error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR

As you can see, your only getting rid of the ";" symbol.
Save your file and you should be set to go.
Back to top View user's profile Send private message Visit poster's website
sneedo
-


Joined: 25 Jun 2003
Posts: 53

PostPosted: Thu Nov 27, 2003 9:48 pm    Post subject: Reply with quote

but the errors will remain they'll just be undetected, isn't that a new problem in itself?
Back to top View user's profile Send private message
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Thu Nov 27, 2003 10:32 pm    Post subject: Reply with quote

These are notices, not errors.
They only warn you of "potential" conflicts in your code.
Notices can interfere with some PHP techniques.
Back to top View user's profile Send private message Visit poster's website
sneedo
-


Joined: 25 Jun 2003
Posts: 53

PostPosted: Fri Nov 28, 2003 9:56 am    Post subject: Reply with quote

I took out that semi colon but I still get 'notices' like those, what else could remedy this badness
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sun Nov 30, 2003 6:15 pm    Post subject: Reply with quote

sneedo,

Please read http://www.aprelium.com/forum/viewtopic.php?p=9415#9415 .
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
sneedo
-


Joined: 25 Jun 2003
Posts: 53

PostPosted: Tue Dec 02, 2003 3:11 pm    Post subject: Reply with quote

ha damn I remember reading that thread before too :oops:



sorry, but thanks
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions 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