WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: WPtouch iPhone Theme] Conflict with WordTwit? (8 posts)

  1. David Sharpe
    Member
    Posted 4 years ago #

    Using WPtouch 1.9.5 and WordTwit 2.2.4. When I select the Twitter link there is an error message that appear under my avatar and Twitter link:

    Warning: Invalid argument supplied for foreach() in /home/.freakmeister/me/portfolio.davesharpe.com/wp-content/plugins/wptouch/themes/default/header.php on line 169

    This appears on every installation I've set up using both plugins. Not a big deal since it's barely visible.

    By the way, thanks for both of these great plugins.

    David

    http://wordpress.org/extend/plugins/wptouch/

  2. David Sharpe
    Member
    Posted 4 years ago #

    Error is till present in the latest updates to both plugins, WPtouch 1.9.7.6 and WordTwit 2.2.6. The only change is that the error is now on line 173, <?php foreach( $tweets as $tweet ) { ?>

    Anyway to fix this? Configuration error on my part?

    Thanks,

    David

  3. onuitstaanbaar
    Member
    Posted 4 years ago #

    Same problem here... Also both plugins updated to latest version...

  4. RockCityGhost
    Member
    Posted 4 years ago #

    I have the same problem as well. Also, if you google "twitter.php on line 4" you can find 8 pages of people with the same problem.

    I am running php on IIS 7, anyone on Apache having this problem?

  5. RockCityGhost
    Member
    Posted 4 years ago #

    Got it.

    Remove the first line of twitter.php in wordtwit/html/

    The line is "<?php global $tweets; ?>"

    I am NOT a php coder, BUT it seems like this line clears out the array of tweets created earlier.

  6. alleyjack
    Member
    Posted 3 years ago #

    Removing the global variable didn't fix it for me; just changed the line that the error was being thrown on.

    Other people are having the same problem here, with the error persisting even when the widget is removed.

    The error has already occurred and disappeared on its own with another blog I've been working on. Still no sign of what's causing it (or fixing it).

  7. alleyjack
    Member
    Posted 3 years ago #

    (Should probably clarify that I'm not using WPTouch, only WordTwit.)

    A quick look into the Twitter accounts of the blogs affected has revealed that the error likely occurred immediately after a tweet starting with "@", in both instances.

  8. alleyjack
    Member
    Posted 3 years ago #

    Error gone. In both cases, it disappeared exactly two "normal" tweets after the one starting with the @.

Topic Closed

This topic has been closed to new replies.

About this Topic