With my *special* Drupal/G2 configuration, I'm having a problem accessing the G2 Filter and G2Image tabs in the Gallery module admin interface. If I disable Clean URLs in Drupal, I do not get the errors. Here's the error output.
Error in function 'gallery_handle_request()' (gallery_base.inc:164):
* Error (ERROR_MISSING_OBJECT) : Parent 7 path report
o in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 98 (GalleryCoreApi::error)
o in modules/core/classes/GalleryCoreApi.class at line 1934 (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 1883 (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 161 (ModRewriteUrlGenerator::initNavigation)
o in main.php at line 196
o in main.php at line 103
o in modules/core/classes/GalleryEmbed.class at line 189
o in /home/username/drupal/sites/all/modules/gallery/gallery_base.inc at line 146 (GalleryEmbed::handleRequest)
o in /home/username/drupal/sites/all/modules/gallery/gallery.module at line 383
o in ??? at line 0
o in /home/username/drupal/includes/menu.inc at line 418
o in /home/username/drupal/index.php at line 15
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | g2path.patch | 950 bytes | profix898 |
Comments
Comment #1
profix898 commentedThis seems to be a serious problem. There are three bug reports for this kind of issue in the queue (in different context). Marked http://drupal.org/node/193132 and http://drupal.org/node/192924 'duplicate', so that we can work together in this issue here.
You are all experiencing the same problem:
Error (ERROR_MISSING_OBJECT) : Parent 7 path userson user synchronizationError (ERROR_MISSING_OBJECT) : Parent 7 path installon the install tabError (ERROR_MISSING_OBJECT) : Parent 7 path reporton the G2Image and Filter tabsAs a immediate workaround you can simply disable URL Rewrite in Gallery2.
Although I cant tell why this happens only for some users and only on certain pages, I think I have a clue where the problem is originated in the code. The new 5.x-2.x series of gallery module directly manipulates the
$_GET['g2_path']variable to accomplish a closer link between Drupal and Gallery2 path-wise. This is required to get GalleryMenu module and locale/i18n working if URL Rewrite is enabled.However I think a slight reorganization of the call-sequence in gallery module or a method to restore the variable after Drupal has finished its part can solve this problem shortly.
Comment #2
ThriLLz commentedgot the same problem, have no idea what to do... i've tested everything but no way.... hope that this failure will be fixed...
Comment #3
profix898 commentedI tried on 4 different servers and was unable to reproduce the issue. Is anyone willing to grant me access to his/her infrastructure, so that I can test patches on an affected system? Can anyone please give the patch a try? I realized that I restructured g2_path handling in an earlier patch, so that we can possibly live without it completely now.
Comment #4
fuzzydru commentedI gave the patch a try on drupal 5.3, i18n.module 5.x-2.2, gallery.module 5.x-2.0-beta6 and still get the same error on 'admin/settings/gallery/filter':
this is how my .htacces file in the gallery2 folder looks like:
this is the .htaccess file in the drupal directory:
hope that gives you a the right info to circle the issue.
Thanks for your help.
Comment #5
fuzzydru commentedWell, just found something else which could have to do with the error.
it seems that the auto install routine of gallery.module 5.x-2.0-beta6 picks up some old (and wrong settings of the previous gallery.module install.
in the gallery settings it shows under "Step 2: Gallery2 location settings - Auto Configuration (OK)" the "Embed URI:" as "/de/index.php?q=gallery" which might result in conflicts with the hole URL Rewrite routine.
I just can't seem to find a way to change this setting. ;)
Comment #6
ThriLLz commentedthis might be the failure... i got the failure only after ive installed the gallery again...
everytime the same failure. tryed everything, now im out of ideas. there must be a way to fix this....
the embed url seems ok at my installation (the same as the first time)!
index.php?=gallery
i have no other languages...
greetings
dorian
____
www.kukljica.org
Comment #7
profix898 commentedThanks fuzzydru for the details. Helped a lot :)
I was amazed to see that handleRequest is called for your filter page at all as it usually handles the gallery page only. But looking at your rewrite rules, it appears that the
RewriteCond %{THE_REQUEST} /gallery/([^?]+)(\?.|\ .)rule applies to all paths containing/gallery/. Can you please try to change this to^/gallery...so that only paths starting withgalleryare rewritten!? Or change your 'ShowItem' rule fromgallery/%path%togallery/v/%path%.Actually this starts to look more like a configuration issue than a bug in the gallery module code ...
Comment #8
fuzzydru commentedthe change of
^/gallery...did work and the install routine works now.on thing still persists. in the install page of gallery.module it still shows
Embed URI: /de/index.php?q=gallery. I don't know where the/deis coming from. (even after deinstall of the module)I'm assuming the standard Embed URI should just read
/index.php?q=galleryso that the module can parse the request through i18n (if given).Comment #9
profix898 commentedMarking this 'task' as I plan to improve the documentation (especially FAQ) and submit an issue for Gallery2. The G2 rewrite rules should never apply to Drupal paths just because a ^ is missing IMO. Forcing users to set the 'Show Item' rule to
gallery/something/%path%is not a solution either.@fuzzydru: Are you using the i18n module or multilingual plugin in G2? The code that detects the Embed URI can be found in gallery_install.inc line 790+. Could you please add some print_r or sth. to find out where exactly the language prefix is added? I cant see why this should happen from just looking at the code.
Comment #10
profix898 commentedFeature request for G2 submitted (see http://sourceforge.net/tracker/?func=detail&atid=357130&aid=1835153&grou...) and installation instructions updated to always recommend
gallery/v/%path%. A paragraph for this has also been added to the Troubleshooting page (http://codex.gallery2.org/Integration:Drupal:Troubleshooting#URL_Rewrite...).I have created a separate issue for the i18n prefix in Embed URI stuff at http://drupal.org/node/193910
Comment #11
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.