I've been playing with the gallery module for awhile now and had no problems up until I tried to reinstall the module. When I did it threw me this error after the installation was complete. When I go to the general tab on the gallery settings everything usually shows up normal or throws the errors below. However, when I try to click on any of the other tabs under gallery settings it either sends me to a blanks page or throws me more errors. When I try to click on the pre-generated report file link it sends me to a blanks page.

I've tried to uninstall the module and delete all the files but when I try to reinstall I get the same problems and nothing works. Can anyone help?

* A serious error has occured. This can happen due to an incorrect configuration or a bug in the gallery module. If you plan to submit a bug report to the issue queue at drupal.org consider to include the pre-generated report file.
* Error in function 'gallery_handle_request()' (gallery_base.inc:223):
o Error (ERROR_MISSING_OBJECT) : Parent 7 path install
+ in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 98 (GalleryCoreApi::error)
+ in modules/core/classes/GalleryCoreApi.class at line 1952 (GalleryFileSystemEntityHelper_simple::fetchChildIdByPathComponent)
+ in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 53 (GalleryCoreApi::fetchChildIdByPathComponent)
+ in modules/core/classes/GalleryCoreApi.class at line 1901 (GalleryFileSystemEntityHelper_simple::fetchItemIdByPath)
+ in modules/rewrite/classes/RewriteSimpleHelper.class at line 45 (GalleryCoreApi::fetchItemIdByPath)
+ in ??? at line 0 (RewriteSimpleHelper::loadItemIdFromPath)
+ in modules/rewrite/classes/RewriteUrlGenerator.class at line 103
+ in modules/rewrite/classes/parsers/modrewrite/ModRewriteUrlGenerator.class at line 56 (RewriteUrlGenerator::_onLoad)
+ in init.inc at line 166 (ModRewriteUrlGenerator::initNavigation)
+ in main.php at line 197
+ in main.php at line 104
+ in modules/core/classes/GalleryEmbed.class at line 189
+ in /home/wacademy/public_html/modules/gallery/gallery_base.inc at line 205 (GalleryEmbed::handleRequest)
+ in /home/wacademy/public_html/modules/gallery/gallery.module at line 452
+ in ??? at line 0
+ in /home/wacademy/public_html/includes/menu.inc at line 348
+ in /home/wacademy/public_html/index.php at line 18
* A serious error has occured. This can happen due to an incorrect configuration or a bug in the gallery module. If you plan to submit a bug report to the issue queue at drupal.org consider to include the pre-generated report file.
* A serious error has occured. This can happen due to an incorrect configuration or a bug in the gallery module. If you plan to submit a bug report to the issue queue at drupal.org consider to include the pre-generated report file.
* Error in function 'gallery_handle_request()' (gallery_base.inc:223):
o Error (ERROR_MISSING_OBJECT) : Parent 7 path g2image
+ in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 98 (GalleryCoreApi::error)
+ in modules/core/classes/GalleryCoreApi.class at line 1952 (GalleryFileSystemEntityHelper_simple::fetchChildIdByPathComponent)
+ in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 53 (GalleryCoreApi::fetchChildIdByPathComponent)
+ in modules/core/classes/GalleryCoreApi.class at line 1901 (GalleryFileSystemEntityHelper_simple::fetchItemIdByPath)
+ in modules/rewrite/classes/RewriteSimpleHelper.class at line 45 (GalleryCoreApi::fetchItemIdByPath)
+ in ??? at line 0 (RewriteSimpleHelper::loadItemIdFromPath)
+ in modules/rewrite/classes/RewriteUrlGenerator.class at line 103
+ in modules/rewrite/classes/parsers/modrewrite/ModRewriteUrlGenerator.class at line 56 (RewriteUrlGenerator::_onLoad)
+ in init.inc at line 166 (ModRewriteUrlGenerator::initNavigation)
+ in main.php at line 197
+ in main.php at line 104
+ in modules/core/classes/GalleryEmbed.class at line 189
+ in /home/wacademy/public_html/modules/gallery/gallery_base.inc at line 205 (GalleryEmbed::handleRequest)
+ in /home/wacademy/public_html/modules/gallery/gallery.module at line 452
+ in ??? at line 0
+ in /home/wacademy/public_html/includes/menu.inc at line 348
+ in /home/wacademy/public_html/index.php at line 18
* A serious error has occured. This can happen due to an incorrect configuration or a bug in the gallery module. If you plan to submit a bug report to the issue queue at drupal.org consider to include the pre-generated report file.

Comments

profix898’s picture

This looks like a serious URLRewrite issue. Did you remove the G2 rewrite rules from Drupal's .htaccess file when you uninstalled gallery module? You should try to reinstall the module with rewrite disabled first (if required switch off rewrite in G2 temporarily).

deggertsen’s picture

Yep, definitely a serious URLRewrite issue... I removed the G2 rewrite rules from Drupal's .htaccess file like you said and it worked fine except of course URL rewrite didn't work. I tried to uninstall at that point and reinstall but it brought up the same problem... For now I guess I'll just do with out URL rewrites.

My only guess as to the problem here is that I am running this on a multisite with a different sub domains for the different sites. Could that possibly throw it off?

Thanks for your help!

deggertsen’s picture

I just thought I would post here what the install is inserting into my .htaccess and maybe you can figure out what the problem is...

# BEGIN Url Rewrite section
# (Automatically generated. Do not edit this section)

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
RewriteCond %{REQUEST_URI} !/index\.php$
RewriteRule . - [L]

RewriteCond %{THE_REQUEST} /admin/(\?.|\ .)
RewriteCond %{REQUEST_URI} !/index\.php$
RewriteRule . /index.php?q=gallery&g2_view=core.SiteAdmin [QSA,L]
RewriteCond %{THE_REQUEST} /d/([0-9]+)-([0-9]+)/([^/?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/index\.php$
RewriteRule . /gallery2/main.php?g2_view=core.DownloadItem&g2_itemId=%1&g2_serialNumber=%2&g2_fileName=%3 [QSA,L]
RewriteCond %{THE_REQUEST} /v/([^?]+)\.davmount(\?.|\ .)
RewriteCond %{REQUEST_URI} !/index\.php$
RewriteRule . /index.php?q=gallery&g2_view=webdav.DownloadDavMount&g2_path=%1 [QSA,L]
RewriteCond %{THE_REQUEST} /gallery/([^?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/index\.php$
RewriteRule . /index.php?q=gallery&g2_path=%1 [QSA,L]
RewriteCond %{THE_REQUEST} /w(/[^?]*)?(\?.|\ .)
RewriteCond %{REQUEST_URI} !/index\.php$
RewriteRule . /index.php?q=gallery&g2_controller=webdav.WebDav&g2_path=%1 [QSA,L]

# END Url Rewrite section

Thanks again.

philiphart’s picture

I had exactly the same problem, but deactivating the Gallery Drupal module, removing the URL Rewrite section from Drupal's .htaccess file and deactiving URL Rewrite in Gallery 2 did the trick.

After turning on Gallery Drupal module again, I was then able to reactivate URL Rewrite and it all seems ok so far.

Thanks for the tips here..

philiphart’s picture

A few weeks later and I'm running into the same errors again, but the fix isn't working (and obviously hadn't really solved the problem last time either).

The error messages are very similar:

# Error in function 'gallery_handle_request()' (gallery_base.inc:223):

* Error (ERROR_MISSING_OBJECT) : Parent 7 path install
o in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 98 (GalleryCoreApi::error)
o in modules/core/classes/GalleryCoreApi.class at line 1952 (GalleryFileSystemEntityHelper_simple::fetchChildIdByPathComponent)
o in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 53 (GalleryCoreApi::fetchChildIdByPathComponent)
o in modules/core/classes/GalleryCoreApi.class at line 1901 (GalleryFileSystemEntityHelper_simple::fetchItemIdByPath)
o in modules/rewrite/classes/RewriteSimpleHelper.class at line 45 (GalleryCoreApi::fetchItemIdByPath)
o in ??? at line 0 (RewriteSimpleHelper::loadItemIdFromPath)
o in modules/rewrite/classes/RewriteUrlGenerator.class at line 103
o in modules/rewrite/classes/parsers/modrewrite/ModRewriteUrlGenerator.class at line 56 (RewriteUrlGenerator::_onLoad)
o in init.inc at line 166 (ModRewriteUrlGenerator::initNavigation)
o in main.php at line 197
o in main.php at line 104
o in modules/core/classes/GalleryEmbed.class at line 189
o in /home/elena/public_html/sites/all/modules/gallery/gallery_base.inc at line 205 (GalleryEmbed::handleRequest)
o in /home/elena/public_html/sites/all/modules/gallery/gallery.module at line 452
o in ??? at line 0
o in /home/elena/public_html/includes/menu.inc at line 348
o in /home/elena/public_html/index.php at line 18

#

A serious error has occured. This can happen due to an incorrect configuration or a bug in the gallery module. If you plan to submit a bug report to the issue queue at drupal.org consider to include the pre-generated report file.
# Error in function '_gallery_init()' (gallery_base.inc:144):

* Unable to initialize embedded Gallery. You need to configure your embedded Gallery.
Error (ERROR_MISSING_OBJECT) : Parent 7 path install
o in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 98 (GalleryCoreApi::error)
o in modules/core/classes/GalleryCoreApi.class at line 1952 (GalleryFileSystemEntityHelper_simple::fetchChildIdByPathComponent)
o in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 53 (GalleryCoreApi::fetchChildIdByPathComponent)
o in modules/core/classes/GalleryCoreApi.class at line 1901 (GalleryFileSystemEntityHelper_simple::fetchItemIdByPath)
o in modules/rewrite/classes/RewriteSimpleHelper.class at line 45 (GalleryCoreApi::fetchItemIdByPath)
o in ??? at line 0 (RewriteSimpleHelper::loadItemIdFromPath)
o in modules/rewrite/classes/RewriteUrlGenerator.class at line 103
o in modules/rewrite/classes/parsers/modrewrite/ModRewriteUrlGenerator.class at line 56 (RewriteUrlGenerator::_onLoad)
o in init.inc at line 166 (ModRewriteUrlGenerator::initNavigation)
o in modules/core/classes/GalleryEmbed.class at line 129
o in /home/elena/public_html/sites/all/modules/gallery/gallery_base.inc at line 134 (GalleryEmbed::init)
o in /home/elena/public_html/sites/all/modules/gallery/gallery_block.inc at line 28
o in /home/elena/public_html/sites/all/modules/gallery/gallery.module at line 436
o in ??? at line 0
o in /home/elena/public_html/includes/module.inc at line 450
o in /home/elena/public_html/modules/block/block.module at line 473
o in /home/elena/public_html/includes/theme.inc at line 1571
o in ??? at line 0
o in /home/elena/public_html/includes/theme.inc at line 617
o in /home/elena/public_html/includes/theme.inc at line 1765
o in ??? at line 0
o in /home/elena/public_html/includes/theme.inc at line 658
o in /home/elena/public_html/index.php at line 36

#

A serious error has occured. This can happen due to an incorrect configuration or a bug in the gallery module. If you plan to submit a bug report to the issue queue at drupal.org consider to include the pre-generated report file.
# Error in function '_gallery_init()' (gallery_base.inc:144):

* Unable to initialize embedded Gallery. You need to configure your embedded Gallery.
Error (ERROR_MISSING_OBJECT) : Parent 7 path install
o in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 98 (GalleryCoreApi::error)
o in modules/core/classes/GalleryCoreApi.class at line 1952 (GalleryFileSystemEntityHelper_simple::fetchChildIdByPathComponent)
o in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 53 (GalleryCoreApi::fetchChildIdByPathComponent)
o in modules/core/classes/GalleryCoreApi.class at line 1901 (GalleryFileSystemEntityHelper_simple::fetchItemIdByPath)
o in modules/rewrite/classes/RewriteSimpleHelper.class at line 45 (GalleryCoreApi::fetchItemIdByPath)
o in ??? at line 0 (RewriteSimpleHelper::loadItemIdFromPath)
o in modules/rewrite/classes/RewriteUrlGenerator.class at line 103
o in modules/rewrite/classes/parsers/modrewrite/ModRewriteUrlGenerator.class at line 56 (RewriteUrlGenerator::_onLoad)
o in init.inc at line 166 (ModRewriteUrlGenerator::initNavigation)
o in modules/core/classes/GalleryEmbed.class at line 129
o in /home/elena/public_html/sites/all/modules/gallery/gallery_base.inc at line 134 (GalleryEmbed::init)
o in /home/elena/public_html/sites/all/modules/gallery/gallery_block.inc at line 28
o in /home/elena/public_html/sites/all/modules/gallery/gallery.module at line 436
o in ??? at line 0
o in /home/elena/public_html/includes/module.inc at line 450
o in /home/elena/public_html/modules/block/block.module at line 473
o in /home/elena/public_html/includes/theme.inc at line 1571
o in ??? at line 0
o in /home/elena/public_html/includes/theme.inc at line 617
o in /home/elena/public_html/includes/theme.inc at line 1765
o in ??? at line 0
o in /home/elena/public_html/includes/theme.inc at line 658
o in /home/elena/public_html/index.php at line 36

iqbalsyamsu’s picture

I have the same problem.

This is happened when I reinstall Gallery2 into different location. And then when i go to /admin/build/modules, I got a blank page!
I've tried to delete gallery folder in modules directory and re-open /admin/build/modules -> OK, but when I replaced with new one (from gallery-6.x-1.0.tar.gz), I still got a blank page.

I tried to rename gallery folder to something like 'gal2' and /admin/build/modules show the list of modules as well. But again, when i clicked 'save configuration' I got a blank page.

I hear about urlwrite issues and i have disabled both gallery and drupal (clean url), but still no luck.

gr777’s picture

Got the same problem after re-installing Gallery2
Fixed by running the following MySql script

UPDATE `variable` SET value = 'b:0;' where name='gallery_valid'

xenocide0’s picture

getting the same error when trying to configure the gallery blocks (/admin/build/block/configure/gallery/block-1)

This was after I moved my gallery2 dir ( from site/gallery to site/g2 ) so that site/gallery would be handled by drupal...

Error in function 'gallery_handle_request()' (gallery_base.inc:223):
* Error (ERROR_MISSING_OBJECT) : Parent 7 path block-1
o in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 98 (GalleryCoreApi::error)
o in modules/core/classes/GalleryCoreApi.class at line 1952 (GalleryFileSystemEntityHelper_simple::fetchChildIdByPathComponent)
o in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 53 (GalleryCoreApi::fetchChildIdByPathComponent)
o in modules/core/classes/GalleryCoreApi.class at line 1901 (GalleryFileSystemEntityHelper_simple::fetchItemIdByPath)
o in modules/rewrite/classes/RewriteSimpleHelper.class at line 45 (GalleryCoreApi::fetchItemIdByPath)
o in ??? at line 0 (RewriteSimpleHelper::loadItemIdFromPath)
o in modules/rewrite/classes/RewriteUrlGenerator.class at line 103
o in modules/rewrite/classes/parsers/modrewrite/ModRewriteUrlGenerator.class at line 56 (RewriteUrlGenerator::_onLoad)
o in init.inc at line 166 (ModRewriteUrlGenerator::initNavigation)
o in main.php at line 197
o in main.php at line 104
o in modules/core/classes/GalleryEmbed.class at line 189
o in /home/rpnw/websites/rpnw.xenfx.com/modules/gallery/gallery_base.inc at line 205 (GalleryEmbed::handleRequest)
o in /home/rpnw/websites/rpnw.xenfx.com/modules/gallery/gallery.module at line 452
o in ??? at line 0
o in /home/rpnw/websites/rpnw.xenfx.com/includes/menu.inc at line 348
o in /home/rpnw/websites/rpnw.xenfx.com/index.php at line 18

philiphart’s picture

thanks gr777

can you explain to simple people like me what your script is doing, why it works and the basic steps to implement it. eg can it be done through phpmyadmin? does your solution say anything about what the real cause of the problem is?

thanks

riversidekid’s picture

I have the same issue; I have a fresh install of drupal, a fresh install of gallery2.3 and the drupal gallery module to link them together. THEN I "imported" (backup/restore) my OLD gallery2.3 install which is running in another directory and another database on my server and presto, I get a blank screen when i attempt to modify any modules again.

This really isn't an issue for me... now. I have a fresh drupal and fresh gallery2.3, so I'm just going to reinstall everything. Although I want to know how to get around this, so I've been tinkering. I deleted the url rewrite portion of my .htaccess file, and that did clear a good many errors, but errors still exist in the logic that keeps the users in sync.

I think the key would be to properly remove the gallery module and all related 'hooks' between the two so we could do major modifications like upgrades, move the install folder, etc. (I plan to maintain a test site at www.example.com/test and a live site at www.example.com. So periodically I will be moving my test site to my live folder. I read how to do this with drupal, but this tells me I don't know the implications with gallery2!)

Here is the error I still get after removing the url rewrite from the .htaccess file:

Error in function '_gallery_init()' (gallery_base.inc:144):

* Unable to initialize embedded Gallery. You need to configure your embedded Gallery.
Error (ERROR_MISSING_OBJECT) : 1 GalleryUser
o in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 155 (GalleryCoreApi::error)
o in modules/core/classes/GalleryCoreApi.class at line 2404 (GalleryEntityHelper_simple::loadEntityByExternalId)
o in modules/core/classes/GalleryEmbed.class at line 294 (GalleryCoreApi::loadEntityByExternalId)
o in modules/core/classes/GalleryEmbed.class at line 270 (GalleryEmbed::login)
o in modules/core/classes/GalleryEmbed.class at line 120 (GalleryEmbed::checkActiveUser)
o in /home/sample/public_html/ver1/modules/gallery/gallery_base.inc at line 134 (GalleryEmbed::init)
o in /home/sample/public_html/ver1/modules/gallery/gallery_base.inc at line 762
o in /home/sample/public_html/ver1/modules/gallery/gallery_base.inc at line 809
o in /home/sample/public_html/ver1/modules/gallery/gallery_menu/gallery_menu.module at line 41
o in ??? at line 0
o in /home/sample/public_html/ver1/includes/menu.inc at line 1694
o in /home/sample/public_html/ver1/includes/menu.inc at line 1673
o in /home/sample/public_html/ver1/modules/system/system.admin.inc at line 623
o in ??? at line 0
o in /home/sample/public_html/ver1/includes/form.inc at line 366
o in ??? at line 0
o in /home/sample/public_html/ver1/includes/form.inc at line 102
o in ??? at line 0
o in /home/sample/public_html/ver1/includes/menu.inc at line 348
o in /home/sample/public_html/ver1/index.php at line 18

riversidekid’s picture

That did it for me too! Just access phpMyAdmin via your hosting cPanel and access the drupal database (I was trying the gallery database! D'oh!) and copy paste the "UPDATE `variable` SET value = 'b:0;' where name='gallery_valid'" command (without quotes) as is. Once that ran I was able to see my Module page again and configure the gallery as though I had just installed it for the first time!

Of course I had already disabled url rewrite in the gallery2, then uninstalled the url rewrite as the instructions on the gallery2 site for moving the gallery to a new folder. Once I reimported the MySQL databse the url rewrite was suddenly on again, so I disabled it one more time, THEN ran the above MySQL command. (Not sure how much of that was required, think I might do it a couple more times to see what is required.)

gr777: THANKS for:
Got the same problem after re-installing Gallery2
Fixed by running the following MySql script
UPDATE `variable` SET value = 'b:0;' where name='gallery_valid'

txrobnla’s picture

Finally found it, had to be turned back on in the navigation settings as well.

********************
I ran into the same issue and ran the SQL script above. I've reinstalled Gallery into Drupal, but the Gallery Settings are not appear in admin. Any ideas? I tried turning off the Gallery module, deleting it from the server, reposting and turning it back on; but I still can't get the gallery settings through Drupal.

neorg’s picture

In my case the cause was a corrupt crashed mysql table.
This is how to fix that

mysqlcheck -u root -p all-databases

This give you a list off all corrupt MYSQL tabels

Login to mysql using

mysql -u root -p

And Repair the corrupt table(s)

REPAIR TABLE [table_name]

NOTE: I have a complete custom .htaccess