Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Notice: Undefined index: cat_thumb  (Read 2327 times)

0 Members and 1 Guest are viewing this topic.

bagpipes

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Notice: Undefined index: cat_thumb
« on: January 09, 2005, 07:35:25 pm »

Hi all
anyone tell me what to do here,as soon as I open gallery

Notice: Undefined index: cat_thumb in /home/bagpip3/public_html/gallery/themes/final_fantasy/theme.php on line 1044

thanks
Ray P
« Last Edit: January 09, 2005, 10:13:17 pm by donnoman »
Logged

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: help
« Reply #1 on: January 09, 2005, 08:04:59 pm »

turn off notices in your config:

For a production gallery I would suggest:

Miscellaneous settings:
Enable debug mode NO
Display notices in debug mode NO

If you want to research the problem further because you are seeing other errors ,then you would have to look on that line in the theme final fantasy to see why they are attempting to use a variable before setting it's value.

Basically an undefined index is going out of bounds for an array.

like $a=array(1,2,3);

and you do

echo $a[5];

or even

echo $a[3]

will still be out of bounds because the first element of an array is zero. In this case the echo $a[2] would echo "3".

echo $a[count(a$)-1] would also echo "3"

using and undefined index is bad form, but doesn't necessarily mean there is a problem with your gallery.

Logged

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: Notice: Undefined index: cat_thumb
« Reply #2 on: January 09, 2005, 08:06:37 pm »

When posting please use a more accurate title. "help" doesn't help anyone searching for the same problem.

I've modified the title of your post to be more descriptive.

Thanks.
Logged

bagpipes

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Notice: Undefined index: cat_thumb
« Reply #3 on: January 09, 2005, 10:08:49 pm »

Hi
sorry about the title will be more forthcoming next time ;)

thanks for the help

Ray p
Logged
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 21 queries.