1. 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

Discussion in 'Media Gallery Support' started by Dakis, Aug 8, 2015.

  1. Dakis

    Dakis 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):

    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?
     
  2. Mike

    Mike 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.
     
    Dakis likes this.

Share This Page