Title: Fatal PHP error when activating the plugin
Last modified: August 24, 2016

---

# Fatal PHP error when activating the plugin

 *  [Tim Pritlove](https://wordpress.org/support/users/timpritlove/)
 * (@timpritlove)
 * [11 years ago](https://wordpress.org/support/topic/fatal-php-error-when-activating-the-plugin/)
 * When I want to (re)activate the plugin I get the following error:
 * [Tue May 19 14:53:24.831973 2015] [:error] [pid 71393] [client 62.30.150.238:
   64665] PHP Fatal error: [] operator not supported for strings in /home/bar/www/
   wp-content/plugins/subscribe-to-comments-reloaded/subscribe-to-comments-reloaded.
   php on line 522, referer: [http://example.com/wp-admin/plugins.php](http://example.com/wp-admin/plugins.php)
 * [https://wordpress.org/plugins/subscribe-to-comments-reloaded/](https://wordpress.org/plugins/subscribe-to-comments-reloaded/)

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

 *  Thread Starter [Tim Pritlove](https://wordpress.org/support/users/timpritlove/)
 * (@timpritlove)
 * [11 years ago](https://wordpress.org/support/topic/fatal-php-error-when-activating-the-plugin/#post-6145463)
 * I am running on PHP 5.6.7
 *  [Profforg](https://wordpress.org/support/users/profforg/)
 * (@profforg)
 * [11 years ago](https://wordpress.org/support/topic/fatal-php-error-when-activating-the-plugin/#post-6145540)
 * Have the same with 5.5.24.
 *  Thread Starter [Tim Pritlove](https://wordpress.org/support/users/timpritlove/)
 * (@timpritlove)
 * [11 years ago](https://wordpress.org/support/topic/fatal-php-error-when-activating-the-plugin/#post-6145563)
 * I found the problem and I have a solution.
 * Problem is that the plugin stores information in the wp_options table in a field
   with option_name = “subscribe_reloaded_deferred_admin_notices” and that this 
   content does not get properly migrated as this value was a string once and is
   expected to be an array now.
 * Deleting all entries with option_name = “subscribe_reloaded_deferred_admin_notices”
   in wp_options (and in all wp_<n>_options tables if you have a multisite installation)
   made the error go away.
 * Solution for plugin developer: either sanitize data from wp_options or invalidate
   that cached information after upgrade.
 *  Thread Starter [Tim Pritlove](https://wordpress.org/support/users/timpritlove/)
 * (@timpritlove)
 * [11 years ago](https://wordpress.org/support/topic/fatal-php-error-when-activating-the-plugin/#post-6145564)
 * Extra information: this content caused the problem:
 * s:603:”a:2:{i:0;s:174:"<div class="updated"><h3>Subscribe to Comments Reloaded
   Important Notice</h3><p>The information in your database has been sanitize to
   prevent the raw html messages.</p></div>";i:1;s:261:"<div class="updated"><h3
   >Wichtiger Hinweis</h3><p>The creation of table **wp_subscribe_reloaded_subscribers**
   was successful.</p><p>This new table will help to add your subscribers email 
   address safer and prevent the Google PII violation.</p></div>";}”;
 * Somehow the array information got double escaped so that the whole array was 
   stored a string.
 *  [Israel Barragan](https://wordpress.org/support/users/reedyseth/)
 * (@reedyseth)
 * [11 years ago](https://wordpress.org/support/topic/fatal-php-error-when-activating-the-plugin/#post-6145568)
 * Hello Guys,
 * I’ve been away of the development for personal reason, but I take a look at your
   issues as soon as I am available.
 * Thank you for reporting it.
 * Regards.!!
 *  [myn10](https://wordpress.org/support/users/myn10/)
 * (@myn10)
 * [11 years ago](https://wordpress.org/support/topic/fatal-php-error-when-activating-the-plugin/#post-6145696)
 * Hello, I´m getting a similar error when trying to activate the plugin:
 * Fatal error: [] operator not supported for strings in /home3/myn10/public_html/
   guiasturisticasgratis.com/wp-content/plugins/subscribe-to-comments-reloaded/subscribe-
   to-comments-reloaded.php on line 574
 * How can I solve it?
 * Thanks.
 *  [Israel Barragan](https://wordpress.org/support/users/reedyseth/)
 * (@reedyseth)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/fatal-php-error-when-activating-the-plugin/#post-6145750)
 * Guys
 * I think that a string value is store in one of the StCR option.
 * Can you delete this option subscribe_reloaded_deferred_admin_notices with this
   SQL query:
 * `DELETE FROM wp_options WHERE option_name = 'subscribe_reloaded_deferred_admin_notices';`
 * Then deactivate and activate the plugin?
 * Also I am submitting some fixex on GitHub [https://github.com/stcr/subscribe-to-comments-reloaded](https://github.com/stcr/subscribe-to-comments-reloaded)
 * You can subscribe to the testers list before I release a new update so that you
   can feedback and test the plugin before installing the new update:
 * **Subscriber to Comments Reloaded Tester list**
    [http://eepurl.com/biCk1b](http://eepurl.com/biCk1b)

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

The topic ‘Fatal PHP error when activating the plugin’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/subscribe-to-comments-reloaded_f0f9fc.
   svg)
 * [Subscribe To Comments Reloaded](https://wordpress.org/plugins/subscribe-to-comments-reloaded/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/subscribe-to-comments-reloaded/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/subscribe-to-comments-reloaded/)
 * [Active Topics](https://wordpress.org/support/plugin/subscribe-to-comments-reloaded/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/subscribe-to-comments-reloaded/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/subscribe-to-comments-reloaded/reviews/)

 * 7 replies
 * 4 participants
 * Last reply from: [Israel Barragan](https://wordpress.org/support/users/reedyseth/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/fatal-php-error-when-activating-the-plugin/#post-6145750)
 * Status: not resolved