Title: PHP warning
Last modified: August 21, 2016

---

# PHP warning

 *  [Terri Ann](https://wordpress.org/support/users/terriann/)
 * (@terriann)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/php-warning-25/)
 * When I activate the plugin I get this PHP warning:
 * Warning: substr() expects parameter 2 to be long, string given in /html/wp-content/
   plugins/acronym-manager/php/acronym-manager-class.php on line 39
 * [http://wordpress.org/plugins/acronym-manager/](http://wordpress.org/plugins/acronym-manager/)

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

 *  [bostaf](https://wordpress.org/support/users/bostaf/)
 * (@bostaf)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/php-warning-25/#post-4340657)
 * Same here.
    You can fix it by editing the plugin. Open file `acronym-manager/
   php/acronym-manager-class.php`, find:
 * `if ( substr($parent_file, 'acronym-manager') ) {`
 * and replace it with
 * `if ( FALSE !== strpos($parent_file, 'acronym-manager') ) {`
 *  [Draky](https://wordpress.org/support/users/draky/)
 * (@draky)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/php-warning-25/#post-4340680)
 * Mmmm same here, thanks for the tip.
    Plugin abandoned :/

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/acronym-manager.svg)
 * [Acronym Manager](https://wordpress.org/plugins/acronym-manager/)
 * [Support Threads](https://wordpress.org/support/plugin/acronym-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/acronym-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/acronym-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/acronym-manager/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Draky](https://wordpress.org/support/users/draky/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/php-warning-25/#post-4340680)
 * Status: not resolved