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 6 replies - 16 through 21 (of 21 total)

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

 *  [dycweb](https://wordpress.org/support/users/dycweb/)
 * (@dycweb)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-error-when-saving-config-changes/page/2/#post-5521914)
 * I’m also having this issue. Some feedback from the plugin author would be great.
 *  [ramedia](https://wordpress.org/support/users/ramedia/)
 * (@ramedia)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-error-when-saving-config-changes/page/2/#post-5521917)
 * Note to other users: I just installed this plugin for first time use on a current
   version wordpress site. Same errors on “Save Changes” to any settings page (tab).
   However I did notice on return to the page (back button), **my settings were 
   indeed saved**.
 *  [mwrusnak](https://wordpress.org/support/users/mwrusnak/)
 * (@mwrusnak)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-error-when-saving-config-changes/page/2/#post-5521918)
 * Looks like they are working on it, based on this item in github:
 * [https://github.com/Yoast/google-analytics-for-wordpress/commit/ec1b43b9ac70611a1d0e15f235d4a584a3863fea](https://github.com/Yoast/google-analytics-for-wordpress/commit/ec1b43b9ac70611a1d0e15f235d4a584a3863fea)
 * I don’t see anything about when the fix will be released though.
 *  [BAMN](https://wordpress.org/support/users/bamn/)
 * (@bamn)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-error-when-saving-config-changes/page/2/#post-5521919)
 * Thanks unostips! That seemed to save.
 *  [mwrusnak](https://wordpress.org/support/users/mwrusnak/)
 * (@mwrusnak)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-error-when-saving-config-changes/page/2/#post-5521930)
 * Today’s update seemed to fix the whole problem for me.
 *  [Joost de Valk](https://wordpress.org/support/users/joostdevalk/)
 * (@joostdevalk)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-error-when-saving-config-changes/page/2/#post-5521934)
 * This was fixed in GA 5.1.4.

Viewing 6 replies - 16 through 21 (of 21 total)

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

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