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...

CommentFileSizeAuthor
#16 module_grants_0001.patch826 bytessystray
#11 862216.patch684 bytesjvandooren

Comments

ClearXS’s picture

ticking off module grant => I can remove the story (in this case spam) WITHOUT the above mentioned error.

rdeboer’s picture

Category: bug » support
Status: Active » Closed (fixed)

Ok, closing.
Sounds like your server had no read access (insufficient permissions?) to module_grants.pages.inc... Or the file somehow got deleted?

Mjoellnir’s picture

Version: 6.x-3.5 » 6.x-3.6

Hi,

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.

Mjoellnir’s picture

Status: Closed (fixed) » Needs work

Because 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

beanc’s picture

Priority: Normal » Major

Our 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.

rdeboer’s picture

Sorry 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.

nclavaud’s picture

subscribing

newtoid’s picture

+1 subscribing

dnovotny’s picture

I 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.)

rdeboer’s picture

Status: Needs work » Closed (cannot reproduce)

I believe this is fixed in 6.x-3.6

jvandooren’s picture

Version: 6.x-3.6 » 6.x-3.7
Status: Closed (cannot reproduce) » Needs review
StatusFileSize
new684 bytes

This is still an issue in 3.7.

I attached a patch to fix this...

rdeboer’s picture

Thanks so much Ozmodiar!
Rik I

rdeboer’s picture

Patch checked into Git branch 6.x-3.x.
Will be available in next development snapshots, i.e. 27-Jan-2012 and later.

rdeboer’s picture

Assigned: Unassigned » rdeboer
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

systray’s picture

Version: 6.x-3.7 » 6.x-3.8
Status: Closed (fixed) » Needs review
StatusFileSize
new826 bytes

3.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.

rdeboer’s picture

Thank you systray -- well-spotted!
Hope to find time to check in you patch soon.
Rik

rdeboer’s picture

Status: Needs review » Fixed

Patch applied with attribution to 6.x-3.x branch. Thanks systray/Evgeniy !
Rik

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.