Hey
my url is guernseykayaking.com and the drupal installation is into the public root (/var/www/) the gallery is installed to /var/www/galleryk .
when i try and embed gallery 2 in drupal (the standalone works fine) I get the following error when I use the correct location and URI of gallery2:
Fatal error: Call to a member function on a non-object in= /home/guernse1/public_html/galleryk/modules/rewrite/classes/RewriteApi.class on line 67
The locations I am using for this are with autodetect ticked.
URI-http://guernseykayaking.com/galleryk/
Location-galleryk/
embed URI-/?q=gallery
However if I disable autodetect and change the location to /public_html/galleryk
I get the following
* Embedded Gallery2 Status:
o 'URI of Gallery2' variable: Advisory
+ Cannot fully check this when not in auto-detect mode.
o 'Location of Gallery2' variable: Error
+ file /public_html/galleryk/embed.php does not exist
o 'Embed URI' variable: Advisory
+ Cannot fully check this when not in auto-detect mode.
o PHP Memory Limit: Success
o Overall Status: Error
+ You need to fix the above errors before Gallery2 will be embedded in Drupal.
* The configuration options have been saved.
Someone please shed some light!!!
Comments
Comment #1
kiz_0987 commentedWhat is your version of G2? What is the version of the rewrite module?
When using manual config try the full path to the gallery2 install (/home/guernse1/public_html/galleryk/ -- although you also mention /var/www/galleryk)
Comment #2
ashjeyes commentedThanks for your reply...
Its actually working now, to an extent. I enabled url rewrite which enabled me to embed the gallery. However it would not show any pictures even though they had been uploaded to an album, so I then disabled the URL rewrite and it is fine.
BUT!!!! in my embedded window it does not allow anyone to see or use the left hand toolbar http://guernseykayaking.com/gallery I cannot for the life of me figure this out, it also does not provide the options for the gallery in create content.
I have checked the access settings and the only access setting applicable to gallery 2 that I have is the G2 image mod.
Ash
Comment #3
kiz_0987 commentedGood to hear that it's partially working. I'd still like to know the G2 and URL Rewrite versions though so that I can track down the initial problem.
You should disable the G2 Registration module as now all user registration should be done through Drupal.
What do you mean when you refer to the "left hand toolbar"? If you mean the gallery admin/navigation stuff that's normally in the sidebar of G2 standalone then you need to enable the "Gallery Navigation" block.
"Create content" has no extra options for Gallery2. You need to add photos using the Gallery Navigation block.
Comment #4
ashjeyes commentedG2 ver 2.1.2
G2 Rewrite module ver 1.1.4
G2 Module 4.7.x-1.0
unfortunately i do not have the opportunity for access settings, for gallery navigation. I tried to enable it in blocks, it gave me the okay but wont show anything on any of my pages.
Comment #5
kiz_0987 commentedI see that you have moved the sidebar blocks into the album page in G2, so the Gallery Navigation block is likely empty and so not displayed. Was this always the case? If not I can take a look at your site if you PM me log in details for an admin (if you want).
Comment #6
NickT-1 commentedI get the same problem. Looking at some of the scripts (which I don't really understand) I see that the following code fails (G2EmbedDiscoveryUtilities.class line 202):
The response is "HTTP/1.1 302 Found". i.e. the file is found but is a redirection. The embedding code is want a response number starting with 2 (i.e. 2xx).
I'm using Drupal 4.7.4, Gallery 2.1.2, Apache 2.2.3 and have multisite galleries. I've noticed other people have the same problem with the autodetect not working. I don't know what to do to correct this.
Comment #7
kiz_0987 commentedThe "Fatal error" is now fixed.