I get this error when I use IE destroyer and browse my test site using IE.

Fatal error: Call to undefined function drupal_get_path() in C:\Program Files\xampp\htdocs\mysite\modules\iedestroyer\iedestroyer.module on line 38

I inserted the page.tpl.php already but it still remains the same problem. tnx for the help.

Comments

deekayen’s picture

Category: bug » support
Dash’s picture

I'm also getting this problem, it's possible this thread might help?

http://drupal.org/node/54609

computercornerplus’s picture

Fix anybody?

Giuly’s picture

Add this to iedestroyer.module somewhere at beginning:

require_once("includes/common.inc");

sameersegal’s picture

even after putting the require once statement i get this:

Fatal error: Call to undefined function file_scan_directory() in /home/nitkieee/public_html/site/modules/system.module on line 712

sameersegal’s picture

Priority: Normal » Critical

Adding to what i have written earlier (in the previous post)...

On some computers it seems to work, on some it gives the above error in both firefox and ie.

I am escalating this issue as it is useless for me otherwise!

Thanks
Sameer

alliax’s picture

I got it too, it seems to be only on some occasions, I have normal cache enabled and it was doing it sometimes only. I've found an issue here: http://drupal.org/node/119009 and one of the suggested solutions seem to work for me...
I use drupal 5.x

Add this to your .module file somewhere at the beginning, I've put it at line 31 in function iedestroyer_init() and it now works

I put this in comments:
function iedestroyer_init() {
  // common.inc doesn't load till a full bootstrap, whereas init is before that
  //require_once 'includes/common.inc';
  // If cache is enabled we need to load the path system
  if (variable_get('cache', CACHE_DISABLED) != CACHE_DISABLED) {
    drupal_bootstrap(DRUPAL_BOOTSTRAP_PATH);
  }
alliax’s picture

Initially it seemed to do the trick, but ultimately I lost 9hours worth of monetized traffic because of the same error which didn't happen and so I went to sleep... so I gave up totally on this module and installed a very simple script just after my body tag, no need for anything else check it out:

<!--[if IE]>
<div style="background-color:#FFFFCC; border-bottom: 1px solid #FC0; margin: 0 0 5px 0; padding: 4px 0; font-size: 14px;">
<center><img src="http://www.yoursite.com/images/a-small-firefox-logo.gif" alt="Firefox" style="vertical-align: text-bottom;" />
Surf the web faster and securely... FREE DOWNLOAD... [your referal code here, a text link]</center></div>
<![endif]-->
xano’s picture

Status: Active » Closed (won't fix)

As Drupal 4 is no longer supported by the Drupal maintainers themselves I have decided to Drop 4.x support for this module as well. The 6.x and probably the 5.x versions will be looked at and supported in the near future.