• Resolved kds26

    (@kds26)


    Hi, when updating the lastest version I had a critial error.

    WordPress caught an error with one of your plugins, Afterpay Gateway for WooCommerce.

    Error Details ============= An error of type E_ERROR was caused in line 60 of the file /home/public_html/wp-content/plugins/afterpay-gateway-for-woocommerce/afterpay-gateway-for-woocommerce.php. Error message: Uncaught Error: Failed opening required ‘/home/public_html/wp-content/plugins/afterpay-gateway-for-woocommerce/class/Cron/Afterpay_Plugin_Cron.php’ (include_path=’.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php’) in /home/public_html/wp-content/plugins/afterpay-gateway-for-woocommerce/afterpay-gateway-for-woocommerce.php:60 Stack trace: #0 /home/public_html/wp-content/plugins/afterpay-gateway-for-woocommerce/afterpay-gateway-for-woocommerce.php(341): Afterpay_Plugin::load_classes() #1 /home/public_html/wp-content/plugins/afterpay-gateway-for-woocommerce/afterpay-gateway-for-woocommerce.php(450): Afterpay_Plugin::init() #2 /home/public_html/wp-includes/class-wp-hook.php(324): Afterpay_Plugin::upgrade_complete(Object(Plugin_Upgrader), Array) #3 /home/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #4 /home/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #5 /home/public_html/wp-admin/includes/class-plugin-upgrader.php(421): do_action(‘upgrader_proces…’, Object(Plugin_Upgrader), Array) #6 /home/public_html/wp-admin/update.php(51): Plugin_Upgrader->bulk_upgrade(Array) #7 {main} thrown

    Do I need to rollback to the previous version? Any help would be appreciated. Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @kds26,

    Thank you for your message.

    The line number 60 and file name Afterpay_Plugin_Cron.php do not seem to match the latest version of the plugin. Can you please try deleting the plugin completely and reinstalling v3.8.6?

    Thank you.

    Thread Starter kds26

    (@kds26)

    Hi @chesterz4afterpay,

    Thank you for your reply. I have done this and all seems to be working it did not cause a critical error when I reinstalled.

    WooCommerce logs show a lot of Firing cron by schedule. Does this look ok? Thank you.

    2024-07-30T00:11:37+00:00Notice Firing cron by schedule… Additional context2024-07-30T00:28:48+00:00Notice Firing cron by schedule… Additional context2024-07-30T00:44:13+00:00Notice Firing cron by schedule… Additional context2024-07-30T00:56:24+00:00Notice Firing cron by schedule… Additional context2024-07-30T01:12:49+00:00Notice Firing cron by schedule… Additional context2024-07-30T01:27:00+00:00Notice Firing cron by schedule… Additional context2024-07-30T01:41:26+00:00Notice Firing cron by schedule… Additional context2024-07-30T01:56:48+00:00Notice Firing cron by schedule… Additional context2024-07-30T02:12:49+00:00Notice Firing cron by schedule… Additional context2024-07-30T02:28:48+00:00Notice Firing cron by schedule… Additional context2024-07-30T02:41:29+00:00Notice Firing cron by schedule… Additional context2024-07-30T02:59:38+00:00Notice Firing cron by schedule… Additional context2024-07-30T03:11:32+00:00Notice Firing cron by schedule… Additional context2024-07-

    Hi @kds26,

    Thanks for providing these details.

    Yes, that all looks okay. There is a cron task running every 15 minutes which polls for changes in the Afterpay merchant account. If there are no changes, no further detail is recorded.

    Could you please provide some more information about the environment where this error is being produced? The Afterpay team have been unsuccessful in reproducing the error in a clean environment, using a fresh installation of WooCommerce. Please provide the following details if possible.

    • Website URL
    • WordPress version
    • WooCommerce version
    • Afterpay Gateway for WooCommerce version (which version are you upgrading from?)

    Thank you.

    Thread Starter kds26

    (@kds26)

    WordPress 6.5.5
    WooCommerce 9.0.2
    Afterpay Gateway for WooCommerce upgrading from 3.8.5 to 3.8.6

    Everything seems to be in working order now, I have not had a critial error since. Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Critial Error when installing update’ is closed to new replies.