MG 1.0 Invalid argument supplied


Well-known member
When I enable debug mode, I'm getting an error in my album view and photo view pages (the page still displays, the error shows on top):

Template Errors: xengallery_album_view
Invalid argument supplied for foreach() in /home/travelst/public_html/community/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 2529:
2528:                     ';
2529: foreach ($chapters AS $key => $chapter)
2530: {

Example link:

Should I do something about it?


XenForo developer
Staff member
I don't see a $chapters variable used anywhere by default. So this is likely down to a template modification or an add-on. Test this on a default style and if it still happens, you'll want to start disabling add-ons until it goes away. You should then contact the author of the add-on triggering the problem.