Closed (fixed)
Project:
Gallery
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Jan 2007 at 00:51 UTC
Updated:
25 May 2007 at 17:01 UTC
Browse for http://example.com/gallery/any_nonexisting_string
I get:
Unable to initialize embedded Gallery. You need to configure your embedded Gallery.
The words "configure your embedded Gallery" contain a link pointing to
http://localhost/gallery/%3Cem%3E/admin/settings/gallery%3C/em%3E
Or, which is the same:
http://localhost/gallery/<em>/admin/settings/gallery</em>
...which clearly is a messed up code issue (probably due to missing out code needed which to be ported to drupal 5).
Phil
Comments
Comment #1
kiz_0987 commentedAre you using the latest 5.x-1.x-dev code (from Dec 31st)? I thought I'd fixed all these in that version and I just rechecked and could not find the error.
Comment #2
filiptc commentedUpdating gallery only fixes the
<em>...</em>in the links but not the fact that browsing a nonexistent location gives the viewer (even anonymous) a pretty confusing error message with a link to the admin section. This is a major problem with viewers redirected from browsers with outdated indexes (i.e. pointing towards removed gallery items).Instead, the default 404 message should be displayed.
Comment #3
kiz_0987 commentedDo you mean that you have URL Rewrite on and trying to access an unknown photo in your gallery install and it returns an error? If so, then this is a known issue (http://drupal.galleryembedded.com/index.php/Troubleshooting#I_get_.22PHP...) which currently I do not know how to fix, due to what Gallery2 is returning. I'm open to suggestion :-)
Comment #4
filiptc commentedIt does not just report 'an error', it reports the wrong error. I do not see
but
and in the drupal logs i get:
I do have URL-rewrite on but I don't see the message you say
Comment #5
jim_fulford commentedDid you resolve this, my installation started doing the same thing today.
Comment #6
filiptc commentedNo I did not... It's not critical but I think it should get fixed. As I said, browsing a nonexistent gallery URL as anonymous (url-redirect on) and getting wrong and confusing error messages with links to the admin section is not a great thing. 404 would be the usual in those cases.
Comment #7
kiz_0987 commentedFixed in 5--2 branch of the module.
Comment #8
(not verified) commented