Use of undefined constant

They have: 18 posts

Joined: Nov 2002

I'm not sure whether it's Php itself or the script I'm using (Gammasoft.co.uk's Ionpanel 1.2), but I always get errors all over my website (eracreations.com) like these:

Quote:
Notice: Use of undefined constant nid - assumed 'nid' in c:\hosted\silver\eracreations\html\index.php on line 195

Notice: Use of undefined constant subject - assumed 'subject' in c:\hosted\silver\eracreations\html\index.php on line 195

Notice: Use of undefined constant author - assumed 'author' in c:\hosted\silver\eracreations\html\index.php on line 196

Notice: Use of undefined constant email - assumed 'email' in c:\hosted\silver\eracreations\html\index.php on line 196

Notice: Use of undefined constant date - assumed 'date' in c:\hosted\silver\eracreations\html\index.php on line 197

This never happened to me before, but I looked all over in script's files and I couldn't find anything to do with undefined constants and variables. Sad

They have: 447 posts

Joined: Oct 1999

it's just a sloppily coded script. most likely it's from using array indexes such as $array

rather than $array['index']

in php.ini you can set:
error_reporting = E_ALL & ~E_NOTICE

or at the top of the script you can add:
error_reporting(E_ALL & ~E_NOTICE);

or you can go through and fix all the mistakes

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.