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

Fixed Template Errors: news_feed_item_post_insert

Discussion in 'Resolved Bug Reports' started by soloarquitectura, Dec 12, 2010.

  1. soloarquitectura

    soloarquitectura Active Member

    (debug = true)

    Your News Feed (/index.php?account/news-feed):

    Template Errors: news_feed_item_post_insert
    Code:
    Invalid argument supplied for foreach() in (...)library/XenForo/Template/Abstract.php(243) : eval()'d code, line 50:
    49: ';
    50: foreach ($content['attachments'] AS $attachment)
    51: {
    
     
  2. Allan

    Allan Well-Known Member

    Confirmed: ../forum/account/news-feed

    Code:
    Template Errors: news_feed_item_post_insert
    Invalid argument supplied for foreach() in /home/xxxxxxxxxxxxx/public_html/forum/library/XenForo/Template/Abstract.php(243) : eval()'d code, line 50:
    49:     ';
    50: foreach ($content['attachments'] AS $attachment)
    51: {
     
  3. Mike

    Mike XenForo Developer Staff Member

    Likely applies to other news_feed_item_post_* templates (and other places where they're used, like the like list).
     
  4. Allan

    Allan Well-Known Member

    I'm sorry but i not understand.
     
  5. Vincent

    Vincent Well-Known Member

    He's saying that the error might be created in a news_feed_item_post_* template (or/and other places where they're used, like the like list)
     
  6. soloarquitectura

    soloarquitectura Active Member

    I've only found it in account/news-feed
     
  7. Mike

    Mike XenForo Developer Staff Member

    Fixed now - I think this might've been caused by the cache for that page. I've adjusted the template handle that case.
     
    soloarquitectura likes this.

Share This Page