Fatal error: Call to undefined function debug() in D:\localhost\d7\modules\import_html\import_html.module on line 727

This error comes up after downloading and installing the newest version v 1.23 2006/06/29 in Drupal 4.7.2

Changing Line 37 in import_html.module helped:

#require_once "debug.inc";

require_once "debug.inc";

Am I doing the right thing?

Comments

dman’s picture

Status: Active » Reviewed & tested by the community

Yeah, that'll fix that.
debug.inc is a library I'm using in three different contexts right now, and it was getting included too many times (from different places).
'twas a mistake for me to have left it commented in the distro.

Current CVS is a tad volatile - Last known good was July3 (June 30), http://drupal.org/project/cvs/46008
So. ... Oh good, that's the one you're on :)

Currently the re-linking needs a re-look, so the friendly URLS are failing for index pages.

I eventually replaced the include_once with a more clever check.

dman’s picture

if(! function_exists('debug')){
  require_once 'debug.inc';
}
dman’s picture

Status: Reviewed & tested by the community » Closed (fixed)