When viewing any node NOT authored by 'admin' as 'admin' (only) I get the following ERROR message:

    * warning: array_fill() [function.array-fill]: Number of elements must be positive in 
... /drupal/includes/database.inc on line 241.
    * warning: implode() [function.implode]: Invalid arguments passed in /Library/WebServer/Documents/drupal/includes/database.inc on line 241.
    * warning: array_keys() [function.array-keys]: The first argument should be an array in 
.../drupal/modules/user/user.module on line 500.
    * user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 query: SELECT p.perm FROM role r INNER JOIN permission p ON p.rid = r.rid WHERE r.rid IN () in .../drupal/modules/user/user.module on line 500.

Strangely, it does not seem to happen the other way around as an authenticated user when viewing a node created by 'admin'.
(And I checked the logs also.)

Also, it does not happen on views or other dynamic pages, only on content nodes,
presumably on those where the extra [add child] pulldown menu is generated.

It is definitely provoked by BookMadeSimple, I've experimented with enabling/disabling the module to isolate it as the cause.

I really like this module (and thanks for the work on it) and I hope you can investigate the problem.

CommentFileSizeAuthor
#4 patch.txt1.19 KBMarcElbichon

Comments

MarcElbichon’s picture

webel’s picture

Hi,

> http://mmr-drupal-modules.googlecode.com/files/BookMadeSimple_6.x_1.4.zip

Thanks for your attention to this. However the above link does not seem to exist (or I can't access), I get a blank page.

MarcElbichon’s picture

MarcElbichon’s picture

Status: Active » Patch (to be ported)
StatusFileSize
new1.19 KB

Or apply this patch

webel’s picture

Seems to have worked, thanks for fix, and Happy New Year in 2009 !

MarcElbichon’s picture

Status: Patch (to be ported) » Closed (fixed)
scottrigby’s picture

Project: Book made simple (Obsolete) » Book made simple
Version: 6.x-1.2 » 6.x-3.4

Moving all issues to the new project.