Title: PHP Warning: Illegal string offset &#8216;filter&#8217;
Last modified: February 13, 2019

---

# PHP Warning: Illegal string offset ‘filter’

 *  Resolved [NemiSys](https://wordpress.org/support/users/nemisys/)
 * (@nemisys)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-warning-illegal-string-offset-filter/)
 * Constant PHP Warning: Illegal string offset ‘filter’ in /home/wfc/public_html/
   wp-includes/taxonomy.php on line 1408
 * Error ceases when plugin is deactivated
 * In the function sanitize_term($term, $taxonomy, $context = ‘display’)
 * ‘filter’ is an illegal offset in the array $term
 * 1405 if ( $do_object )
    1406 $term->filter = $context; 1407 else 1408 $term[‘
   filter’] = $context;

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

 *  [lanesharon](https://wordpress.org/support/users/lanesharon/)
 * (@lanesharon)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/php-warning-illegal-string-offset-filter/#post-11425208)
 * I have the same error, but on line 1489. And, when I deactivate the plugin, it
   goes away.
 *  Thread Starter [NemiSys](https://wordpress.org/support/users/nemisys/)
 * (@nemisys)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/php-warning-illegal-string-offset-filter/#post-11428040)
 * Same
    Now = “PHP Warning: Illegal string offset ‘filter’ in /home/XXXXXX/public_html/
   wp-includes/taxonomy.php on line 1489”
 * Presumably it was upgraded
 * Do we have a fix guys ?
    Happy to add it in before next release Just want unnecessary
   error.log entries to go away so I can stop getting alerted to file size changes
   on the account every X hours
 *  Plugin Author [kasal](https://wordpress.org/support/users/kasal/)
 * (@kasal)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/php-warning-illegal-string-offset-filter/#post-11467025)
 * I am unable to replicate this error.
    Can you please [contact me](http://www.hupso.com/share/feedback/)
   so we can fix this in next release? Please include URL of your website, WP version
   and PHP version your are using.
 *  [razoralpha](https://wordpress.org/support/users/razoralpha/)
 * (@razoralpha)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/php-warning-illegal-string-offset-filter/#post-11467084)
 * I just sent my details via the contact form. Thank you for looking into it.
 *  Plugin Author [kasal](https://wordpress.org/support/users/kasal/)
 * (@kasal)
 * [7 years ago](https://wordpress.org/support/topic/php-warning-illegal-string-offset-filter/#post-11500746)
 * I would like to notify you that this bug is now fixed. If you have this issue,
   please upgrade this plugin to version 4.5.0 (or later).
 * [@razoralpha](https://wordpress.org/support/users/razoralpha/) Thank you for 
   your help with this issue.

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/hupso-share-buttons-for-twitter-facebook-
   google_ccac59.svg)
 * [Hupso Social Media Share Buttons](https://wordpress.org/plugins/hupso-share-buttons-for-twitter-facebook-google/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hupso-share-buttons-for-twitter-facebook-google/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hupso-share-buttons-for-twitter-facebook-google/)
 * [Active Topics](https://wordpress.org/support/plugin/hupso-share-buttons-for-twitter-facebook-google/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hupso-share-buttons-for-twitter-facebook-google/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hupso-share-buttons-for-twitter-facebook-google/reviews/)

## Tags

 * [illegal string offset](https://wordpress.org/support/topic-tag/illegal-string-offset/)

 * 5 replies
 * 4 participants
 * Last reply from: [kasal](https://wordpress.org/support/users/kasal/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/php-warning-illegal-string-offset-filter/#post-11500746)
 * Status: resolved