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
Comment #1
montesq commentedI 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?
Comment #2
bazzly commentedYes 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.
Comment #3
montesq commentedSteps 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...
Comment #4
David4514 commentedI 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.
Comment #5
bfroehle commentedI applied #1049462: Usage of deprecated $form_state['clicked_button'] causes bugs during AJAX submissions by non-buttons and the error went away. Marking this issue as a duplicate.
Comment #6
didistar commentedLife saver! This worked for me. I also had issues with creating a new book. Thanks.