Closed (duplicate)
Project:
Gallery
Version:
5.x-2.1
Component:
Installation / Configuration
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Feb 2008 at 17:10 UTC
Updated:
23 Feb 2008 at 17:22 UTC
I am getting a configuration error on my embedded gallery module (Gallery 2.2.4/Drupal 5.6). When I go to the configuration screens, everything seems ok and no warnings etc are visible. The gallery appears to work fine in the embedded mode. Attached is the bug report (had to rename from .html to .txt to get it to attach). Any direction or help appreciated.
| Comment | File | Size | Author |
|---|---|---|---|
| gallery_report.html_.txt | 40.89 KB | rkdesantos |
Comments
Comment #1
rkdesantos commentedChanged this to a bug report. Some of my users intermittently get this message and a white screen:
Fatal error: Call to undefine d function: drupal_get_path() in /home/afana/public_html/drupal5/modules/gallery/gallery.module on line 4Repeated refreshes and it eventually works and my site appears as it should. I can't predictably create it, it seems to occur at random. Upgrading to 5.x-2.1 did not help.
Comment #2
profix898 commentedThis somehow looks like a php memory issue. Its impossible that drupal_get_path() is undefined as it is located in the common.inc file of Drupal, what is the very heart of Drupal core. Also the problem occuring at random does not point to a bug in the code, otherwise it would never work as expected. What is your php memory configured to? Can you please increase the memory limit and try again!? Most people are happy with 24-32MB but you may need more in case you have dozens of modules and G2 plugins enabled.
Comment #3
rkdesantos commentedUpping the memory for Drupal to 50M made no difference; it was at 30M. Gallery is already at 50M.
Comment #4
rkdesantos commentedThe Drupal log has this which may be related:
Comment #5
cjensen commentedI can confirm that I'm experiencing the fatal error, as well. My logs don't reveal anything, but that may simply be due to my configuration. Best guess at this point is that the error occurs on cache hits, as I can usually access a page once but get errors if I reload. If so, increasing available memory might make the situation worse... ?
Interestingly, when logged in, I haven't had any problems (yet). Disabling page caching (Administer -> Site configuration -> Performance) altogether appears to get rid of the problem for anonymous users. I guess that's the way to go, for now.
This issue: http://drupal.org/node/183877 looks like it has similar symptoms, though I had no luck getting their code changes to work.
Comment #6
rkdesantos commentedYes, the link to the issue on Calendar module sounds very similar.
It does appear cache related somehow. I tried disabling caching. That didn't make the problem go away for me, however users in admin mode do not see the problem.
Comment #7
profix898 commentedThis path is indeed not a valid gallery path, its missing the '/gallery/' part (should be '/drupal/gallery/v/ess_bris_r8_07/...'). Do your rewrite rules include it, i.e. 'gallery/v/%path%'?
The page cache is a DB table, so increasing php memory (= memory available for executing php scripts) should not make any difference. But still a helpful observation that page cache might be involved here.
I cant tell from memory how Drupal manages the page cache, based on the request url and not going through the menu system at all. I will try to debug this as time permits. Please let me know if you have any additional clues ...
Comment #8
rkdesantos commentedHere is the htaccess file for Gallery itself:
here is the one for Drupal:
Does this give you any insight?
I disabled the gallery module for the moment because otherwise my site is unusable.
Comment #9
profix898 commentedLets continue over in Fatal Error ('drupal_get_path') for guest users if page cache is enabled.