All I did was move some documents under a new document and now I get this error:
Array must contain atleast one element
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: max() [function.max]: Array must contain atleast one element
Error type/ Nr.: Warning - 2
File: /home/afewtips/public_html/manager/includes/document.parser.class.inc.php(769) : eval()’d code
Line: 48
The new document is the third level.
I searched and didn’t see anyone else post this error.
Thanks for any help.
Turns out it’s the TagCloud snippet.
[[tagcloud?parent=`56`&min=`5`&landing=`8`]]
I don’t know why the error happened, but since it’s not ready for prime time, I’ll do without.
Hope this helps someone else in the future.
Thanks
I have exactly eh same problem, i did have tvtagcloud installed but disabled it. I was playing with fURLS - turned them on and off and modified the htaccess files to suit, now I cant get the site reloaded without this error message.
Odd.
Error:
Error: max() [function.max]: Array must contain atleast one element
Error type/ Nr.: Warning - 2
File: /home/linweb01/j/domainnamegoeshere.co.uk/user/htdocs/manager/includes/document.parser.class.inc.php(770) : eval()’d code
Line: 40
Ok, it wasnt anything to do with fURLS. I commented out a snippet (tagcloud) in one of my HTML templates, and that caused the document parse error. Putting the snippet call back in without comments or completely removing them brings it back to life. - Seems that part of the snippet was still being executed even thought its marked out?
EDIT: scrub that. Commenting out the snippet still means the snippet gets executed. However, the bug seems to lie with re-sorting the document tree / move things around - ifthe page IDs are not correct in the snippet call, obviously the snippet will break.