Hi,
I got this error when I tried to activate the module "create new album when a new user register"
here's the error
Error (ERROR_STORAGE_FAILURE)
* in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 797 (gallerystatus::error)
* in modules/core/classes/GalleryStorage.class at line 261 (mysqldatabasestorage::addmapentry)
* in modules/core/classes/interfaces/GalleryPluginParameterMap.inc at line 124 (gallerystorage::addmapentry)
* in modules/core/classes/helpers/GalleryPluginHelper_medium.class at line 385 (gallerypluginparametermap::addmapentry)
* in modules/core/classes/helpers/GalleryPluginHelper_medium.class at line 335 (gallerypluginhelper_medium::_addparameter)
* in modules/core/classes/GalleryCoreApi.class at line 306 (gallerypluginhelper_medium::setparameter)
* in modules/core/classes/GalleryPlugin.class at line 210 (gallerycoreapi::setpluginparameter)
* in modules/useralbum/module.inc at line 67 (useralbummodule::setparameter)
* in modules/core/classes/GalleryModule.class at line 168 (useralbummodule::upgrade)
* in modules/core/AdminModules.inc at line 68 (useralbummodule::installorupgrade)
* in main.php at line 170 (adminmodulescontroller::handlerequest)
* in main.php at line 47
* in main.php at line 40
btw, this is the latest g2 snapshot from the CVS website. I downloaded the one from 12/15/04
Posts: 8601
try again with buffered debug mode in config.php and try to find the database error near the bottom of the debug output. post that here.
i just tried activating the module and it's ok, so i think this is an issue in your environment.
Posts: 12
mindless,
can you explain to me how to do the buffered debug mode in config.php?
when I tried to go to gallery2/config.php directly, this is what I got
Fatal error: Call to a member function on a non-object in /home/darwin/public_html/gallery2/config.php on line 35
Posts: 113
Hint: Open config.php in notepad. Scroll down to "Put Gallery into debug mode. Useful for tracking down problems with the application. Not a good idea to leave it this way, though. Possible debug choices are: 'buffered', 'logged', 'immediate' or false. Don't forget to use the quotes for any value but false!"
Then change the line after the comments from $gallery->setDebug(false); to $gallery->setDebug('buffered');
Save the file, and you're done. Remember to change it back after ;)
Posts: 12
got it....
here's the code from the middle of the page to the end of the line....
Is there anything wrong with it?
Posts: 8601
make sure you're looking at the debug output from the exact request where the error occurs.. there are no errors above. click the "activate" link for User Albums and look at the debug output on the page with the error at the top.
Posts: 12
Here's the debug after I click install on the "create new album when a user register"
Posts: 8601
in your database do:
delete from g2_PluginParameterMap where g_pluginId = 'useralbum';
then try again.. if you get a different error, post that here.