Array must contain atleast one element (line 401)
marc.bau - September 1, 2006 - 22:17
| Project: | Panels |
| Version: | 5.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
1. i have removed the right side column of a two column panel.
2. added content to the panel with one node listed under "Enter the title or NID of a post"
3. pressed save
4. got the error: warning: max() [function.max]: Array must contain atleast one element in c:\Inetpub\wwwroot\drupal\modules\panels\panels.module on line 401.

#1
3. correction - i pressed the "add post" button.
#2
this is always reproduceable if you delete the node (if only one exist) from one column and re-add content to this column...
#3
submit #2 is correct. I had the same issue but with the top panel area. I inserted the incorrect content in the top and saved the page. When I viewed the page i realized the mistake. Edited the panel, "Oops-ed" the top content, added the correct content and "WHAM!", the error.
#4
Will somebody please get into this.
It is a very strange bug what comes up when I change my panel content.
Please help!
And by the way a very good yearending to everyone!
May drupal continu at this speed in 2007!!
greetings,
Martijn
#5
We'll, I DEFINETLY would not go there.
This bug is not intrusive, just a warning. The panel still works.
#6
I agree, sorry for my first lines :)
The panels works fine, you only get a warning.
greetings,
Martijn
#7
@Martijn: this is a bug and it should be fixed, nevertheless there is a workaround. Do not switch the case to fixed until the bug is really fixed, please. Thank you.
#8
This actually screws with my panels and is not just a warning on PHP 5.2.1.
The patch fixes the problem by making sure the $order is not empty as well.
#9
Thanks for the patch!
#10