static.module causes fatal error

silentway - May 19, 2009 - 06:53
Project:Import HTML
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Issue tags:static error debug level
Description

If the included "static" module is present, drupal crashes with the error:

Fatal error: Call to undefined function debug_set_level() in import_html/static/static.module on line 29

temporary workaround, delete the static module:
import_html/static/static.module

#1

silentway - May 19, 2009 - 19:12

An update:

The fatal error only happens if you ENABLE the static module. So... don't!

If by some chance you did enable it (as I did) you may find that you can't get back to drupal's modules page to turn it off. Here's how to go into the database and turn off a module manually:

http://drupal.org/node/157632

If you delete it without disabling it first, the database still lists it as enabled (even though it won't show up in your admin list of modules). Best to turn it off first manually, then delete it, according to this:

http://drupal.org/node/45563

"Do not delete the module from the file-system before disabling... Doing so might leave tables and other objects orphaned, and prevents the module from properly cleaning up after itself."

 
 

Drupal is a registered trademark of Dries Buytaert.