• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

MG 1.0 Invalid argument supplied

Dakis

Well-known member
#1
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):

Code:
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: http://www.travelstories.gr/community/gallery/albums/melbourne-by-night.785/

Should I do something about it?
 

Mike

XenForo developer
Staff member
#2
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.