upgrading from 6.x-2.11 to 6.x-2.12 I got following error

Fatal error: require_once() [function.require]: Failed opening required 'sites/all/modules/webfm/webfm.admin.inc' (include_path='.:') in /includes/menu.inc on line 346

Comments

cgmonroe’s picture

Haven't tried this brand new version yet... but here's some quick thoughts:

Is the webfm.admin.inc file at the location specified (relative to your drupal root) ? I know it's in the 2.12 release tar.gz because I just DL-ed and checked.

If it's there, does it have the correct file permissions set? E.g. readable by the id your web server is running under?

Anonymous’s picture

the file "webfm.admin.inc is" is located in /modules/webfm/webfm.admin.inc and has 644 permission

nhck’s picture

Category: bug » support

Thank you for reporting this :-)

However I cannot confirm this bug.

Could you provide us with the path you are trying to access? Maybe you can check if it owned by the correct user, e.g. compare the owners of the webfm.admin.inc file with those of a module that is working correctly. Also you should try to reupload webfm.admin.inc - maybe it got broken during the process?

For now I am setting this to a support request, if thats okay with you?

Thank you again.

Anonymous’s picture

the problem appears when the WEBFM folder is in /modules/webfm
and disappears when the WEBFM folder is in /sites/all/modules/webfm

nhck’s picture

Title: require_once() [function.require]: Failed opening required sites/all/modules/webfm/webfm.admin.inc » Required webfm.admin.inc not found

From your error message: require_once() [function.require]: Failed opening required sites/all/modules/webfm/webfm.admin.inc I take it that your module was first installed in sites/all/modules/webfm/ but with the upgrade moved to modules/webfm ? Have you run http://yoursite.com/update.php and emptied your cache? In my opinion this is more a problem with drupal thinking that the file is still at sites/all/modules/webfm/webfm.admin.inc.

If this is correct - could you confirm this or try to recreate this effect? If it happens again could you try to fix it by flushing your cache. You can do this from your admin/performance menu.

Thank you very much for helping out :-)

Anonymous’s picture

Status: Active » Closed (fixed)

you're right. I haven't cleared the cache, I've just run update.php. Sorry for this newbie mistake. Everything works now.