Download & Extend

"warning: array_fill() [function.array-fill]: Number of elements must be positive in .. database.inc on line 241"

Project:Book made simple
Version:6.x-1.2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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.

Comments

#1

Corrected.

Can you get the last release from http://mmr-drupal-modules.googlecode.com/files/BookMadeSimple_6.x_1.4.zip ?

#2

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.

#3

#4

Status:active» patch (to be ported)

Or apply this patch

AttachmentSize
patch.txt 1.19 KB

#5

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

#6

Status:patch (to be ported)» closed (fixed)