• Resolved JPSKILLZ

    (@jpskillz)


    Plugin was working great yesterday, but then my client called and told me that it was showing a Error. Here’s the Error message:
    Fatal error: Cannot unset string offsets in D:\Hosting\11636073\html\wp-content\plugins\kebo-twitter-feed\inc\get_tweets.php on line 68 Not sure how to fix? Help please, site is launching today!

    https://www.ads-software.com/plugins/kebo-twitter-feed/

Viewing 15 replies - 1 through 15 (of 34 total)
  • Plugin Author Peter Booker

    (@peterbooker)

    Hi JPSKILLZ,

    I see which part of the code is causing a problem. I just need to confirm why a problem is being caused. I will implement a fix and push an update out shortly.

    Thread Starter JPSKILLZ

    (@jpskillz)

    OK Great! Please let me know once you do?

    Plugin Author Peter Booker

    (@peterbooker)

    I have just pushed out version 0.5.6!

    This should remove the potential for the plugin causing a fatal error. It was calling ‘unset($tweets[‘expiry’]);’, when the contents of $tweets was a string. I have made sure it only calls unset when $tweets[‘expiry’] exists.

    However, it does not explain why the contents of the variable ($tweets) was not as expected. If you notice anything else odd/wrong with the behavior of the plugin I would appreciate any feedback/information you can supply.

    Thread Starter JPSKILLZ

    (@jpskillz)

    Okay. It is now telling me this:
    Fatal error: Cannot unset string offsets in D:\Hosting\11636073\html\wp-content\plugins\kebo-twitter-feed\inc\get_tweets.php on line 70

    Plugin Author Peter Booker

    (@peterbooker)

    Okay,

    I am going to remove the unset code in the next update to avoid the fatal error. I will post back once it is live.

    Thread Starter JPSKILLZ

    (@jpskillz)

    Okay. Let me know please?

    Plugin Author Peter Booker

    (@peterbooker)

    The next update is live. This should solve that particular error, but it may show us more problems. Let me know how it goes.

    Plugin Author Peter Booker

    (@peterbooker)

    Any luck?

    Thread Starter JPSKILLZ

    (@jpskillz)

    Oh sorry man! Working on some other edits, one sec…

    Thread Starter JPSKILLZ

    (@jpskillz)

    Okay! We’re making progress. It says “Sorry, No Tweets were found.”

    Plugin Author Peter Booker

    (@peterbooker)

    No problem at all.

    Okay, this would suggest there is a problem fetching the Tweet data. Which is strange for this to happen after it has been working.

    If you go to the plugin options page is anything listed in the error log at the bottom?

    If there is nothing in the error log, would you be able to let me know the screen_name of the account?

    Also, if you don’t mind a bit of dirty troubleshooting, would you be able to run the following code somewhere (any template file) and send the output to [email protected]?

    <?php
    $tweets = kebo_twitter_get_tweets();
    print_r($tweets);
    ?>

    This will let me see what is currently being stored/returned by the plugin.

    Thread Starter JPSKILLZ

    (@jpskillz)

    It’s not showing any error messages. The screen name is @MiCorazonCanta. Not sure where to run the code? Do you mean in the CSS Editor?

    Plugin Author Peter Booker

    (@peterbooker)

    Don’t worry about the code, it’s dangerous playing with PHP if you aren’t comfortable with it. That’s no problem.

    Okay, so no error’s is a good sign. It catches WP errors making the request and Twitter API errors.

    I will watch the console for a little while and make sure that requests are going through for that account name. Ill post back again soon with what I find.

    Is this on a production server, or running in a local development environment at the moment?

    Thread Starter JPSKILLZ

    (@jpskillz)

    Production Server

    Plugin Author Peter Booker

    (@peterbooker)

    I haven’t seen any requests yet, if it is not already, would you be able to set it to refresh every 1 minute in the options page, and then occasionally refresh the site so it is making calls please?

Viewing 15 replies - 1 through 15 (of 34 total)
  • The topic ‘PHP Error’ is closed to new replies.