View previous topic :: View next topic |
Author |
Message |
sneedo -
Joined: 25 Jun 2003 Posts: 53
|
Posted: Thu Nov 27, 2003 12:24 pm Post subject: How do I keep from getting errors like this |
|
|
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 |
|
 |
sneedo -
Joined: 25 Jun 2003 Posts: 53
|
Posted: Thu Nov 27, 2003 12:26 pm Post subject: |
|
|
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 |
|
 |
Moxxnixx -
Joined: 21 Jun 2003 Posts: 1226 Location: Florida
|
Posted: Thu Nov 27, 2003 1:00 pm Post subject: |
|
|
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 |
|
 |
sneedo -
Joined: 25 Jun 2003 Posts: 53
|
Posted: Thu Nov 27, 2003 9:48 pm Post subject: |
|
|
but the errors will remain they'll just be undetected, isn't that a new problem in itself? |
|
Back to top |
|
 |
Moxxnixx -
Joined: 21 Jun 2003 Posts: 1226 Location: Florida
|
Posted: Thu Nov 27, 2003 10:32 pm Post subject: |
|
|
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 |
|
 |
sneedo -
Joined: 25 Jun 2003 Posts: 53
|
Posted: Fri Nov 28, 2003 9:56 am Post subject: |
|
|
I took out that semi colon but I still get 'notices' like those, what else could remedy this badness |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
|
Back to top |
|
 |
sneedo -
Joined: 25 Jun 2003 Posts: 53
|
Posted: Tue Dec 02, 2003 3:11 pm Post subject: |
|
|
ha damn I remember reading that thread before too :oops:
sorry, but thanks |
|
Back to top |
|
 |
|