Title: PHP Illegal string offset
Last modified: November 18, 2017

---

# PHP Illegal string offset

 *  Resolved [TeroSalminen](https://wordpress.org/support/users/terosalminen/)
 * (@terosalminen)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/php-illegal-string-offset/)
 * Getting PHP-errors:
    `PHP message: PHP Warning: Illegal string offset 'feed' 
   in /var/www/blog/wp-content/plugins/top-10/includes/counter.php on line 61`
 * Wp is running on Nginx 1.13.6 + PHP 7.1.11 on Debian Stretch 9.2
 * Started on first update today, still exist in fix-version.

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/php-illegal-string-offset/#post-9698379)
 * Are you in a position to edit this line?
 * From:
 *     ```
       if ( $add_to['feed'] ) {
       ```
   
 * to
 *     ```
       if ( ! empty( $add_to['feed'] ) ) {
       ```
   
 *  Thread Starter [TeroSalminen](https://wordpress.org/support/users/terosalminen/)
 * (@terosalminen)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/php-illegal-string-offset/#post-9698388)
 * Edited, will wait a while and see if errors are gone.
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/php-illegal-string-offset/#post-9698400)
 * Thanks. Quick way to check is to visit /feed/ on your site to see if this comes
   back.
 *  Thread Starter [TeroSalminen](https://wordpress.org/support/users/terosalminen/)
 * (@terosalminen)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/php-illegal-string-offset/#post-9698428)
 * No more errors, excellent work, thank you! 🙂
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/php-illegal-string-offset/#post-9698429)
 * Thanks. I’ll make the edit as well. I am waiting to see if there are any more
   bugs being reported and will put them into a new version.
 *  [ElectricEye](https://wordpress.org/support/users/electriceye/)
 * (@electriceye)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/php-illegal-string-offset/#post-9703976)
 * That fixed worked for me as well to fix the error occurring when Dlvr.it sent
   a new post link to Facebook. Thank you for the quick solution. Great Plug in 
   as well.
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/php-illegal-string-offset/#post-9704049)
 * Thanks for confirming. I’ve got to work through few minor changes and then I’ll
   push through a release next weekend.
 *  [Grzegorz.Janoszka](https://wordpress.org/support/users/grzegorzjanoszka/)
 * (@grzegorzjanoszka)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/php-illegal-string-offset/#post-9705137)
 * I had the same issue and the edit seems to help 🙂

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘PHP Illegal string offset’ is closed to new replies.

 * ![](https://ps.w.org/top-10/assets/icon-256x256.png?rev=2986432)
 * [WebberZone Top 10 — Popular Posts](https://wordpress.org/plugins/top-10/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/top-10/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/top-10/)
 * [Active Topics](https://wordpress.org/support/plugin/top-10/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/top-10/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/top-10/reviews/)

 * 8 replies
 * 4 participants
 * Last reply from: [Grzegorz.Janoszka](https://wordpress.org/support/users/grzegorzjanoszka/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/php-illegal-string-offset/#post-9705137)
 * Status: resolved