Gallery2-Embed Questions...
I am new to drupal and gallery2, so be gentle...
Im trying to embed gallery2 (2.1.1a-typical) within drupal (4.7.0). I have installed the Imageframe and Imageblock modules into gallery2. After loading drupal, and going to my settings to save the gallery2 embed settings (to run the test) this is the error I get....
* Embedded Gallery2 Status:
o 'URI of Gallery2' variable: Error
+ Either your server does not support the automated verification of the Gallery 2 location or the supplied g2Uri points to a incompatible Gallery 2 version (older than 2.1)
o PHP Memory Limit: Error
+ Your PHP is configured to limit the memory to 16M ( memory_limit parameter in php.ini). You should raise this limit to at least 24MB for proper Embedded Gallery2 operation
o Overall Status: Error
+ You need to fix the above errors before Gallery2 will be embedded in Drupal.
* The configuration options have been saved.
Drupal is located @ htdocs/drupal, and gallery2 is located at htdocs/gallery2. As for the gallery2 drupal embed settings, I have the "URI of Gallery2:" set to /gallery2/
What am I doing wrong here...? How do I fix the 'URI of Gallery2' variable: Error, and the PHP Memory Limit: Error? Any help here would be GREATLY appreciated.

memory limit error / uri error
memory limit error:
you're going to need to edit your php.ini file and increase the memory_limit to something like 32MB or above... then restart apache... (of course you'll need root access to server, if not, ask your host to up the limit)
URI of gallery2 error:
seems like you got the correct setting... however, try downloading the latest version of gallery2 http://gallery.menalto.com/downloads (2.1.2)... and use the cvs version of gallery.module http://ftp.osuosl.org/pub/drupal/files/projects/gallery-cvs.tar.gz
and follow instructions here: http://drupal.galleryembedded.com/index.php/Installation
note i think it may have something to do with drupal being in a sub-directory: go into Admin-->settings-->Gallery-->"links to gallery 2..."-->Embedded URL Rewrite settings
under "Embedded Setup" , these are suppose to point to your Drupal .htaccess (as noted in galleryembededded.com instructions)
and checkout this forum: http://www.galleryembedded.com/forums/viewforum.php?f=35
duntuk - Thanks for the
duntuk - Thanks for the detailed reply and the pointer to more the specific forum.
In certain hosting environments the automatic URI detection will not work and you need to manually enter them. In your case the entered value appeared to be correct, but try entering the full URL (eg http://www.example.com/gallery2/).
Drupal can be in a subdirectory so that should be OK.
The embed URL Rewrite settings are not the problem (yet anyway) or at least not the source of the displayed error.
no dice
Thanks for the replies guys... I appreciate your help.
1. I tried moving the directories around, and that didnt help, still getting the same errors
2. In drupal, I went to Admin-->Settings-->Gallery-->Links to Gallery2 as you suggested. Those settings ar not yet available, until I complete my gallery2 embed installation. As of current, it reads: "Full names in G2 can be supported using the profile module with a "Full Name" field. However the profile module is not installed, so this functionality is not available. If you install it you will have more options here."
3. I tried listing http://www.example.com/gallery2 as the URL for both "URI of Gallery2". I also tried using that adress for "Embed URI (Autodetected value):". Then I tried it with both of them. I was still recieiving errors on all 3 attempts.
4. Just to note, POWWEB is my provider (they run unix servers). I dont know if this has anything to do with it, but I figured it was noteworthy to mention. I dont have access to my php.ini file, so Im going to have to call them to edit that
Lastly... I would really prefer to not have to upgrade my gallery2. If that is positively the issue, than I obviously have no choice, but I would like to exhaust all other options before doing so. In the error message it says the error could be caused by a version lower than 2.1, but I do infact have 2.1.1, so Im not sure that is the issue.
Any additional insight here would be a huge help, as I have no idea what I should do next :(
Try 3) again, but turn off
Try 3) again, but turn off the autodetection -- you will need to include values for the other variables.
Does Gallery2 work non-embedded?
Don't worry about 2) for now. It's not the main problem or concern.
Be careful with 1). You can't just move gallery2 dirs around and expect it to work. Check if non-embedded is still functional.
No need to upgrade your gallery. 2.1.1 is fine.
1. Ok, I tried to enter
1. Yes, Gallery2 and Drupal are both installed, and fully functional.
2. I moved both directories back to their original locations (Drupal is located @ htdocs/drupal, and gallery2 is located at htdocs/gallery2)
3. Ok, I tried to enter http://www.example.com/gallery2 for both entries again, then I tried it for each of them individually (all attempts with auto-detect off) and that still didnt yield me any results. Furthermore, when I entered that adress and turned autodetect off, I get an additional 2 error messages (on top of the two errors I am already having. You know those already, so I wont list them)
Embedded Gallery2 Status:
* 'URI of Gallery2' variable: Advisory
o Cannot fully check this when not in auto-detect mode.
* 'Location of Gallery2' variable: Error
o file http://www.charlesdonahue.com/gallery2/embed.php does not exist
I checked to see if Im missing /gallery2/embed.php, as this error suggests, but I am not.
Any other ideas?
Can you please check the
Can you please check the htdocs/gallery2 directory on your server. You should see embed.php (it's there on mine). If not, what is in there?
yes, I have
yes, I have htdocs/gallery2/embed.php on my server.
Charles, I am not sure what
Charles, I am not sure what is going on. If you like I can take a look and try to set up your site. In order to do so I would need temporary admin privilege for both drupal/gallery2 (I've done this many times now). If you're OK with it you can PM me the details.
yeah, having someone
yeah, having someone checkout your hosting environment is going to be your best bet... i'm assuming that there's a symlink being used that's throwing off the 'auto detect' ... that's usually how some hosting control panels are setup...
e.g. for DirectAdmin, when you ftp into your site you may see:
/home/username/public_html
when infact it's really
/home/username/domains/yourdomain.com/public_html
This problem was fixed by
This problem was fixed by manual configuration -- "Location of gallery2" set to "../gallery2/".
file /gallery2/embed.php does not exist
I am having same issue. Maybe someone can give me a hint.
When configuring the Gallery2 module for Drupal, I get following error.
'Location of Gallery2' variable: Error
file http://www.sharesajin.com/gallery2/embed.php does not exist
Both Drupal and gallery2 work fine in stand along mode.
Thanks in Advance.
Nam
embed.php does not exist
I'm experiencing the same error. Did you figure out?
same problem
I'm adding a "me too" to this.
IIS 6.0 on 2003
latest gallery2 (2.1.2) installed and working idependently, inside of my drupal directory (docroot/drupal/gallery2)
drupal 5.1 installed and working independently
latest gallery 5.x-1.x-dev loaded
I can NOT get it past the embed.php issue - as I can see many others have the same problem, not just in this forum post but on other forums as well.
http://drupal.org/node/70273
http://drupal.org/node/113314
http://www.galleryembedded.com/forums/viewtopic.php?t=5453&sid=f7a3b1fd3...
Also keeping an eye on the issues area:
http://drupal.org/node/118073
http://drupal.org/node/105917
and more... you get the idea. many people, both apache and iis installs, 4.6+ and 5.1+
Tried all aforementioned suggestions in this thread.
Check out
Check out http://www.galleryembedded.com/forums/viewtopic.php?t=6164 where the issue was due to PHP safe mode. Safe mode is not supported by Gallery2 -- see http://codex.gallery2.org/Gallery2:FAQ#Does_G2_work_with_Safe_Mode_PHP.3F. Please let us know if that is indeed the problem in your case(s).
safe mode
The safe mode on my php install is set to off, so not that one.....
Noticed today another release of gallery, so will give that a go.
Wish I read this before I gave this a go
same issue will follow this thread
The Ultimate Virus Avoidance System:: Mac
Embedding Gallery 2.2.1
Please follow the help on 'Directory Settings' and check the example which suits your installation, for me Example 1 worked for errors just like yours and the case of Memory has been settled.
__________________________
Directory Settings
"URI of Gallery2" is the URI of the Gallery2 standalone location. Path from docroot to the directory main.php is located. Protocol / host name are both optional. Examples: /gallery2/, /sub/gallery2/, http://photos.example.com/, www.example.com/photos/main.php
"Location of Gallery2" is the path of your gallery2 installation, either absolute (starts with "/") or relative to your Drupal installation directory. Normally this is auto-detected, but in case this fails you can turn off auto-detection and manually enter a value.
"Embed URI" is the URI needed to access Gallery2 through Drupal. This will end in '?q=gallery' (non-clean URLs) or 'gallery' (clean URLs). Normally this is auto-detected, but in case this fails you can turn off auto-detection and manually enter a value.
Some examples:
Example 1: If your directory structure and website structure is
• Drupal dir: /var/www/web/html/
• Gallery dir: /var/www/web/html/gallery2/
• Website URL: http://www.example.com
• Standalone Gallery2 URL: http://www.example.com/gallery2/
• Then
- "URI of Gallery2" = "/gallery2/" or "http://www.example.com/gallery2/"
- "Location of Gallery2" = "gallery2/" or "/var/www/web/html/gallery2/"
- "Embed URI" = "?q=gallery" or "http://www.example.com/?q=gallery"
Example 2: If your directory structure and website structure is
• Drupal dir: /var/www/web/html/drupal/
• Gallery dir: /var/www/web/html/gallery2/
• Website URL: http://www.example.com/drupal
• Standalone Gallery2 URL: http://www.example.com/gallery2/
• Then
o "URI of Gallery2" = "/gallery2/" or "http://www.example.com/gallery2/"
o "Location of Gallery2" = "../gallery2/" or "/var/www/web/html/gallery2/"
o "Embed URI" = "/drupal/?q=gallery" or "http://www.example.com/drupal/?q=gallery"
Example 3: If your directory structure and website structure is
• Drupal dir: /var/www/web/html/drupal/
• Gallery dir: /var/www/web/html/someotherdir/gallery2/
• Website URL: http://www.example.com/
• Standalone Gallery2 URL: http://www.anotherexample.com/gallery2/
• Then
o "URI of Gallery2" = "http://www.anotherexample.com/gallery2/"
o "Location of Gallery2" = "/var/www/web/html/someotherdir/gallery2/"
o "Embed URI" = "/drupal/?q=gallery" or "http://www.example.com/drupal/?q=gallery"
__________________________
Susej