Thread Starter
neel26
(@neel26)
Always this problem occurs…..
Thread Starter
neel26
(@neel26)
Such error is occurring
PHP Warning: array_keys() expects parameter 1 to be array, boolean given in D:\inetpub\vhosts\nfragrances.com\test.nfragrances.com\wp-content\plugins\woocommerce-currency-switcher\index.php on line 473
PHP Warning: array_map(): Argument #2 should be an array in D:\inetpub\vhosts\nfragrances.com\test.nfragrances.com\wp-content\plugins\woocommerce-currency-switcher\index.php on line 474
Thread Starter
neel26
(@neel26)
Hello,
Solve the problem.
Hello
What was the trouble? Empty settings?
Thread Starter
neel26
(@neel26)
Hi,
Thanks a lot for the reply when i install the plugin on the server,i give the above error as mentioned earlier, i am mentioning the error.
PHP Warning: array_keys() expects parameter 1 to be array, boolean given in D:\inetpub\vhosts\nfragrances.com\test.nfragrances.com\wp-content\plugins\woocommerce-currency-switcher\index.php on line 473
PHP Warning: array_map(): Argument #2 should be an array in D:\inetpub\vhosts\nfragrances.com\test.nfragrances.com\wp-content\plugins\woocommerce-currency-switcher\index.php on line 474
Thread Starter
neel26
(@neel26)
What does you mean by empty settings…
Hello
http://clip2net.com/s/3wy0TBo – is this settings looks normally here wp-admin/admin.php?page=wc-settings&tab=woocs ? Try to set settings and press save
IF you see nothing there and cant add any currencies, use this link: wp-admin/admin.php?page=wc-settings&tab=woocs&woocs_reset=1
Thread Starter
neel26
(@neel26)
Hello,
But no such option is shown there because plugin doesn’t install itself and gives this error
PHP Warning: array_keys() expects parameter 1 to be array, boolean given in D:\inetpub\vhosts\nfragrances.com\test.nfragrances.com\wp-content\plugins\woocommerce-currency-switcher\index.php on line 473
PHP Warning: array_map(): Argument #2 should be an array in D:\inetpub\vhosts\nfragrances.com\test.nfragrances.com\wp-content\plugins\woocommerce-currency-switcher\index.php on line 474
Hello
This warnings. Upload the plugin by ftp
+
Do next trick:
* open index.php of the plugins
* find public function get_currencies()
* before return $currencies; drop code:
if(empty($currencies) OR !is_array($currencies)){
$currencies=$default;
}
http://clip2net.com/s/3wB1VvR
I had the same issue and my solution was to deactivate the plugin, delete the row named woocs from the wp_options table and reactivate the plugin.
@leefroese
Thank you for cooperation …