WordPress.org

Ready to get started?Download WordPress

Forums

Display Tweets
[resolved] Plugin Issues (11 posts)

  1. banjohead
    Member
    Posted 1 year ago #

    Hi, I'm wondering if you would be willing to help me troubleshoot the plugin behavior. I configured my twitter API, the various API settings for the plugin and dropped the Twitter widget into a sidebar. No feed displays and the resulting html output breaks the widget area. From looking at the source, there appears to be a missing closing tag in the output, throwing off the remaining html formatting.

    Thanks,

    Dave

    http://wordpress.org/extend/plugins/display-tweets-php/

  2. banjohead
    Member
    Posted 1 year ago #

    I went ahead and checked to make sure the same issue exists if using the php code implementation:

    <?php if ( function_exists( "display_tweets" ) ) { display_tweets(); } ?>

    The same issue occurs. Broken html output and no twitter feed. Thanks in advance, Dave

  3. MatthewRuddy
    Member
    Plugin Author

    Posted 1 year ago #

    Weird, not having the issue here. The widget only adds "<p>" around each tweets, which is closed in the page source. Might have missed something elsewhere. Did you find the missing HTML? I'll do some validation checks myself.

    Tried with any different themes to make sure it isn't theme specific?

  4. banjohead
    Member
    Posted 1 year ago #

    I tested it on the 2012 theme and it works fine. The site I'm having problems with is using a child theme I created on the popular "Responsive" theme. All of the other widgets I install are working fine. I'm not sure what the problem is, but it does appear to be theme related. Any suggestions on how to find the problem within my theme that would cause this?

    I love the time stamp on the tweets, and noticed it has a class on it. That is extremely helpful for styling the tweet output. I really like the way you set it up. I hope to use your plugin more in the future.

    Thanks,

    Dave

  5. MatthewRuddy
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks Dave, plugin is really tailored to developers so it's all nice and simple and easy to manipulate if needed.

    Not sure what could be occurring. Do you get any HTML validation errors when running it through the W3C validator? Could point out some HTML missed tags or issues.

    The theme can append/prepend HTML to the widget title tags, or even add HTML before or after the widget content itself. If a tag hasn't been closed correctly, you'll get issues like this.

  6. banjohead
    Member
    Posted 1 year ago #

    I turned on debugging in the wp-config file and the output at the plugin location was: Fatal error: Cannot redeclare class OAuthException in /wp-content/plugins/display-tweets-php/includes/Twitter/twitteroauth/OAuth.php on line 8.

    I went through and deactivated all of the other social plugins on the site that might be using Oauth and eventually found the conflict was with a plugin called Yelp It, which is used to display Yelp reviews. After disabling it, your plugin was fine. I turned on the other social plugins and everything remained stable. I don't know if there is a way to define the class OAuthException with a different name to avoid the collision, but it seems like that would be the solution for the future.

    Thanks for you help,

    -Dave

  7. MatthewRuddy
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks Dave, I'll definitely add a class_exists check in the next update!

  8. banjohead
    Member
    Posted 1 year ago #

    Cool. I'll look for it. Until then, Yelp can stay turned off. That whole Yelp thing is a little bogus anyway...

  9. MatthewRuddy
    Member
    Plugin Author

    Posted 1 year ago #

    Haha, that's a pity. Let me know if you spot any other bugs! Greatly appreciated.

  10. banjohead
    Member
    Posted 1 year ago #

    You bet. Thanks again.

  11. MatthewRuddy
    Member
    Plugin Author

    Posted 1 year ago #

    Added a class_exists check to v1.0.1, so should all be resolved now :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.