Posted by webel on December 29, 2008 at 12:34am
| 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
Try http://code.google.com/p/mmr-drupal-modules/downloads/list or http://code.google.com/p/mmr-drupal-modules an go to downloads tab.
Don't forget to clear cache.
#4
Or apply this patch
#5
Seems to have worked, thanks for fix, and Happy New Year in 2009 !
#6