• Resolved petitsdom

    (@petitsdom)


    Hello,

    I just updated the woocommerce payment plugin to version 7.8.0 and I’m getting a fatal error (“The extension could not be activated because it triggered a fatal error.”). I deactivated the plugin to get my wordpress working again.

    Error logs:

    NOTICE: PHP message: PHP Warning:  require_once(/var/www/html/wp-content/plugins/woocommerce-payments/vendor/jetpack-autoloader/class-autoloader.php): Failed to open stream: No such file or directory in /var/www/html/wp-content/plugins/woocommerce-payments/vendor/autoload_packages.php on line 12
    NOTICE: PHP message: PHP Fatal error: Uncaught Error: Failed opening required '/var/www/html/wp-content/plugins/woocommerce-payments/vendor/jetpack-autoloader/class-autoloader.php' (include_path='.:/usr/local/lib/php') in /var/www/html/wp-content/plugins/woocommerce-payments/vendor/autoload_packages.php:12
    Stack trace:
    #0 /var/www/html/wp-content/plugins/woocommerce-payments/woocommerce-payments.php(27): require_once()
    #1 /var/www/html/wp-admin/includes/plugin.php(2389): include_once('/var/www/html/w...')
    #2 /var/www/html/wp-admin/includes/plugin.php(675): plugin_sandbox_scrape('woocommerce-pay...')
    #3 /var/www/html/wp-admin/plugins.php(60): activate_plugin('woocommerce-pay...', 'https://www.pet...', false)
    #4 {main}
    thrown in /var/www/html/wp-content/plugins/woocommerce-payments/vendor/autoload_packages.php on line 12

    All my plugins, theme, and wordpress site are up to date. WordPress is version 6.5.4 and PHP 8.3.

    Could you tell me what to do ?

    Thanks & Regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hi there @petitsdom,

    Thanks for reaching out.

    I understand you’re facing an error messages after updating the WooPayments plugin.

    Looking at the shared error message, it appears that the plugin is unable to find the ‘class-autoloader.php’ file.

    This could be due to a failed update or a conflict with another plugin. To rule out a failed plugin update, please make a full site backup then uninstall and delete the WooPayments plugin then head over to installing it a fresh to see if the issue persists.

    Should the issue persist. Please try running a conflict test as described in this guide.

    Let us know how it goes.

    Thread Starter petitsdom

    (@petitsdom)

    Hello,

    Thanks for your quick reply.

    I tried to uninstall and install it again but I also get a fatal error but with a different stacktrace :

    NOTICE: PHP message: PHP Fatal error:  Uncaught Error: Call to a member function get_page_permastruct() on null in /var/www/html/wp-includes/link-template.php:435
    wordpress | Stack trace:
    wordpress | #0 /var/www/html/wp-includes/link-template.php(397): _get_page_link(Object(WP_Post), false, false)
    wordpress | #1 /var/www/html/wp-includes/link-template.php(197): get_page_link(Object(WP_Post), false, false)
    wordpress | #2 /var/www/html/wp-content/plugins/woocommerce-payments/includes/class-compatibility-service.php(81): get_permalink(Object(WP_Post))
    wordpress | #3 /var/www/html/wp-content/plugins/woocommerce-payments/includes/class-compatibility-service.php(53): WCPay\Compatibility_Service->get_compatibility_data()
    wordpress | #4 /var/www/html/wp-includes/class-wp-hook.php(324): WCPay\Compatibility_Service->update_compatibility_data(Array)
    wordpress | #5 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    wordpress | #6 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    wordpress | #7 /var/www/html/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-account.php(1685): do_action('woocommerce_pay...', Array)
    wordpress | #8 /var/www/html/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-account.php(185): WC_Payments_Account->get_cached_account_data()
    wordpress | #9 /var/www/html/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-account.php(172): WC_Payments_Account->try_is_stripe_connected()
    wordpress | #10 /var/www/html/wp-content/plugins/woocommerce-payments/includes/multi-currency/MultiCurrency.php(1257): WC_Payments_Account->is_stripe_connected()
    wordpress | #11 /var/www/html/wp-content/plugins/woocommerce-payments/includes/multi-currency/MultiCurrency.php(636): WCPay\MultiCurrency\MultiCurrency->get_account_available_currencies()
    wordpress | #12 /var/www/html/wp-content/plugins/woocommerce-payments/includes/multi-currency/MultiCurrency.php(274): WCPay\MultiCurrency\MultiCurrency->initialize_available_currencies()
    wordpress | #13 /var/www/html/wp-content/plugins/woocommerce-payments/includes/multi-currency/MultiCurrency.php(745): WCPay\MultiCurrency\MultiCurrency->init()
    wordpress | #14 /var/www/html/wp-content/plugins/easy-woocommerce-discounts/includes/compatibility/class-wccs-compatibility-wc-payments.php(25): WCPay\MultiCurrency\MultiCurrency->get_enabled_currencies()
    wordpress | #15 /var/www/html/wp-content/plugins/easy-woocommerce-discounts/includes/class-wccs-compatibilities.php(130): WCCS_Compatibility_WC_Payments->init()
    wordpress | #16 /var/www/html/wp-content/plugins/easy-woocommerce-discounts/includes/class-wc-conditions.php(146): WCCS_Compatibilities->init()
    wordpress | #17 /var/www/html/wp-content/plugins/easy-woocommerce-discounts/easy-woocommerce-discounts.php(72): WC_Conditions::instance()
    wordpress | #18 /var/www/html/wp-content/plugins/easy-woocommerce-discounts/easy-woocommerce-discounts.php(92): WCCS()
    wordpress | #19 /var/www/html/wp-includes/class-wp-hook.php(324): run_wc_conditions('')
    wordpress | #20 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    wordpress | #21 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    wordpress | #22 /var/www/html/wp-settings.php(550): do_action('plugins_loaded')
    wordpress | #23 /var/www/html/wp-config.php(95): require_once('/var/www/html/w...')
    wordpress | #24 /var/www/html/wp-load.php(50): require_once('/var/www/html/w...')
    wordpress | #25 /var/www/html/wp-admin/admin.php(34): require_once('/var/www/html/w...')
    wordpress | #26 /var/www/html/wp-admin/plugins.php(10): require_once('/var/www/html/w...')
    wordpress | #27 {main}
    wordpress | thrown in /var/www/html/wp-includes/link-template.php on line 435

    Do you know what it coud be ?

    I do not have a stage site so it is difficult for me to deactivate all plugins and activate them one by one.

    Thanks & Regards

    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello petitsdom

    Thank you for your reply.

    Could you confirm whether the Stacktrace changes every time you refresh the website or only when you reinstall the plugin?

    To help you further, I’d like to review your site’s System Status Report.
    You can find it via WooCommerce > Status.
    Select Get system report and then Copy for support.

    Once you’ve done that, you can paste the text in https://gist.github.com
    After that, you can paste the Gist link here in your reply.

    Looking forward to your response. ??

    Best regards.

    Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hi @petitsdom,

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. Hopefully, you were able to find a solution to your problem!

    If you have further questions, please feel free to open a new topic.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.