Title: PHP error when saving config changes
Last modified: August 22, 2016

---

# PHP error when saving config changes

 *  Resolved [dbais](https://wordpress.org/support/users/dbais/)
 * (@dbais)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-error-when-saving-config-changes/)
 * I just upgraded to v5.1.3 Now when I try to save a config change (even if there
   are no actual changes) I get the following PHP code error:
 * ( ! ) Warning: strip_tags() expects parameter 1 to be string, array given in /
   Volumes/hd/userdata/david/Sites/wlivingstone/first-for-seat-cars/www/wp-content/
   plugins/google-analytics-for-wordpress/admin/class-admin.php on line 88
    Call
   Stack # Time Memory Function Location 1 0.0024 313240 {main}( ) ../admin.php:
   0 2 1.0202 40897256 do_action( ) ../admin.php:145 3 1.0435 41613008 call_user_func_array:{/
   Volumes/hd/userdata/david/Sites/wlivingstone/first-for-seat-cars/www/wp-includes/
   plugin.php:505} ( ) ../plugin.php:505 4 1.0435 41613040 Yoast_GA_Admin->init_settings()../
   plugin.php:505 5 1.0438 41613672 Yoast_GA_Admin->save_settings( ) ../class-admin.
   php:60 6 1.0439 41615920 strip_tags ( ) ../class-admin.php:88
 * print_r of $value on that line returns:
 * a91931d8291XX-XXXXXX111eventdomainSave changesArray ( )
 * Any ideas?
 * db
 * [https://wordpress.org/plugins/google-analytics-for-wordpress/](https://wordpress.org/plugins/google-analytics-for-wordpress/)

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

1 [2](https://wordpress.org/support/topic/php-error-when-saving-config-changes/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/php-error-when-saving-config-changes/page/2/?output_format=md)

 *  [SMRDave](https://wordpress.org/support/users/smrdave/)
 * (@smrdave)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-error-when-saving-config-changes/#post-5521750)
 * same here and I just updated also
 *  [tyler93023](https://wordpress.org/support/users/tyler93023/)
 * (@tyler93023)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-error-when-saving-config-changes/#post-5521754)
 * same here, WP 4.0.1 and YA 5.1.3.
    [http://digipulse.com/](http://digipulse.com/)
 *     ```
       Warning: strip_tags() expects parameter 1 to be string, array given in /home/REDACTED/public_html/REDACTED.com/wp-content/plugins/google-analytics-for-wordpress/admin/class-admin.php on line 88
   
       Warning: Cannot modify header information - headers already sent by (output started at /home/REDACTED/public_html/REDACTED.com/wp-content/plugins/google-analytics-for-wordpress/admin/class-admin.php:88) in /home/REDACTED/public_html/REDACTED.com/wp-includes/pluggable.php on line 1179
       ```
   
 * Why is this plugin including the following line of code regarding forceSSL, which
   I can’t turn off, and which is not included in Google Analytics default code 
   to install? This site is not on an SSL.
 * > __gaTracker(‘set’, ‘forceSSL’, true);
 * This “feature” is not mentioned ANYWHERE in the changelog – no mention of “SSL”
   or “secure” at all.
 *  [mwrusnak](https://wordpress.org/support/users/mwrusnak/)
 * (@mwrusnak)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-error-when-saving-config-changes/#post-5521763)
 * The problem seems to be with the “Ignore Users” field (which is submitted as 
   an array, causing the error above on line 88) — when I make changes to that field,
   I get the same error, and the changes are lost. The field becomes blank even 
   if it was previously populated.
 * In the settings page itself, I now also get an error at the top of the page, “
   There where no changes to save, please try again.” whenever I try to change that
   field.
 *  [gcweb](https://wordpress.org/support/users/gcweb/)
 * (@gcweb)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-error-when-saving-config-changes/#post-5521767)
 * I’m getting the same error as well.
 * WP 4.1 and YA 5.1.3
 * now the difference is my details are saving in the system after going back on
   the error page, plus I have had a look in the source and I can see all the details
   there too.
 *  [SMRDave](https://wordpress.org/support/users/smrdave/)
 * (@smrdave)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-error-when-saving-config-changes/#post-5521785)
 * My details do save when this error comes up also
 *  [mwrusnak](https://wordpress.org/support/users/mwrusnak/)
 * (@mwrusnak)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-error-when-saving-config-changes/#post-5521789)
 * To clarify, all of my settings do save, _except _ for the “Ignore Users” field,
   which becomes blank — and then I only get the on-page error message when I attempt
   to fill it in again and save without changing any other settings.
 *  [ajiaim](https://wordpress.org/support/users/ajiaim/)
 * (@ajiaim)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-error-when-saving-config-changes/#post-5521800)
 * I am also having an issue…. Everything saves but everytime I try to save I get
   one of those errors.
 * **wp-content/plugins/google-analytics-for-wordpress/admin/class-admin.php on 
   line 88**
 *  [astpaul](https://wordpress.org/support/users/astpaul/)
 * (@astpaul)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-error-when-saving-config-changes/#post-5521818)
 * Same here. Issue comes from the “Ignore Users” field:
 * Warning: strip_tags() expects parameter 1 to be string, array given in /home/
   content/…/65/2242065/html/wp-content/plugins/google-analytics-for-wordpress/admin/
   class-admin.php on line 88
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/content/…/65/2242065/html/wp-content/plugins/google-analytics-for-wordpress/
   admin/class-admin.php:88) in /home/content/…/65/2242065/html/wp-includes/pluggable.
   php on line 1173
 *  [jdog89](https://wordpress.org/support/users/jwhawkes/)
 * (@jwhawkes)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-error-when-saving-config-changes/#post-5521849)
 * I am getting an issues aswell:
 * Warning: strip_tags() expects parameter 1 to be string, array given in /home/
   xxxx/public_html/wp-content/plugins/google-analytics-for-wordpress/admin/class-
   admin.php on line 88
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/xxx/public_html/wp-content/plugins/google-analytics-for-wordpress/admin/
   class-admin.php:88) in /home/xxx/public_html/wp-includes/pluggable.php on line
   1179
 *  [sweetrobot](https://wordpress.org/support/users/sweetrobot/)
 * (@sweetrobot)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-error-when-saving-config-changes/#post-5521850)
 * yep same issue here.
 *  [unostips](https://wordpress.org/support/users/unostips/)
 * (@unostips)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-error-when-saving-config-changes/#post-5521880)
 * A fix!
 * Go to Plugins > Editor. Select “Google Analytics by Yoast” and edit the file **
   google-analytics-for-wordpress/admin/class-admin.php**
 * Change line 88:
    _$value = strip\_tags( $value );_
 * With this:
    _$value = strip\_tags( **(string)** $value );_
 * (is not the best solution, but works for me)
 *  [spaisr](https://wordpress.org/support/users/spaisr/)
 * (@spaisr)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-error-when-saving-config-changes/#post-5521903)
 * [@unostips](https://wordpress.org/support/users/unostips/) Thanks a lot you fixed
   my issue on two sites
    [freezetheme](http://www.freezetheme.com) Thanks a lot
   spent my 3 hours A fix!
 * Go to Plugins > Editor. Select “Google Analytics by Yoast” and edit the file 
   google-analytics-for-wordpress/admin/class-admin.php
 * Change line 88:
    $value = strip_tags( $value );
 * With this:
    $value = strip_tags( (string) $value );
 * (is not the best solution, but works for me)
 *  [spaisr](https://wordpress.org/support/users/spaisr/)
 * (@spaisr)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-error-when-saving-config-changes/#post-5521904)
 * [@unostips](https://wordpress.org/support/users/unostips/) Thanks a lot you fixed
   my issue on two sites
    [http://www.freezetheme.com](http://www.freezetheme.com)
   Thanks a lot spent my 3 hours A fix!
 * Go to Plugins > Editor. Select “Google Analytics by Yoast” and edit the file 
   google-analytics-for-wordpress/admin/class-admin.php
 * Change line 88:
    $value = strip_tags( $value );
 * With this:
    $value = strip_tags( (string) $value );
 * (is not the best solution, but works for me)
 *  [imagefact](https://wordpress.org/support/users/imagefact/)
 * (@imagefact)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-error-when-saving-config-changes/#post-5521909)
 * Fix causes other errors on my site….
 *  [becky.absolute](https://wordpress.org/support/users/beckyabsolute/)
 * (@beckyabsolute)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-error-when-saving-config-changes/#post-5521913)
 * I’m encountering the same issues when trying to update the “Ignore Users” field.
   Any updates/feedback from the plugin author???

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

1 [2](https://wordpress.org/support/topic/php-error-when-saving-config-changes/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/php-error-when-saving-config-changes/page/2/?output_format=md)

The topic ‘PHP error when saving config changes’ is closed to new replies.

 * ![](https://ps.w.org/google-analytics-for-wordpress/assets/icon.svg?rev=2976619)
 * [MonsterInsights - Google Analytics Dashboard for WordPress (Website Stats Made Easy)](https://wordpress.org/plugins/google-analytics-for-wordpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-analytics-for-wordpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-analytics-for-wordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/google-analytics-for-wordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-analytics-for-wordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-analytics-for-wordpress/reviews/)

 * 21 replies
 * 17 participants
 * Last reply from: [Joost de Valk](https://wordpress.org/support/users/joostdevalk/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/php-error-when-saving-config-changes/page/2/#post-5521934)
 * Status: resolved