• Resolved ttoaster

    (@ttoaster)


    Hi,

    Updated from Woocommerce 3.9.0 to 3.9.1 and since then my site has been running like a one-legged dog. I have also been getting errors and timeouts. Looks like database updates are happening, but this has been going on for hours and to be honest I am about to remove Woocommerce as I’m fed up with the issues it seems to be causing over the last 6 months!

    Here’s an excerpt from one of the error messages that WordPress sent me:

    Error Details
    =============
    An error of type E_ERROR was caused in line 95 of the file /var/www/shop/wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-download-data-store.php. Error message: Uncaught Exception: Invalid download. in /var/www/shop/wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-download-data-store.php:95
    Stack trace:
    #0 /var/www/shop/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(159): WC_Customer_Download_Data_Store->read(Object(WC_Customer_Download))
    #1 /var/www/shop/wp-content/plugins/woocommerce/includes/class-wc-customer-download.php(66): WC_Data_Store->read(Object(WC_Customer_Download))
    #2 /var/www/shop/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-downloads.php(99): WC_Customer_Download->__construct(‘6057’)
    #3 /var/www/shop/wp-includes/class-wp-hook.php(288): WC_Meta_Box_Order_Downloads::save(118996, Object(WP_Post))
    #4 /var/www/shop/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array)
    #5 /var/www/shop/wp-includes/plugin.php(478): WP_Hook->do_action(Array)

    Can you please fix this bug ASAP as it is costing me customers right now!

Viewing 9 replies - 1 through 9 (of 9 total)
  • I suggest you download old 3.9.0 and replace the new version. I do not update when every version is released because there are always bugs better to wait a few weeks and read forum to see if others are having issues before updating your site. Also always to a database backup before updating in case something breaks.

    Thread Starter ttoaster

    (@ttoaster)

    I have a backup of the database from before the updated version was installed, but that is not the problem. The problem is that Woocommerce is getting to be more and more of a liability and the level of QA is getting worse…

    did you try increasing memory limit in wp?

    woo recommends min of 128M allocated to wordpress:
    https://docs.woocommerce.com/document/server-requirements/

    how to increase memory for wordpress
    https://docs.woocommerce.com/document/increasing-the-wordpress-memory-limit/

    just throwing out ideas here

    edit to enable followups

    Hi @ttoaster,

    Were you able to revert back to 3.9? If you were let us know if that resolved items.

    Looking at the logs provided, is this a multisite that is experiencing the issue? If it is, we have seen this issue before and have patched fixes for it. Please let me know!

    Thread Starter ttoaster

    (@ttoaster)

    Hi Mike,

    No, I did not downgrade to 3.9, and no it isn’t a Multisite installation, I am still seeing far too much CPU being used since upgrading from 3.9. I am now using 3.9.2 and still seeing far too high CPU and disk activity (I’m assuming it is SQL queries being run in the background by Woocommerce?).

    If you have a fix for this, it would be most welcome. Shame it has taken you over 3 whole weeks to respond!

    We are also seeing this error on our site when an order is placed for downloadable products, it is throwing the same backtrace with current versions of all software.

    I contacted support and was told it couldn’t be a WooCommerce issue because they have no record of a similar issue in their database so therefore it has to be a site specific or third-party plugin causing it, even though the backtrace is only showing Woo code.

    Sounds like you have no resolution, and we certainly aren’t getting any. I’m trying to walk through and debug the Woo code now to figure out what is going on.

    BTW: How was this marked “Resolved” when there is no resolution here?

    • This reply was modified 4 years, 7 months ago by scmsteve.

    A bit more on this, it seems it may be related to trying to determine previous download counts to put in the meta box, and looking through the wp_wc_download_log table I do see entries for the download permssion_id that is in the backtrace, but yet there are no entries in the wp_woocommerce_downloadable_product_permissions table which is probably what is causing the error to be thrown.

    So, how did downloads get created, and logged as being downloaded, and then removed from the download permissions table for a given order? Nothing is reflected on the order that anything was changed.

    Even more, this seems to be happening when our shipper is trying to mark the order ‘complete’. Interesting, and I may not be able to find out why, but they attempted this twice:

    Order status changed from Processing to Completed.
    April 29, 2020 at 12:59 pm

    Order status changed from Processing to Completed.
    April 29, 2020 at 12:48 pm

    Something during the process of marking the order ‘complete’ is triggering the updating of the download meta box which is hitting the error trying to create a download count entry for something in the download log table but not existing in the download permissions table?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Woocommerce 3.9.1 Errors!’ is closed to new replies.