Fatal error: require_once() [function.require]: Failed opening required 'modules/node/module_grants.pages.inc' (include_path='.:/usr/lib64/php:/usr/lib/php') in .../includes/menu.inc on line 346
array(4) { ["type"]=> int(64) ["message"]=> string(175) "require_once() [function.require]: Failed opening required 'modules/node/module_grants.pages.inc' (include_path='.:/usr/lib64/php:/usr/lib/php')" ["file"]=> string(51) ".../public_html/mi-cr/includes/menu.inc" ["line"]=> int(346) }I see there is a new version 3.6, so will try that in a moment and report back...
| Comment | File | Size | Author |
|---|---|---|---|
| #16 | module_grants_0001.patch | 826 bytes | systray |
| #11 | 862216.patch | 684 bytes | jvandooren |
Comments
Comment #1
ClearXS commentedticking off module grant => I can remove the story (in this case spam) WITHOUT the above mentioned error.
Comment #2
rdeboerOk, closing.
Sounds like your server had no read access (insufficient permissions?) to module_grants.pages.inc... Or the file somehow got deleted?
Comment #3
Mjoellnir commentedHi,
I just stumbled across the same error while attempting to delete a forum-post:
PHP Fatal error: require_once(): Failed opening required 'modules/nod
e/module_grants.pages.inc' (include_path='.:/usr/pkg/share/php:/usr/pkg/share/php-jpgraph:/usr/pkg/share/drupal:/usr/pkg/lib/php') in /usr/pkg/share/drupal/includes/menu.inc on line 346
I am using this version: module_grants-6.x-3.6.tar.gz
Please take a look at the path in the error-message: it's pointing into the drupal-core itself, into drupal's own node-module, where there cannot be a module_grants.pages.inc file.
A dirty workaround for me atm was to copy / link the file into modules/node - but for obvious reasons that's no solution.
Comment #4
Mjoellnir commentedBecause of my previous comment, in which I forgot to switch the status to "needs work", I do switch the state now.
Please take a look at the problem, thank you very much.
- Mjoellnir
Comment #5
beanc commentedOur users are unable to delete nodes and we get the same error message. Since we are using Revisioning with workflows, we are dependent on Module Grants, so turning it off is not an option for normal use just to delete an unwanted page or other node.
Comment #6
rdeboerSorry to read this beanc.
As a workaround I would follow the suggestion from Mjoellnir, that is to copy the module_grants.pages.inc file from the sites/all/modules/module_grants directory to the modules/node directory.
That should get you across the hump for now.
Comment #7
nclavaud commentedsubscribing
Comment #8
newtoid+1 subscribing
Comment #9
dnovotny commentedI merely created a symlink to the appropriate file, which works, but, I don't know what will happen when the core gets updated, I would assume it would be removed. (I use drush for my updates.)
Comment #10
rdeboerI believe this is fixed in 6.x-3.6
Comment #11
jvandooren commentedThis is still an issue in 3.7.
I attached a patch to fix this...
Comment #12
rdeboerThanks so much Ozmodiar!
Rik I
Comment #13
rdeboerPatch checked into Git branch 6.x-3.x.
Will be available in next development snapshots, i.e. 27-Jan-2012 and later.
Comment #14
rdeboerComment #16
systray commented3.8 still produce this bug for me.
First of all i see that you use 'file_path' key in your patch. But according to http://api.drupal.org/api/drupal/developer%21hooks%21core.php/function/h... it should be 'file path' (with space, not underline).
Also i suggest to define that filepath instead of removing it.
I propose this patch for fix.
Comment #17
rdeboerThank you systray -- well-spotted!
Hope to find time to check in you patch soon.
Rik
Comment #18
rdeboerPatch applied with attribution to 6.x-3.x branch. Thanks systray/Evgeniy !
Rik