After upgrading one of my sites to the latest release for D5, users who are not logged in get this white screen error:
Fatal error: Call to undefined function drupal_get_path() in /home/..../drupal5/modules/adsense/contrib/adsense_click/adsense_click.module on line 15
If I remove the module the error goes away and it appears that adverts function as intended. The rest of the site is functioning normally so far as I can tell. Any ideas on where the problem is?

Comments

jcnventura’s picture

I guess that Drupal's drupal_get_path isn't yet active at that point..

What is truly strange is that all the D5 adsense sub-modules do the same call at that point, and they don't show that problem.

d.sibaud’s picture

same issue

d.sibaud’s picture

disabling the page cache settings (were set on "normal"), there's no more WSOD with drupal_get_path error, strange!! Is it a caching problem?

jcnventura’s picture

Status: Active » Fixed

I've just committed a fix to CVS. You can test the new dev version in a couple of hours..

João

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

himagarwal’s picture

Can someone please direct me where is the fix?