I am working in a local development environment and running into a wall trying to embed Gallery 2 into my Drupal. I'm running Drupal version: 5.3 and Gallery 2 version 2.2.3 (Typical).
The Gallery 2 stand alone installation went perfectly, and it is installed as Gallery 2 inside the Drupal root.
Ok - so my final step is to embed the G2 intallation in Drupal. This is what I get:
Embedded Gallery2 Status:
* 'URI of Gallery2' variable: Error
o 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)
* PHP Memory Limit: Error
o Your PHP is configured to limit the memory to 12M ( memory_limit parameter in php.ini). You should raise this limit to at least 24MB for proper Embedded Gallery2 operation
* Overall Status: Error
o You need to fix the above errors before Gallery2 will be embedded in Drupal.
I have long since increased my .php memory limit to 32MB, which helped in Drupal with some unrelated issues (color changes in themes). This was prior to installing Gallery. No matter what I do in php.ini - somehow this action is finding a 12M limit (which is not true). I tried some other fixes recommended here: http://codex.gallery2.org/Gallery2:FAQ#PHP_memory_limit_-_Why_do_I_get_t...
Nothing works...I have an .htaccess file, changing that doesn't work, either.
For the directory settings issue, I checked - and URL rewrite is disabled in G2 - so that shouldn't be the problem on that end?
This is really frustrating - I've checked all support topics and nothing seems to work for me here. I'm not experienced with scripting / php but have managed so far, except for this one, crucial thing. I'm almost about to give up on Drupal - I need an art portfolio website and without proper gallery functionality, it's useless to me. Any help is greatly appreciated.
Comments
Comment #1
profix898 commentedHi mcri!
Before you proceed I suggest that you get the latest 5.x-2.x-dev version (http://drupal.org/node/138771) of gallery module. I will make an official release for that tomorrow anyway ;) It provides improved test routines for initial configuration and many other improvements/features.
- PHP Memory limit
Can you please check the phpinfo page to verify your limit? For this browse to Administer > Logs > Status report and click the version string for php (or use 'admin/logs/status/php' as Drupal path directly). You will get a page containing your current php configuration. In the table under 'Configuration PHP Core' search for the 'memory_limit' row.
- Paths
The most common configuration is to install Gallery2 in a 'gallery2' subdirectory inside your Drupal root folder. What is the layout of your Drupal and Gallery2 folders? What did you enter for 'URI of Gallery2'? What is the webpath (what you enter in your browser) to your Drupal and to your standalone G2?
- Gallery2 package
The 'typical' download package of Gallery2 does not contain the 'ImageBlock' plugin, that is required for Drupal integration. Please get this plugin at http://codex.gallery2.org/Gallery2:Download#Modules or download the 'Full' package.
I'm confident that you will have embedded Gallery2 working shortly ... :)
Comment #2
profix898 commentedBTW: There is a pretty extensive installation guide available in the G2 codex (http://codex.gallery2.org/Integration:Drupal and particularly http://codex.gallery2.org/Integration:Drupal:Installation).
Comment #3
mcri commentedThanks so much for your response (esp. on a holiday).
I'm burning some pre-Thanksgiving dinner calories sweating over this issue ;)
Okay - I upgraded my Gallery module to the dev. version.
Checking PHP info through Drupal (as opposed to through MAMP / phpinfo) I get new variables! Perhaps you can advise. Although my master memory_limit is indeed, set to 32MB, when I check through Drupal, it indicates a local memory_limit of 12MB. Now, I have tried creating .htaccess doc and all of the other tips noted in my original post...
What else can I do to change this local memory_limit? Sorry if I'm missing something obvious.
Directory Layout:
/drupal/gallery2/
URI of gallery2:
/gallery2/
Path to gallery2:
gallery2/
NOTE: When I unchecked "autodetect settings" in the 5.x-1.0 release, Drupal found the path to Gallery2, but I got an advisory notice. Now the whole config. is different with the new version. I don't see where to even type anything in:
nstall status
Correct configuration of the following items is essential for the embedded gallery to function properly.
Step Status Description
PHP Memory Limit Error Your PHP is configured to limit the memory to 12M (memory_limit parameter in php.ini). You must raise this limit to at least 24M for proper embedded Gallery2 operation.
Gallery2 locations Error
Drupal Modules / Gallery2 Plugins Warning
Clean URL / URL Rewrite Warning
Initial User Synchronization Error
ImageBlock module for Gallery 2 - I downloaded and enabled that seperately, before trying to embed into Drupal.
Hopefully you can steer me - I followed all directions I found online to a "T".
Comment #4
profix898 commentedI live in Germany and we dont have the 'Thanksgiving' holiday, but there is a similar day here which is always celebrated on a Sunday (early in October).
There are three locations where you can set the memory limit AFAIK:
1. in your php.ini (
memory_limit 32M)2. in Drupal's .htaccess file (
php_value memory_limit 32M)3. in the settings.php of your Drupal site (
ini_set('memory_limit', '32M');)Thats OK. The new module uses a wizard to guide you through. You will need to solve the php memory issue before you can continue.
Comment #5
mcri commentedAwesome: Fix #3 - changing 'memory_limit' in /sites/default/settings.php did the trick.
Ironic, this was the ONE workaround that was not mentioned anywhere else on the support links for memory limit. And probably the most obvious (outside of php.ini)
Hopefully, this tip will help others!
And the new module version install Wizard? Brilliant - I love it. Even URL rewrite appears to be fine. I'm so pleased.
I really appreciate your help! I feel so accomplished having spent the first 4 hours of my favorite national holiday troubleshooting to success. Time to celebrate.
Cheers
MCRI
Comment #6
profix898 commentedI'm pleased to read that :) Enjoy your holiday.