monero-integrations / monerowp

Monero WooCommerce Plugin for Wordpress
MIT License
105 stars 74 forks source link

Currency symbol disappears #62

Closed moryoav closed 6 years ago

moryoav commented 6 years ago

After enabling this plugin, in Woocommerce->General->Currency Options->Currency the dropdown list is now empty. If I make any change in woocommerce and Save then it saves it with no currency (all the $ symbols disappear from the website). The solution is always to disable the monero gateway plugin, fix the currency in Woocommerce and enable the plugin again. (Using monerowp pre-release 2.1)

serhack commented 6 years ago

Do you have any warnings or errors? May you enable the WP debug?

moryoav commented 6 years ago

With WP debug enabled + MoneroWP I get these 3 warnings in the WooCommerce settings page (they are gone if I disable MoneroWP).

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'add_my_currency' not found or invalid function name in /home/folder/public_html/wp-includes/class-wp-hook.php on line 286

Warning: array_unique() expects parameter 1 to be array, null given in /home/folder/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 457

Warning: Invalid argument supplied for foreach() in /home/folder/public_html/wp-content/plugins/woocommerce/includes/admin/settings/class-wc-settings-general.php on line 38