forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: Satyr on October 11, 2004, 11:42:06 am

Title: Php-Notice in index.
Post by: Satyr on October 11, 2004, 11:42:06 am
I have the following message in the gallery index if debug-mode is enabled:

Notice: Undefined index: cat_thumb in /www/htdocs/gothic/gothicmodels/gallery/themes/gothicmodels/theme.php on line 1046

I have this code there:
                '{CAT_THUMB}' => $category['cat_thumb'],

What can i do?
Title: Re: Php-Notice in index.
Post by: Nibbler on October 11, 2004, 05:39:16 pm
Turn off display of notices in debug mode, it is not a significant error.
Title: Re: Php-Notice in index.
Post by: Joachim Müller on October 11, 2004, 10:02:35 pm
in fact you should only enable debug mode if you actually experience any issues and you know what the error messages actually mean. PHP has three error levels: errors, warnings and notices. Notices usually are only meant for coders to trouble-shoot. You should always leave them off, as the notices probably don't mean anything to you anyway.

Joachim