I tested Module Grants with Workflow and Domain Access. Once Module Grants is activated this message shows in every node to anonymous users:

warning: Illegal offset type in isset or empty in /home/example/public_html/example/modules/node/node.module on line 1407.

I tried the node.module patch suggested on the documentation page, and the message keeps showing.

Comments

RdeBoer’s picture

Hi Encarte,
Can you please help me narrow this down?
If you disable (not necessary to uninstall) Domain Access does the error still occur?
If you then also disable Workflow, does the erro still occur?
What version of core? 6.22?
So this only happens for anonymous users?
Cheers,
Rik

Encarte’s picture

Hello Rik, thank you for your reply.

1) If Domain Access is disabled, the error persists.

2) Same thing even if Domain Access and Workflow are disabled (cleared cache and rebuilt permissions afterwords and still the same).

3) Yes, Drupal 6.22 (and Workflow last dev from 2011-Feb-25 and Domain Access 6.x-2.13).

4) Actually, seems to be happening with all users that don't have the administer nodes permission.

The error warnings only disappear after Module Grants is disabled.

I hope this helps.

RdeBoer’s picture

So, when you go to the Module Grants config page while Workflow and Domain Access are disabled, does it say there are NO content access modules in play?
Also, I'm assuming PHP 5.3.* ?
Finally, apart from the notice, does the system appear to behave ok?

Encarte’s picture

Yes, after re-enabling Module Grants, it says «The following content access modules are currently enabled: none.» and the errors are still there.

No, it's a server with PHP 5.2.17.

Apart from the notice everything seemed to be fine. The nodes were getting visible or 403 like expected and even Workflow Fields module was working fine. This module really came a long way in solving the Drupal node access mess. I can't remember anything else where Drupal fails so dramatically. Even the tokens mess (although with more crowded and noisy issues) works better.

I got Devel on this site too, so if you think it's useful I can get some node access data.

RdeBoer’s picture

Assigned: Unassigned » RdeBoer

Thanks for the positive feedback!

I'm keen to sort this out, but right now I don't have a clue. I've just never seen this error before, certainly not with Module Grants by itself (by that I mean without any other modules that affect content access). And it has over 5,000 installs....

Hmmm.... let me think about this....
Will get back to you.

Encarte’s picture

Status: Active » Fixed

After some debugging I've came to the conclusion that there was an incompatibility with Diff 6.x-2.1. Upgrading to Diff 2.3 solved the issue. Who would tell...

And, since the tests were done, here is a list of modules compatible with Module Grants:

-Advanced help 6.x-1.2
-Automated Logout 6.x-2.4
-BUEditor 6.x-2.5
-Calendar 6.x-2.x-dev (2010-Apr-01)
-CAPTCHA 6.x-2.4
-Chaos tool suite (ctools) 6.x-1.8
-Conditional Fields 6.x-2.0
-Content Profile 6.x-1.0
-Date 6.x-2.4
-Diff 6.x-2.3
-Email Field 6.x-1.2
-Facebook social plugins integration 6.x-1.0-beta5
-Feeds 6.x-1.0-beta10
-Feeds XPath Parser 6.x-1.11
-FileField 6.x-3.9
-Filter permissions 6.x-1.1
-Fivestar 6.x-1.19
-Frequently Asked Questions 6.x-1.11
-getID3() 6.x-1.3
-Global Redirect 6.x-1.2
-Google Analytics 6.x-3.x-dev (2011-Jun-15)
-Google chart API 6.x-1.2
-Image Assist 6.x-3.x-dev (2010-Apr-08)
-Job Scheduler 6.x-1.0-beta3
-jQuery UI 6.x-1.3
-Links Package 6.x-1.2
-Masquerade 6.x-1.5
-Messaging 6.x-2.3
-Mime Mail 6.x-1.0-beta2
-Node Convert 6.x-1.7
-Node import 6.x-1.1
-Notifications 6.x-2.3
-Panels 6.x-3.9
-Path redirect 6.x-1.0-rc2
-Pathauto 6.x-1.5
-Re: Comment subjects 6.x-1.5
-Rules 6.x-1.4
-Scheduler 6.x-1.7
-Service links 6.x-2.0
-Skinr 6.x-1.6
-Texy! 6.x-1.0-beta1
-Token 6.x-1.16
-Unique field 6.x-1.4
-Views 6.x-2.x-dev (2011-Sep-01)
-Views Bonus Pack 6.x-1.x-dev (2009-May-13)
-Views Bulk Operations (VBO) 6.x-1.12
-Voting API 6.x-2.3
-Workflow 6.x-1.x-dev (2011-Feb-25)
-Workflow Fields 6.x-1.x-dev (2011-Feb-25)

Module Grants is definitely a Go.

RdeBoer’s picture

Great job Encarte for solving this one yourself!
Thanks so much for the time you've spent and the confidence you have in Module Grants.
And of course the list of confirmed modules that are compatible -- very useful to all of us!

Everyone... follow Encarte's advice: if you use Diff, upgrade to 6.x-2.3 !

One more thing.... I noticed in your list in #6 that you use the Workflow module. May I suggest giving Workflow Extensions" a try? It has a few user experience improvements (single-action butons, dashboard) that I think your users will like.

Thanks again,
Rik

Encarte’s picture

Thank you Rik, I'll probably get to Workflow Extensions soon.

Status: Fixed » Closed (fixed)

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