Title: PHP Error
Last modified: August 21, 2016

---

# PHP Error

 *  Resolved [JPSKILLZ](https://wordpress.org/support/users/jpskillz/)
 * (@jpskillz)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/php-error-50/)
 * 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!
 * [http://wordpress.org/plugins/kebo-twitter-feed/](http://wordpress.org/plugins/kebo-twitter-feed/)

Viewing 15 replies - 1 through 15 (of 34 total)

1 [2](https://wordpress.org/support/topic/php-error-50/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/php-error-50/page/3/?output_format=md) [→](https://wordpress.org/support/topic/php-error-50/page/2/?output_format=md)

 *  Plugin Author [Peter Booker](https://wordpress.org/support/users/peterbooker/)
 * (@peterbooker)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/php-error-50/#post-4054144)
 * 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](https://wordpress.org/support/users/jpskillz/)
 * (@jpskillz)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/php-error-50/#post-4054148)
 * OK Great! Please let me know once you do?
 *  Plugin Author [Peter Booker](https://wordpress.org/support/users/peterbooker/)
 * (@peterbooker)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/php-error-50/#post-4054151)
 * 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](https://wordpress.org/support/users/jpskillz/)
 * (@jpskillz)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/php-error-50/#post-4054154)
 * 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](https://wordpress.org/support/users/peterbooker/)
 * (@peterbooker)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/php-error-50/#post-4054159)
 * 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](https://wordpress.org/support/users/jpskillz/)
 * (@jpskillz)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/php-error-50/#post-4054166)
 * Okay. Let me know please?
 *  Plugin Author [Peter Booker](https://wordpress.org/support/users/peterbooker/)
 * (@peterbooker)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/php-error-50/#post-4054167)
 * 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](https://wordpress.org/support/users/peterbooker/)
 * (@peterbooker)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/php-error-50/#post-4054195)
 * Any luck?
 *  Thread Starter [JPSKILLZ](https://wordpress.org/support/users/jpskillz/)
 * (@jpskillz)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/php-error-50/#post-4054197)
 * Oh sorry man! Working on some other edits, one sec…
 *  Thread Starter [JPSKILLZ](https://wordpress.org/support/users/jpskillz/)
 * (@jpskillz)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/php-error-50/#post-4054199)
 * Okay! We’re making progress. It says “Sorry, No Tweets were found.”
 *  Plugin Author [Peter Booker](https://wordpress.org/support/users/peterbooker/)
 * (@peterbooker)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/php-error-50/#post-4054202)
 * 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 [mail@peterbooker.com](https://wordpress.org/support/topic/php-error-50/mail@peterbooker.com?output_format=md)?
 *     ```
       <?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](https://wordpress.org/support/users/jpskillz/)
 * (@jpskillz)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/php-error-50/#post-4054205)
 * 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](https://wordpress.org/support/users/peterbooker/)
 * (@peterbooker)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/php-error-50/#post-4054207)
 * 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](https://wordpress.org/support/users/jpskillz/)
 * (@jpskillz)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/php-error-50/#post-4054210)
 * Production Server
 *  Plugin Author [Peter Booker](https://wordpress.org/support/users/peterbooker/)
 * (@peterbooker)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/php-error-50/#post-4054216)
 * 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)

1 [2](https://wordpress.org/support/topic/php-error-50/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/php-error-50/page/3/?output_format=md) [→](https://wordpress.org/support/topic/php-error-50/page/2/?output_format=md)

The topic ‘PHP Error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/kebo-twitter-feed_00aced.svg)
 * [Kebo Twitter Feed](https://wordpress.org/plugins/kebo-twitter-feed/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/kebo-twitter-feed/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/kebo-twitter-feed/)
 * [Active Topics](https://wordpress.org/support/plugin/kebo-twitter-feed/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/kebo-twitter-feed/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/kebo-twitter-feed/reviews/)

 * 34 replies
 * 2 participants
 * Last reply from: [Peter Booker](https://wordpress.org/support/users/peterbooker/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/php-error-50/page/3/#post-4054393)
 * Status: resolved