• Resolved benyates1

    (@benyates1)


    I am getting a PHP fatal error with the DataStore.php file in WooCommerce admin and also the core WooCommerce plugin.

    These errors seem to have occurred today and are the suspected reason for a major slow down of both the front and backend screens of our setup.

    PHP Fatal error:  Uncaught Error: Call to a member function get_variation_attributes() on boolean in /home/pellwall/public_html/wp-content/plugins/woocommerce-admin/src/API/Reports/Variations/DataStore.php:201
    Stack trace:
    #0 /home/pellwall/public_html/wp-content/plugins/woocommerce-admin/src/API/Reports/Variations/DataStore.php(328): Automattic\WooCommerce\Admin\API\Reports\Variations\DataStore->include_extended_info(Array, Array)
    #1 /home/pellwall/public_html/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(206): Automattic\WooCommerce\Admin\API\Reports\Variations\DataStore->get_data(Array)
    #2 /home/pellwall/public_html/wp-content/plugins/woocommerce-admin/src/API/Reports/Variations/Query.php(48): WC_Data_Store->__call('get_data', Array)
    #3 /home/pellwall/public_html/wp-content/plugins/woocommerce-admin/src/API/Reports/Variations/Controller.php(73): Automattic\WooCommerce\Admin\API\Reports\Variations\Query->get_data()
    #4 /home/pellwall/public_html/wp-includes/rest-api/class-wp-rest-server.php(946): Automattic\ in /home/pellwall/public_html/wp-content/plugins/woocommerce-admin/src/API/Reports/Variations/DataStore.php on line 201
    [15-Jan-2020 15:33:33 UTC] PHP Fatal error:  Uncaught Error: Call to a member function get_variation_attributes() on boolean in /home/pellwall/public_html/wp-content/plugins/woocommerce-admin/src/API/Reports/Variations/DataStore.php:201
    Stack trace:
    #0 /home/pellwall/public_html/wp-content/plugins/woocommerce-admin/src/API/Reports/Variations/DataStore.php(328): Automattic\WooCommerce\Admin\API\Reports\Variations\DataStore->include_extended_info(Array, Array)
    #1 /home/pellwall/public_html/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(206): Automattic\WooCommerce\Admin\API\Reports\Variations\DataStore->get_data(Array)
    #2 /home/pellwall/public_html/wp-content/plugins/woocommerce-admin/src/API/Reports/Variations/Query.php(48): WC_Data_Store->__call('get_data', Array)
    #3 /home/pellwall/public_html/wp-content/plugins/woocommerce-admin/src/API/Reports/Variations/Controller.php(73): Automattic\WooCommerce\Admin\API\Reports\Variations\Query->get_data()
    #4 /home/pellwall/public_html/wp-includes/rest-api/class-wp-rest-server.php(946): Automattic\ in /home/pellwall/public_html/wp-content/plugins/woocommerce-admin/src/API/Reports/Variations/DataStore.php on line 201
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support John Coy a11n

    (@johndcoy)

    Automattic Happiness Engineer

    Hi @benyates1

    Typically issues like this are caused by a theme or plugin conflict. Try switching back to a default theme like Twenty Twenty and disabling all plugins except for WooCommerce to see if this resolves the issue. Here is a link that better outlines that process:

    https://docs.woocommerce.com/document/woocommerce-self-service-guide/#section-4

    If this fixes the issue, then re-enable each plugin one at a time, then the theme, until you find the one that’s causing the conflict.

    Plugin Support John Coy a11n

    (@johndcoy)

    Automattic Happiness Engineer

    Hi again @benyates1

    Since we didn’t get a reply back within a week we’ll mark this issue as resolved. Feel free to open a new support thread should you have any questions.

    Thanks,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Fatal error – WC-Data_Store’ is closed to new replies.