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

drupalina’s picture

... 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).

drupalina’s picture

Title: the strangest bug » Drigg 26 clashes with Normal Caching mode
Category: support » bug
Priority: Normal » Critical

UPDATE: 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

mercmobily’s picture

Hi,

Please QUICKLY try the latest version of Drigg, 1.29. This SHOULD solve the problem. Please let me know.

Merc.

mercmobily’s picture

Hi,
Please try version 1.30 -- and do it as soon as possible.

Bye,

Merc.

korzh’s picture

Tony, 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

mercmobily’s picture

Hi,

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,

drupalina’s picture

I'll upgrade right now (from 26 to 30) and will report as soon as I do ... hopefully in few minutes.

drupalina’s picture

Hi,
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)

drupalina’s picture

If it's of any help... if I recall correctly, the previous version of drigg (version 24) did not have this problem.

mercmobily’s picture

Hi,

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.

mercmobily’s picture

Hi,

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.

drupalina’s picture

hi,
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

mercmobily’s picture

Hi,

Run the follwing queries:

delete from cache_page;
delete from cache;

Bye,

Merc.

drupalina’s picture

Hi,
where do I run those queries? my host doesn't allow me Shell access.

Is there anything that I can do through phpMyAdmin ???

drupalina’s picture

I 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????

drupalina’s picture

Ok, 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...

mercmobily’s picture

Hi,

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.

mercmobily’s picture

Hi,

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.

drupalina’s picture

yes, I'm using drigg 30 and the error is still the same.

I will send you an e-mail right now.

mercmobily’s picture

Hi,

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.

mercmobily’s picture

Hi.

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.

mercmobily’s picture

Hi,

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

mercmobily’s picture

Status: Active » Fixed

Hi,

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.

drupalina’s picture

yep... all sorted in Drigg 31 -- been testing out thoroughly. Fixed.

mercmobily’s picture

Status: Fixed » Closed (fixed)