forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 plugins => Topic started by: Yoav1987 on November 21, 2010, 05:21:29 pm

Title: Fatal error
Post by: Yoav1987 on November 21, 2010, 05:21:29 pm
Hello,

I've installed witj success the last version of Coppermine - 1.5.8. But I got a Fatal error : when I'm saving my plugin's configuration.

Here is my site : http://photo.webkef.com/
Title: Re: Fatal error
Post by: Nibbler on November 21, 2010, 05:31:55 pm
Enable debug mode in config.
Title: Re: Fatal error
Post by: Yoav1987 on November 21, 2010, 05:34:44 pm
Activated !
Title: Re: Fatal error
Post by: Yoav1987 on November 21, 2010, 05:36:38 pm
While executing query 'UPDATE `cpg15x_mod_SlideShowIt` SET slideshowit_albumid=('')' in plugins/slideshowit/codebase.php on line 34

mySQL error: Table 'eretzisr_PHOTOS.cpg15x_mod_SlideShowIt' doesn't exist

Ok, I see what is the problem.
Title: Re: Fatal error
Post by: Gene-2008 on November 22, 2010, 01:41:19 am
While executing query 'UPDATE `cpg15x_mod_SlideShowIt` SET slideshowit_albumid=('')' in plugins/slideshowit/codebase.php on line 34

mySQL error: Table 'eretzisr_PHOTOS.cpg15x_mod_SlideShowIt' doesn't exist

Ok, I see what is the problem.

This is my plugin and you are correct the problem is the Uppercase letters on the cpg15x_mod_SlideShowIt.
Change it to cpg15x_mod_slideshowit ...apparently new mysql is now case sensitive.

Also while you are at it look for any places where <? is used instead of <?php

I will be releasing a new versions with these a and a few other fixes soon.

Gene

Title: Re: Fatal error
Post by: Yoav1987 on November 22, 2010, 01:47:20 am
Ok, I'll be patient  ;)
Title: Re: Fatal error
Post by: Gene-2008 on November 22, 2010, 01:51:27 am
Ok, I'll be patient  ;)

No need to be patient...just edit plugins/slideshowit/codebase.php on line 34

Find:
 $s="UPDATE `{$CONFIG['TABLE_PREFIX']}mod_SlideShowIt` SET slideshowit_albumid=('$slideshowit_albumid')";
Replace it with:
 $s="UPDATE `{$CONFIG['TABLE_PREFIX']}mod_slideshowit` SET slideshowit_albumid=('$slideshowit_albumid')";

Gene


Title: Re: Fatal error
Post by: Yoav1987 on November 22, 2010, 01:53:43 am
Okay I'll test that ;) Thank you  ::)