I'm receiving a database error after I upgraded to Drupal 4.7 RC2. The error only happens when viewing the picture. It doesn't happen when I am viewing albums. I don't get any errors when viewing the pictures standalone. I haven't got a clue what's causing this. Since not many people go to my site (hopefully) I have turned debug mode in gallery on so if someone can take a look and give me some ideas I'd greatly appreciate it. I also turned off the rewrite module in gallery to see if that was what was causing the problem, but it wasn't.

Embeded Gallery http://photo.lvthunder.com/gallery
Standalone http://www.lvthunder.com/gallery2

Thanks,

Comments

kiz_0987’s picture

Did this work before? Even with the different subdomain (photo.lvthunder.com/gallery)? You may need to set up the cookie info in your Gallery2 site admin to deal with this case.

The cookie domain is also only needed for embedded Gallery installs and only if you want to get rid of the GALLERYSID string in the embedded DownloadItem URLs. In most cases, the cookie domain can be left blank. Set it only, if Gallery and the embedding application are only reachable with different subdomains. E.g. when Gallery is at http://photos.example.com/ and the application is at http://www.example.com/, then you have to set the cookie domain example.com (the part of the host string that is common to both, Gallery and the embedding application).
Once you change the cookie settings, all registered users of your Gallery will have to clear their browser cookie cache. If they do not, they will experience login / logout / lost session problems.

lvthunder’s picture

Yes, this worked before. I tried setting the cookie domain and that didn't work either.

lvthunder’s picture

Status: Active » Fixed

It must of been something with my g2 theme or my imageframe since when I changed those two the errors went away. Who knows. If it pops up again I'll be back.

Anonymous’s picture

Status: Fixed » Closed (fixed)
mojobaer’s picture

Version: » 4.7.x-1.x-dev
Category: support » bug
Status: Closed (fixed) » Active

I have the same error. I have the final release of 4.7 and G2.1 using the Gallery module. Viewing an album is no problem, but when I click on an individual image this comes:

Here's the error that shows up:
Error (ERROR_STORAGE_FAILURE)
in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 988 (gallerycoreapi::error)
in modules/core/classes/GalleryStorage.class at line 501 (gallerystorageextras::addmapentry)
in modules/core/classes/GalleryCoreApi.class at line 2923 (mysqlstorage::addmapentry)
in modules/core/classes/GalleryDataCache.class at line 739 (gallerycoreapi::addmapentry)
in modules/core/classes/GalleryTheme.class at line 1727 (gallerydatacache::putpagedata)
in themes/matrix/theme.inc at line 97 (matrixtheme::loadcommontemplatedata)
in modules/core/classes/GalleryTheme.class at line 922 (matrixtheme::showphotopage)
in modules/core/classes/GalleryView.class at line 325 (matrixtheme::loadtemplate)
in main.php at line 386 (showitemview::doloadtemplate)
in main.php at line 87
in modules/core/classes/GalleryEmbed.class at line 192
in /home/mojobaer/public_html/drupal03/modules/gallery/gallery_block.inc at line 86 (galleryembed::handlerequest)
in /home/mojobaer/public_html/drupal03/modules/gallery/gallery.module at line 186
in ??? at line 0
in /home/mojobaer/public_html/drupal03/includes/module.inc at line 185
in /home/mojobaer/public_html/drupal03/modules/block.module at line 638
in ??? at line 0
in /home/mojobaer/public_html/drupal03/includes/module.inc at line 185
in /home/mojobaer/public_html/drupal03/includes/theme.inc at line 935
in ??? at line 0
in /home/mojobaer/public_html/drupal03/includes/theme.inc at line 166
in /home/mojobaer/public_html/drupal03/themes/engines/phptemplate/phptemplate.engine at line 160
in ??? at line 0
in /home/mojobaer/public_html/drupal03/includes/theme.inc at line 166
in /home/mojobaer/public_html/drupal03/index.php at line 29
System Information
Gallery version 2.1.1
PHP version 4.4.2 apache
Webserver Apache/1.3.34 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.2 mod_ssl/2.8.25 OpenSSL/0.9.7a
Database mysql 4.1.18-standard
Toolkits SquareThumb, ImageMagick
Operating system Linux olp.opensourcehost.com 2.6.14.6-ts.grh.mh.ht #1 SMP Tue Feb 28 23:27:37 CST 2006 i686
Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)

mojobaer’s picture

Update: I've tried changing both drupal and G2 themes per the previous poster, but no change -> still the db errors.

kiz_0987’s picture

Does the error (or any other error) occur with the standalone gallery?

mindless’s picture

I closed this duplicate.

I don't know the cause of this, but since gallerydatacache::putpagedata is in the trace, probably turning off acceleration in Site Admin / Performance would avoid the errors.

alexandreracine’s picture

Priority: Normal » Minor

Some news on that? Problem solve? Give some feedback or be close next time I pass by ;)

mindless’s picture

Status: Active » Closed (fixed)

I agree it's time to call this out-of-date..