• Resolved Esch

    (@esch)


    Installed the latest update just now and it totally bricked my site. I couldn’t even use the recovery email link because it broke it so badly. I had to go in via FTP and delete the plugin and manually reinstall the previous version (4.5.0) to get the site running again.

    Error Details

    An error of type E_ERROR was caused in line 428 of the file /home/mysite/public_html/wp-content/plugins/woocommerce-square/woocommerce-square.php. Error message: Uncaught Error: Class “WooCommerce\Square\Gateway\Blocks_Handler” not found in /home/mysite/public_html/wp-content/plugins/woocommerce-square/woocommerce-square.php:428
    Stack trace: 0 /home/mysite/public_html/wp-includes/class-wp-hook.php(324): WooCommerce_Square_Loader->register_payment_method_block_integrations() 1 /home/mysite/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 2 /home/mysite/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() 3 /home/mysite/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/Integrations/IntegrationRegistry.php(50): do_action() 4 /home/mysite/public_html/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Blocks\Integrations\IntegrationRegistry->initialize() 5 /home/mysite/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 6 /home/mysite/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() 7 /home/mysite/public_html/wp-settings.php(643): do_action() 8 /home/mysite/public_html/wp-config.php(95): require_once(‘/home/mysite/…’) 9 /home/mysite/public_html/wp-load.php(50): require_once(‘/home/mysite/…’) 10 /home/mysite/public_html/wp-admin/admin-ajax.php(22): require_once(‘/home/mysite/…’) 11 {main}

    thrown

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @esch,

    The error log you’ve shared indicates that it’s unable to find the class “WooCommerce\Square\Gateway\Blocks_Handler” in the WooCommerce Square plugin.

    This is not a reported bug; I couldn’t even replicate this on my testing site. Could you try deactivating and reactivating the plugin and see whether this gets resolved or not?

    In the meantime, you can run a conflict test to help you identify the cause of the issue. More info: https://woo.com/document/how-to-test-for-conflicts/

    Let us know how that goes for you.

    Thread Starter Esch

    (@esch)

    Thank you for the super fast response on this. As I stated, 4.5.0 works great, so I don’t know why all of a sudden there’s a conflict with your plugin and the rest of my site when it’s been working fine before.

    In regards to deactivating/reactivating the plugin. I wasn’t given a chance to do that the first time because this issue literally bricked my site and gave me a “critical error” message when I tried to view it or go to the admin area. It was so bad that even the recovery email link didn’t even work.

    If I install 4.5.1 again then it will probably brick the site once more, so deactivating/reactivating it won’t be possible.

    Could this be a case of just a bad install? Should I try to manually install the update via FTP instead?

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @esch,

    If I install 4.5.1 again then it will probably brick the site once more, so deactivating/reactivating it won’t be possible.

    We always recommend testing every plugin and theme update on a staging site before updating them on the live site. Here’s a guide on how to do it: https://woo.com/document/how-to-test-for-conflicts/

    Could this be a case of just a bad install? Should I try to manually install the update via FTP instead?

    Yes, it’s possible that there might have been a problem during the installation of the update which led to this issue. You could try manually installing the update via FTP to see if that resolves the problem.

    Please let us know how it goes. We’re here to help.

    Thread Starter Esch

    (@esch)

    Ok it’s late for me now so I will try the manual install tomorrow and get back with you. Thanks!

    Thread Starter Esch

    (@esch)

    Ok it’s late for me so I will do this tomorrow and will get back with you. Thanks!

    Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hi @esch,

    Ok it’s late for me so I will do this tomorrow and will get back with you. Thanks!

    Sounds like a plan.

    Let us know once you’ve tried the steps.

    We’re here to help!

    Thread Starter Esch

    (@esch)

    An update:
    I put my site into maintenance mode. Deactivated the plugin. Went into FTP and deleted 4.5.0, and manually installed 4.5.1. Went back to site and reactivated plugin.

    Site bricked again, sigh.

    I went back into FTP and deleted it and reinstalled 4.5.0 and now site is back up.

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @esch,

    Can you share the error log generated in your server?

    Additionally, could you share a copy of your site’s System Status Report with us? You’ll find it at the top of the page under WooCommerce > Status > Select Get System Report and then Download for Support.

    Looking forward to hearing from you!

    Thread Starter Esch

    (@esch)

    Before I go too deep in the weeds on this, I have a question. I just realized that the version of WooCommerce I had installed was 8.5.1 and I hadn’t updated it to the latest version (8.6.1) I just updated it, but wanted to ask you before I tried this again if that may have been causing my issues?

    Also, when I went to the Woo Square plugin page, it said this at the top:

    Warning:?This plugin?has not been tested?with your current version of WordPress.”

    My version is 6.4.3, which is the latest version as of January 30th.

    —-

    In regards to your last message. I went into FTP and don’t appear to have an error log in the spot the link says it should be. I assume this means I need to go in and activate that in the wp-config.php file? If so, does this need to remain on all the time after this point or should I go in and remove that once all this testing is over?

    Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hi @esch,

    again if that may have been causing my issues?

    We are not able to rule out the possibilities of having used an outdated version of WooCommerce, however, it is more likely the main reason why you were facing such errors. Updating to the latest version may automatically solve the issues. You can find the latest version here

    Please try updating and let us know if you continue experiencing the same issues.

    Warning:?This plugin?has not been tested?with your current version of WordPress.”

    This is because the WooCommerce Square version has been tested on WordPress versions up to 6.4.0 which should still work fine. You can find more details here.

    in and remove that once all this testing is over?

    You can directly enable logging from WooCommerce Square by heading over to WooCommerce > Settings > Square. This will automatically add any Square logs into your WooCommerce logs, which can be found under WooCommerce > Status > Logs. You can always turn off the debug mode once issues are fixed, but it’s advisable to always have the logging on to capture any errors.

    Hope this helps.

    anastas10s

    (@anastas10s)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

    Thread Starter Esch

    (@esch)

    Sorry for the delayed response. Since my last post here, my family and I have suffered various illnesses that have put all my website stuff on hold as a result. I hope to be able to answer further once we get better sometime this upcoming week. Thanks for your patience!

    Hey, @esch!

    Sorry for the delayed response. Since my last post here, my family and I have suffered various illnesses that have put all my website stuff on hold as a result. I hope to be able to answer further once we get better sometime this upcoming week. Thanks for your patience!

    I’m sorry you and your family went through this, I hope everyone is feeling better now.

    You can take your time to reply, don’t worry ?? We’ll be here to help when you are ready.

    I’ve also opened the thread again for you.

    Looking forward to your reply.

    Have a wonderful day!

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @esch,

    I’m marking this topic as “resolved” due to recent inactivity. If more assistance is needed, feel free to post back here or open a new topic.

    Thanks!

    Thread Starter Esch

    (@esch)

    So sorry for the delay. I FINALLY was able to get around to this. I made sure my Woocommerce was updated to the latest version first, then updated your plugin, and it works! Thanks for your patience!

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘4.5.1 bricked my site’ is closed to new replies.