Activating URL Rewrite module causes Error in viewing items

DSkok

Joined: 2005-04-03
Posts: 6
Posted: Mon, 2005-04-25 00:50

After activating the URL Rewrite module, I am unable to see the thumbnail images in the main gallery page. When I click on one of the blank thumbnail areas, I get the following message:

Error
Error (ERROR_STORAGE_FAILURE) :

* in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 253 (gallerystatus::error)
* in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 210 (mysqldatabasestorage::_getconnection)
* in modules/core/classes/GalleryStorage.class at line 212 (mysqldatabasestorage::init)
* in modules/core/classes/Gallery.class at line 206 (gallerystorage::search)
* in modules/core/classes/helpers/GalleryPluginHelper_simple.class at line 256 (gallery::search)
* in modules/core/classes/helpers/GalleryPluginHelper_simple.class at line 197 (gallerypluginhelper_simple::fetchallparameters)
* in modules/core/classes/GalleryCoreApi.class at line 203 (gallerypluginhelper_simple::getparameter)
* in modules/core/classes/Gallery.class at line 524 (gallerycoreapi::getpluginparameter)
* in modules/core/classes/Gallery.class at line 496 (gallery::getactivelanguagecode)
* in init.inc at line 124 (gallery::inittranslator)
* in main.php at line 63

----

Gallery URL (optional): http://skok.com/familygallery
Gallery version: G2 Beta 2
Webserver (with version): Apache 1.3.33 (Unix)
Datatabase (with version): MySQL 4.0.22 standard
PHP version (eg 4.2.1): 4.3.11
phpinfo URL (optional):
Graphics Toolkit(s): GD, and ImageMagick
Operating system: Linux
Web browser/version:
G1 version (for migration bugs):

 
chorca

Joined: 2003-05-09
Posts: 3
Posted: Tue, 2005-05-03 01:28

I'm getting the same error, after upgrading from Dark Fibre to Holy Hand Grenade. I found that for me, it's caching an old DynDNS type IP somewhere and writing it out to (gallery directory)/cache/rewrite/0/0/0.inc
I'm not sure if this is stored in the database somewhere or not. You can make things work slightly by changing that IP to your real server IP, then it seems to work correctly, at least, until for some reason that file gets rewritten. Disabling the rewrite module is the only way to keep it from breaking the server.

Any of the developers have any clue as to what's happening here?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2005-05-03 03:57

can each of you deactivate and uninstall rewrite module, upgrade to current cvs or nightly snapshot and reinstall rewrite. let us know how it goes..

 
chorca

Joined: 2003-05-09
Posts: 3
Posted: Fri, 2005-05-06 16:21

I uninstalled the module, upgraded to the latest nightly, then reinstalled it. The module said mod_rewrite now isn't loading, and i checked the gallery test file, it isn't. However, there are entries for it in both Loadmodule and Addmodule in the apache config file, and the file is indeed there, so i'm kind of confused as to what's happening here..

Also, the Matrix layout appears to be broken, it's showing all rows, no columns.

 
DSkok

Joined: 2005-04-03
Posts: 6
Posted: Fri, 2005-05-06 17:57

Two questions:

1. Just to be sure that I understand you want me to get the nightly build for the whole of G2, not just the mod_rewrite module?

2. I have started investigating how to do this, and it appears that the best way is to download the CVS client and get it from CVS. Is that right?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2005-05-06 19:10

1. yes
2. cvs setup takes some work, but then you can always update to the latest code with a single command.. cvs update -Pd
you can just get a nightly snapshot and extract it over your codebase too.

 
DSkok

Joined: 2005-04-03
Posts: 6
Posted: Sat, 2005-05-07 02:43

Sad to report after a lot of work, the exact same problem remains. Would you like me to give you access to my Gallery installation with an admin password to try this out?

This is the error dump when I click on one of the empty thumbnails.

Error
Error (ERROR_STORAGE_FAILURE) :

* in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 253 (gallerystatus::error)
* in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 210 (mysqldatabasestorage::_getconnection)
* in modules/core/classes/GalleryStorage.class at line 212 (mysqldatabasestorage::init)
* in modules/core/classes/Gallery.class at line 223 (gallerystorage::search)
* in modules/core/classes/helpers/GalleryPluginHelper_simple.class at line 256 (gallery::search)
* in modules/core/classes/helpers/GalleryPluginHelper_simple.class at line 197 (gallerypluginhelper_simple::fetchallparameters)
* in modules/core/classes/GalleryCoreApi.class at line 204 (gallerypluginhelper_simple::getparameter)
* in modules/core/classes/Gallery.class at line 541 (gallerycoreapi::getpluginparameter)
* in modules/core/classes/Gallery.class at line 513 (gallery::getactivelanguagecode)
* in init.inc at line 125 (gallery::inittranslator)
* in main.php at line 63

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sat, 2005-05-07 04:14

sure.. PM me the info.