I have the forum and book module enabled configured so a forum post can be added to a book. When I select a book to post it to I get
Warning: end() expects parameter 1 to be array, null given in file_managed_file_validate() (line 536 of /var/www/drupal/modules/file/file.module).

Comments

montesq’s picture

I can't reproduce.
Can you give more details to reproduce? I guess your book page must have a file field? isn't it?
Is it a fresh install or a update from 6.x?

bazzly’s picture

Yes it was a fresh install, and Yes it has a file field and an images field. Actually both the forum and book have those fields.
I'm not at the machine, but will be in a few days. I will see if I can get you more info.

montesq’s picture

Version: 7.0 » 7.x-dev
Component: forum.module » file.module

Steps to reproduce:
- active book & forum modules
- add a file field on the forum content type
- create a new content "forum"
- in the vertical tabs, select "book outline" and in the book drop down list set "" and you get the error...

David4514’s picture

I have the exact same problem created the same way (for books).

[A more complete message]

end() expects parameter 1 to be array, null given in file_managed_file_validate() (line 536 of /var/www/gah/web/modules/file/file.module)

The message appears whenever I set or change the book to which this node is attached. After saving, all seems ok.

bfroehle’s picture

Status: Active » Closed (duplicate)
didistar’s picture

Life saver! This worked for me. I also had issues with creating a new book. Thanks.