Hi,
in the last couple of days I've started getting this strangest WSOD when going to the frontpage in IE (and sometimes, but not always in Firefox).
Fatal error: Call to undefined function drupal_get_path() in /home/accountname/public_html/sitefolder/sites/all/modules/drigg/drigg/drigg.module on line 7
The front page is set to drigg_home.
I recently renamed my site folder, but I don't think this has anything to do with that. (this is the only change that I did in recent days)
Do you have any idea what could be causing this? Or do you know what that function drupal_get_path is about?
All other parts of the site work okey... but only the front-page for first time users gives this strange glitch.
Comments
Comment #1
drupalina commented... and it happens only for the anauthenticated users. When you login, you can access the frontpage.
UPDATE: this problem now appears in both IE and Firefox. But it only appears for the Anonomous visitors.
At times using www.sitename.com instead of just sitename.com, works. But most of the time it doesn't work.
Going to a direct link to a particular page or node works fine. Going to a link that indicates one of the languages works fine too. But going to sitename.com will result in WSOD as described above.
I wonder if config_forms.inc is where the problem is (because that's what's on line 7 of drigg.module).
Comment #2
drupalina commentedUPDATE: I've disabled all caching and aggregation in /admin/settings/performance , and the site started functioning again (of course all very slowly now).
Then I tried a combination of various options in Performance sections. The problem seems to kick in when I enable "Normal (recommended, no side effects)" Caching mode. This never happened in previous versions of Drigg before version 26.
Changing this to a Bug report and Critical
Comment #3
mercmobily commentedHi,
Please QUICKLY try the latest version of Drigg, 1.29. This SHOULD solve the problem. Please let me know.
Merc.
Comment #4
mercmobily commentedHi,
Please try version 1.30 -- and do it as soon as possible.
Bye,
Merc.
Comment #5
korzh commentedTony, you are a genius!))
Seems, everything is OK now!
I also had that problem.
Just installed drigg 1.30 and everything seems to be ok now...
Thanks
Comment #6
mercmobily commentedHi,
OK, I feel better now...
Others, PLEASE confirm that things are fine now.
I am not going to bed till I've had at least 2 more confirmations.
I am so sorry people... I don't know what to say. An intermittent bug that only shows up in particular circumstances with a particular browser... and yet such an important bug!
Merc,
Comment #7
drupalina commentedI'll upgrade right now (from 26 to 30) and will report as soon as I do ... hopefully in few minutes.
Comment #8
drupalina commentedHi,
I've upgraded from 26 to 30 as usual (deleted the old 26 folder, uploaded the new 30 folder; ran the update.php script) ...
Then I turned on the Normal caching , and went to the site with as an Anonymous user (both in IE7 and FF2.0.13) ... and problem persists!!! - same WSOD as before.
Disabling Normal caching in /admin/settings/performance puts everything back on track.
In short, Drigg 30 has the same problem as Drigg 26
(Note: my Drupal 5.7 is NOT patched. It's a usual Drupal 5.7)
Comment #9
drupalina commentedIf it's of any help... if I recall correctly, the previous version of drigg (version 24) did not have this problem.
Comment #10
mercmobily commentedHi,
Drupalina, I had email confirmations that this problem is supposed to be gone.
Can you please DELETE the Drigg cache manually with SQL, and see if the problem persists?
Merc.
Comment #11
mercmobily commentedHi,
I've had more confirmation of the problem being solved. Drupalina, please report back. Clear the cache with SQL, play with it, etc.
Let me know if this gets fixed.
Merc.
Comment #12
drupalina commentedhi,
how do I clear the cache with SQL??? Sorry, I never really go into phpMyAdmin unless I need to backup the database.
Just tell me what I need to do and I'll report back immediately.
thanks
Comment #13
mercmobily commentedHi,
Run the follwing queries:
delete from cache_page;
delete from cache;
Bye,
Merc.
Comment #14
drupalina commentedHi,
where do I run those queries? my host doesn't allow me Shell access.
Is there anything that I can do through phpMyAdmin ???
Comment #15
drupalina commentedI can see little "recycle bin" icons next to each table in phpMyAdmin, with an alt "Empty". When I click it it gives a prompt "Are you sure you want to TRANCATE cache_page?"
Am I on the right track? Is "truncating" the cache_page the same as emptying it????
Comment #16
drupalina commentedOk, I've TRUNCATED cache_page and cache tables through phpMyAdmin
in the Performance settings
Caching mode: Normal
Minimum cache lifetime: 10 min
Result: the problem is still there...
Comment #17
mercmobily commentedHi,
Drupalina, please send me an email with pretty much everything: your URL, admin password, FTP access, and pretty much everything.
If you do it _now_, I will have a look right now. If not, this will drag on for a long time.
Also, are you on gtalk? I am tonymobily thre... are you able to come to chat?
Merc.
Comment #18
mercmobily commentedHi,
Can you confirm that you're using the latest .30 drupal, and that the error is still:
Fatal error: Call to undefined function drupal_get_path() in /home/accountname/public_html/sitefolder/sites/all/modules/drigg/drigg/drigg.module on line 7
...?
Merc.
Comment #19
drupalina commentedyes, I'm using drigg 30 and the error is still the same.
I will send you an e-mail right now.
Comment #20
mercmobily commentedHi,
Drupalina, please change the first three lines, the ones with the include_once, with:
include_once dirname(__FILE__) . '/config_forms.inc';
include_once dirname(__FILE__) . '/helpers.inc';
include_once dirname(__FILE__) . '/legacy_and_missing.inc';
And report back ASAP. It's not an "elegant" solution, but it should do the trick for now.
This problem is -insane-.
Merc.
Comment #21
mercmobily commentedHi.
Drupalina, I saw your email. I am now waiting for a response.
I am doing this in my own time. Please let me know as soon as possible.
Merc.
Comment #22
mercmobily commentedHi,
Drupalina, please also try to do this. Change the beginning three lines into:
if (function_exists('drupal_get_path')){
include_once(drupal_get_path('module', 'drigg') . '/config_forms.inc');
include_once(drupal_get_path('module', 'drigg') . '/helpers.inc');
include_once(drupal_get_path('module', 'drigg') . '/legacy_and_missing.inc');
}
(so, you need to add the "if").
This is a much cleaner solution.
I would appreciate it if you came back, by email or here, since I am basically waiting in idle and need to go to work.
Thanks,
Merc
Comment #23
mercmobily commentedHi,
Sorry I can't wait forever.
I released Drigg 31, which should fix the issue.
dirgg_distr.tgz will also be fixed.
Marking this issue as "fixed". Please reopen it if it's not, giving a LOT of detail. Beware that I've run out of my quota for working on Drigg for the week. So, I will not be as responsive.
Bye,
Merc.
Comment #24
drupalina commentedyep... all sorted in Drigg 31 -- been testing out thoroughly. Fixed.
Comment #25
mercmobily commented