Hi @abonosir,
Sorry to hear you’re having trouble with your site after migrating it to a new host.
Based on what you described, I suspect there may have been an issue during the migration.
It looks like the code it is trying to retrieve an option from the wp_options table, bit it’s being passed as boolean instead of an array.
Could you please provide the following details:
- The page in your WP-Admin dashboard you are seeing that error on
- A screenshot of what you see and where it’s being shown. I recommend https://snipboard.io for easily sharing screenshots – please follow the instructions on the page, then paste the URL in your reply here.
For now, please visit WooCommerce > Status > Tools and run the tools to Clear Transients and Clear WooCommerce Transients. Please let us know how that goes.
Please find the below link
https://snipboard.io/eolUwm.jpg
I did the below :
For now, please visit WooCommerce > Status > Tools and run the tools to Clear Transients and Clear WooCommerce Transients. Please let us know how that goes.
but I got the same error
@abonosir thanks for the screenshot and for letting me know you are still seeing the same error.
Based on the information you have provided so far, I suspect the issue may be caused by a conflict with your theme or with another plugin.
The best way to determine this is to:
- Temporarily switch your theme to Storefront
- Disable all plugins except for WooCommerce
- Repeat the action that is causing the problem
If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.`
I changed the theme . issue still there .
when I disable woocommerce issue was gone I install new one issue came back .
That doesn’t sound good. Could you please confirm if you disabled all plugins except for WooCommerce and switched to the Storefront theme at the same time?
Hi @abonosir. Please share your system report with me. You can find it by going to WooCommerce > Status > Get system report and then click Copy for support to be able to paste it in your reply. Also, make sure that all your plugins and your theme are up to date.
Ok, same issue as @abonosir with a bonus :
https://snipboard.io/qbi43P.jpg
So, I checked this
public static function is_connected() {
$helper_options = get_option( 'woocommerce_helper_data', array() );
if ( array_key_exists( 'auth', $helper_options ) && ! empty( $helper_options['auth'] ) ) {
return true;
}
return false;
}
VS
public static function get( $key, $default = false ) {
$options = get_option( self::$option_name, array() );
if ( array_key_exists( $key, $options ) ) {
return $options[ $key ];
}
return $default;
}
It seems that the ‘woocommerce_helper_data’ returned false through get_option().
So, I checked in my database the option_name ‘woocommerce_helper_data’ and it appeared that the email part in the serialized array was changed. ( Because of a replace-all occurences of hostname to the new one ).
Maybe this can help you too ? ( checking your option_name in DB )
Hi @abonosir. I hope that you have managed to resolve the issue. Since we have not heard back from you, I’m going to mark this topic solved but please start a new topic if you have any remaining questions.
Thanks @freuxdesbois your suggestion resolved my issue.