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.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | panels_1.patch | 960 bytes | RobRoy |
Comments
Comment #1
marc.bau3. correction - i pressed the "add post" button.
Comment #2
marc.bauthis is always reproduceable if you delete the node (if only one exist) from one column and re-add content to this column...
Comment #3
t4him commentedsubmit #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.
Comment #4
summit commentedWill 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
Comment #5
t4him commentedWe'll, I DEFINETLY would not go there.
This bug is not intrusive, just a warning. The panel still works.
Comment #6
summit commentedI agree, sorry for my first lines :)
The panels works fine, you only get a warning.
greetings,
Martijn
Comment #7
hass commented@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.
Comment #8
RobRoy commentedThis 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.
Comment #9
merlinofchaos commentedThanks for the patch!
Comment #10
(not verified) commented