We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Twitter Timeline Error

Development and Programming

theblogstudio's avatar
theblogstudio
90 posts
16 years ago
theblogstudio's avatar theblogstudio

Still no dice…

       
Derek Jones's avatar
Derek Jones
7,561 posts
16 years ago
Derek Jones's avatar Derek Jones

That’s not intended to fix it, that’s intended to add some debugging output. Using just the twitter timeline tag on its own template, with the above code in place, was is output on the page? View HTML source if necessary.

       
theblogstudio's avatar
theblogstudio
90 posts
16 years ago
theblogstudio's avatar theblogstudio

Sorry about that -

No change in the output. I guess I should have mentioned that this was being displayed in the sidebar where the timeline tag is.

Parse error: parse error, unexpected T_ENDIF in /www/pmh####/public_html/system/core/core.functions.php(637) : eval()'d code on line 8
       
Derek Jones's avatar
Derek Jones
7,561 posts
16 years ago
Derek Jones's avatar Derek Jones

Can you pop the twitter tag into a separate template with nothing else on it, please? No PHP in the template (nor parsing even set to on) or other tags, etc., just the basic timeline tag with your necessary parameters.

       
theblogstudio's avatar
theblogstudio
90 posts
16 years ago
theblogstudio's avatar theblogstudio

http://www.goodgrape.com/index.php/twittertest/ Is the location.

Warning:  htmlentities() expects parameter 1 to be string, object given in /www/pmh####/public_html/system/plugins/pi.twitter_timeline.php on line 300


Warning: Invalid argument supplied for foreach() in /www/pmh####/public_html/system/plugins/pi.twitter_timeline.php on line 304

Warning: Invalid argument supplied for foreach() in /www/pmh####/public_html/system/plugins/pi.twitter_timeline.php on line 304
       
Derek Jones's avatar
Derek Jones
7,561 posts
16 years ago
Derek Jones's avatar Derek Jones

Well, that’s good news, I suppose, it’s not a raw string like I suspected. Change that modification to:

echo '<pre>';print_r($xml_obj);echo '</pre>

<p>‘;exit;
</pre>

       
Derek Jones's avatar
Derek Jones
7,561 posts
16 years ago
Derek Jones's avatar Derek Jones

Also, I’ve edited your posts to obfuscate your EngineHosting account number and system folder.

       
theblogstudio's avatar
theblogstudio
90 posts
16 years ago
theblogstudio's avatar theblogstudio

Thanks for catching that 😉

xml_cache Object
(
    [tag] => hash
    [attributes] => 
    [value] => 
    [children] => Array
        (
            [0] => xml_cache Object
                (
                    [tag] => request
                    [attributes] => 
                    [value] => /statuses/user_timeline.xml
                    [children] => 
                )

            [1] => xml_cache Object
                (
                    [tag] => error
                    [attributes] => 
                    [value] => This method requires authentication.
                    [children] => 
                )

        )

)
       
Derek Jones's avatar
Derek Jones
7,561 posts
16 years ago
Derek Jones's avatar Derek Jones

How annoying, it looks like it is yet another variant of the error XML. The error previously would be the first tag, and not the second. But the problem is revealed now, you’re accessing a timeline without authentication, or with incorrect authentication information (provided by your tag parameters).

       
theblogstudio's avatar
theblogstudio
90 posts
16 years ago
theblogstudio's avatar theblogstudio

Hmmmmmmm Looks like the client gave me the incorrect information

       
theblogstudio's avatar
theblogstudio
90 posts
16 years ago
theblogstudio's avatar theblogstudio

With proper login info, i still seem to be getting this:

Parse error: parse error, unexpected T_ENDIF in /www/pmh####/public_html/system/core/core.functions.php(637) : eval()'d code on line 18
       
theblogstudio's avatar
theblogstudio
90 posts
16 years ago
theblogstudio's avatar theblogstudio

Update - turns out it was an error with an if statement.

Thanks so much for your help.

       
Derek Jones's avatar
Derek Jones
7,561 posts
16 years ago
Derek Jones's avatar Derek Jones

Rockin’, no problem.

       
agrublev's avatar
agrublev
15 posts
16 years ago
agrublev's avatar agrublev

I am having the same problem, can you tell us how you got it to work! Thanks

       
heaversm's avatar
heaversm
197 posts
15 years ago
heaversm's avatar heaversm

Same problem here - I stuck the PHP code in and got the same authentication notice, however, I’ve tested the user and password live on twitter and it works fine. Maybe it’s something in my template? This is what I’m using:

{exp:twitter_timeline type="user" user="###" password="###"}
<div class="tweet">
    <div class="date">{created_at format="%m-%d %g:%i"}</div>
    <div class="status">{text}</div>
</div>
{/exp:twitter_timeline}
       
First 2 3 4 5

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.