Skip to content

Crash when woocommerce is supposed to be active but not present #1

@magicoli

Description

@magicoli

Test for woocommerce does not take in account the absence of it due to a bug, so it makes the site crash when assuming wc functions are present.

The woocommerce corruption my be caused by multipass, stil assuming wc is available while it's being updated, and making the site crash before the update is properly completed.

Temporary workaround : replace the broken woocommerce plugin by a fresh version downloaded from the website.

Proper fix: make sure all needed functions are available before using wc functionalities.

Warning: file_get_contents(wp-content/plugins/woocommerce/woocommerce.php): failed to open stream: No such file or directory in wp-includes/functions.php on line 6805
PHP Fatal error:  Uncaught Error: Call to undefined function wc_get_page_id() in wp-content/plugins/multipass/includes/modules/class-mltp-woocommerce-payment.php:516


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions