ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Twitter Timeline Error - Undefined index: media

October 21, 2011 4:33am

Subscribe [4]
  • #1 / Oct 21, 2011 4:33am

    nickhill

    11 posts

    Hi,
    I have recently started getting the below error on my site where displaying a twitter timeline.

    A PHP Error was encountered

    Severity: Notice

    Message: Undefined index: media

    Filename: twitter_timeline/pi.twitter_timeline.php

    Line Number: 149
    A PHP Error was encountered

    Severity: Warning

    Message: Cannot modify header information - headers already sent by (output started at /home/jckmedia/public_html/cmsadmin/codeigniter/system/core/Exceptions.php:170)

    Filename: core/Common.php

    Line Number: 405

    EE v2.1.3 - Build:  20101220
    Twitter Timeline 1.4.3

    It may be related to the fact that the tweet has media attached. The error only seems to display on the site front end when I have a login to the CMS active. If I log out of the CMS, then refresh the front end, the error goes away.
    Anyone else seen this ?

    Thanks for any assiastance.

    My code is below.

    {exp:twitter_timeline screen_name="Jack_Media" limit="1" create_links="user_mentions|hashtags|urls"}
         <div class="tweet">
          <div class="status">{text}</div>
          <div class="date">{status_relative_date} ago</div>
         </div>
        {/exp:twitter_timeline}
  • #2 / Oct 24, 2011 7:34am

    Sue Crocker

    26054 posts

    Hi, nickhill.

    You don’t see the error message as a non-SuperAdmin since PHP errors aren’t shown. I suspect it very well could be an issue with the attached media. Can you post an example tweet link?

  • #3 / Oct 24, 2011 4:36pm

    than

    10 posts

    I’m having the same issue. Here’s the error, which is occurring on a tweet that contains a photo:

    Fatal error: ob_start() [<a href="http://ref.outcontrol">ref.outcontrol</a>]: Cannot use output buffering in output buffering display handlers in /home/user/public_html/system/codeigniter/system/core/Exceptions.php on line 166
  • #4 / Oct 25, 2011 4:09am

    nickhill

    11 posts

    Hi Sue,

    the tweet in question is from here:

    http://twitter.com/#!/Jack_Media

    it is the one from 20th October which has media attached: “Jack Media’s international team pose for a German magazine! “

    Thanks

  • #5 / Oct 25, 2011 1:53pm

    Sue Crocker

    26054 posts

    Thanks, than.

    @all - I’m mentiolning this thread to the dev team, Thanks in advance for your patience.

  • #6 / Oct 26, 2011 4:20pm

    Robin Sowell

    13255 posts

    nickhill?  Can you update to Twitter Timeline 1.4.4?  I won’t swear it will fix it, but the line numbers aren’t matching up to the error message.  If it does through the error with the latest, can you post the error again?  (Line numbers should change.)  Also- I’d clear the cache just to make sure it’s new code.

    Download link.

  • #7 / Oct 28, 2011 4:33pm

    Steve Garcia

    57 posts

    I’m getting the same error while logged in as Super Admin with Twitter Timeline ver 1.4.4 with a feed that does have media (a picture) attached.

    A PHP Error was encountered
    
    Severity: Notice
    
    Message: Undefined index: media
    
    Filename: twitter_timeline/pi.twitter_timeline.php
    
    Line Number: 174

    As it’s only showing while a super admin is logged in and the website is for our firm, it’s more of a nuisance, but could cause problems when being used on a client site.

    Thanks for any help!

  • #8 / Oct 28, 2011 5:10pm

    Robin Sowell

    13255 posts

    Thanks Steve- helped narrow it down.  I’ve entered it as a bug here- the fix is simple so I’ve included that in the bug report.  Have not pushed up a new file because I’d at least like to take a closer look at adding parsing of the media entity rather than just skipping it as unrecognized.  But wanted to include the quick fix now to get rid of those errors, which are annoying even if our viewers aren’t seeing them!

    Let me know if that does the trick for you!

  • #9 / Oct 28, 2011 5:15pm

    Steve Garcia

    57 posts

    That hotfix worked, thanks for the quick response!

  • #10 / Oct 28, 2011 5:24pm

    Robin Sowell

    13255 posts

    😉  The joy of subscriptions!  Glad that worked- and hopefully I can play with the media entity on Monday.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases