Title: Error when saving plugin settings
Last modified: May 5, 2022

---

# Error when saving plugin settings

 *  Resolved [nahasco](https://wordpress.org/support/users/nahasco/)
 * (@nahasco)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/error-when-saving-plugin-settings/)
 * I am getting this error when I try to save the plugin settings for sandbox testing.
 * There has been a critical error on this website. Please check your site admin
   email inbox for instructions.

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

 *  Plugin Author [ClickOn GmbH](https://wordpress.org/support/users/mstonys/)
 * (@mstonys)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/error-when-saving-plugin-settings/#post-15618693)
 * Hi there, please tell me more about this error. You can contact us by Email [momo-plugin@clickon.ch](https://wordpress.org/support/topic/error-when-saving-plugin-settings/momo-plugin@clickon.ch?output_format=md)
 * You may also drop me a screenshot of the plugin settings here in Forum.
    -  This reply was modified 4 years, 1 month ago by [ClickOn GmbH](https://wordpress.org/support/users/mstonys/).
    -  This reply was modified 4 years, 1 month ago by [ClickOn GmbH](https://wordpress.org/support/users/mstonys/).
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [4 years, 1 month ago](https://wordpress.org/support/topic/error-when-saving-plugin-settings/#post-15618710)
 * [@mstonys](https://wordpress.org/support/users/mstonys/)
    Per the [plugin developer guidelines](https://developer.wordpress.org/plugins/wordpress-org/using-the-forums/#you-may-request-users-open-tickets-on-your-own-system),“
   if you’re helping people in the free forums, you are expected to help them in
   the forums.”If you really want to move support away from the forums please note
   that in your plugin’s README.TXT and a pinned post in your support area on wp.
   org, but consider helping in the forums to help educate the community and ensure
   future people can find the solution without hassling you. This is COMMUNITY support
   and part of being a member of the community is provide support publicly and openly
   whenever possible
 *  Thread Starter [nahasco](https://wordpress.org/support/users/nahasco/)
 * (@nahasco)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/error-when-saving-plugin-settings/#post-15618858)
 * Here is a screenshot
 * [https://ibb.co/mCt2CM3](https://ibb.co/mCt2CM3)
 *  Plugin Author [ClickOn GmbH](https://wordpress.org/support/users/mstonys/)
 * (@mstonys)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/error-when-saving-plugin-settings/#post-15618956)
 * This looks like all payments are not working, very strange. I advise to do:
 * 1. Please check the error log, paste the screenshot here
    2. Disable MTN MoMo
   plugin and check under payments again, to see if it loads 3. Make sure you have
   the latest version of WordPress installed
 *  Thread Starter [nahasco](https://wordpress.org/support/users/nahasco/)
 * (@nahasco)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/error-when-saving-plugin-settings/#post-15619085)
 * No, this error only appears when I try to access the plugin settings.
 * Here is the log:
 * `Fatal error: Uncaught TypeError: Unsupported operand types: string - string 
   in /var/www/vhosts/weddingniceties.com/httpdocs/wp-content/plugins/pay-with-mtn-
   momo-woocommerce/classes/class_momo_pay_view.php:198 Stack trace: #0 /var/www/
   vhosts/weddingniceties.com/httpdocs/wp-content/plugins/pay-with-mtn-momo-woocommerce/
   classes/class_momo_pay_gateway.php(249): WC_MomoPay_View::createFinishBox() #
   1 /var/www/vhosts/weddingniceties.com/httpdocs/wp-content/plugins/woocommerce/
   includes/admin/settings/class-wc-settings-payment-gateways.php(104): WC_MomoPay_Gateway-
   >admin_options() #2 /var/www/vhosts/weddingniceties.com/httpdocs/wp-content/plugins/
   woocommerce/includes/admin/settings/class-wc-settings-payment-gateways.php(87):
   WC_Settings_Payment_Gateways->run_gateway_admin_options() #3 /var/www/vhosts/
   weddingniceties.com/httpdocs/wp-includes/class-wp-hook.php(307): WC_Settings_Payment_Gateways-
   >output() #4 /var/www/vhosts/weddingniceties.com/httpdocs/wp-includes/class-wp-
   hook.php(331): WP_Hook->apply_filters() #5 /var/www/vhosts/weddingniceties.com/
   httpdocs/wp-includes/plugin.php(474): WP_Hook->do_action() #6 /var/www/vhosts/
   weddingniceties.com/httpdocs/wp-content/plugins/woocommerce/includes/admin/views/
   html-admin-settings.php(40): do_action() #7 /var/www/vhosts/weddingniceties.com/
   httpdocs/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-settings.
   php(153): include('...') #8 /var/www/vhosts/weddingniceties.com/httpdocs/wp-content/
   plugins/woocommerce/includes/admin/class-wc-admin-menus.php(280): WC_Admin_Settings::
   output() #9 /var/www/vhosts/weddingniceties.com/httpdocs/wp-includes/class-wp-
   hook.php(307): WC_Admin_Menus->settings_page() #10 /var/www/vhosts/weddingniceties.
   com/httpdocs/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #11/
   var/www/vhosts/weddingniceties.com/httpdocs/wp-includes/plugin.php(474): WP_Hook-
   >do_action() #12 /var/www/vhosts/weddingniceties.com/httpdocs/wp-admin/admin.
   php(259): do_action() #13 {main} thrown in /var/www/vhosts/weddingniceties.com/
   httpdocs/wp-content/plugins/pay-with-mtn-momo-woocommerce/classes/class_momo_pay_view.
   php on line 198`
 * Wordpress is up to date
 *  Plugin Author [ClickOn GmbH](https://wordpress.org/support/users/mstonys/)
 * (@mstonys)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/error-when-saving-plugin-settings/#post-15619693)
 * I see the problem, let me do the fix for you.
 *  Plugin Author [ClickOn GmbH](https://wordpress.org/support/users/mstonys/)
 * (@mstonys)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/error-when-saving-plugin-settings/#post-15619987)
 * We just made a new release **v1.0.4**, please upgrade and check if it works for
   you!
 *  Thread Starter [nahasco](https://wordpress.org/support/users/nahasco/)
 * (@nahasco)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/error-when-saving-plugin-settings/#post-15620018)
 * Thanks, works now!
    I have some questions regarding how the plugin works, I sent
   a message to you on Skype I hope we can chat about it, thanks!

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

The topic ‘Error when saving plugin settings’ is closed to new replies.

 * ![](https://ps.w.org/pay-with-mtn-momo-woocommerce/assets/icon.svg?rev=2470497)
 * [Pay with MTN MoMo in WooCommerce](https://wordpress.org/plugins/pay-with-mtn-momo-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pay-with-mtn-momo-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pay-with-mtn-momo-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/pay-with-mtn-momo-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pay-with-mtn-momo-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pay-with-mtn-momo-woocommerce/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [nahasco](https://wordpress.org/support/users/nahasco/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/error-when-saving-plugin-settings/#post-15620018)
 * Status: resolved