Tagged: ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #19391

    It’s appear the Twitter Widget has stopped working for the site.

    All that appears is No public Tweets found

    http://www.bestgroupaust.com/

    This is the line that seems to be causing the problem. Line 188 – class-framework-widgets.php

    $xml = simplexml_load_string($response['body']);
    //follower: (int) $xml->status->user->followers_count

    And the error I get when it’s not commented out is;

    Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 908: parser error : xmlParseCharRef: invalid xmlChar value 3 in C:inetpubvhostsbestgroupaust.comhttpdocswp-contentthemesangularframeworkphpclass-framework-widgets.php on line 188

    Can someone please advise

    #103530

    Fixed it… Just made the following change

    $response = wp_remote_get( 'http://api.twitter.com/1/statuses/user_timeline.xml?screen_name='.$username );
    //$response = wp_remote_get( 'http://api.twitter.com/1/statuses/user_timeline.xml?include_rts=true&screen_name='.$username );
    if (!is_wp_error($response))
    {
    $xml = simplexml_load_string($response['body']);
    //follower: (int) $xml->status->user->followers_count

    #103531

    Hi johnkappa,

    Glad that you fixed it and thanks for sharing the solution. :)

    Cheers,

    Ismael

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Twitter Widget appears broken’ is closed to new replies.