• Where a virtual/downloadable product is ordered,the confirmation email contains no link to the product that is bought.

    Error since updating to Woocommerce 3.2.2

    The order email mentions the product but the quantity is 0.

    What can be wrong?

    Ben Linders

    The page I need help with: [log in to see the link]

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Contributor Mike Jolley

    (@mikejolley)

    Make sure template files are up to date. Downloads are shown in emails to the customer, after processing/completed status, in the new table here:

    https://www.dropbox.com/s/dcr8gym1vls5tfe/MailCatcher%20%2827%29%202017-11-02%2017-59-14.png?dl=0

    Thread Starter BenLinders

    (@benlinders)

    I adapted two templates using override, but the ones in my theme directory have the same version number as the ones in the plugin directory. I’m assuming that the plugin ones are automatically updated with plugin release, so they should be up to date, right?

    I had orders which didn’t have download links but also one which went ok and had all the links. So no consistent behavior.

    There are woocommerce related errors in my log, unsure if they are related:

    PHP Fatal error: Call to a member function get_sku() on boolean in xxx/plugins/woocommerce-google-analytics-integration/includes/class-wc-google-analytics-js.php on line 379

    The The “woocommerce_add_order_item_meta” hook uses out of date data structures and function is deprecated since version 3.2.2. Replace with woocommerce_new_order_item.

    WordPress database error Deadlock found when trying to get lock; try restarting transaction for query DELETE FROM wp_nxs_log WHERE id <=(SELECT id FROM (SELECT id FROM wp_nxs_log ORDER BY id DESC LIMIT 1 OFFSET 250) foo) …

    Any help is appreciated.

    Ben Linders

    Plugin Contributor Mike Jolley

    (@mikejolley)

    I adapted two templates using override, but the ones in my theme directory have the same version number as the ones in the plugin directory. I’m assuming that the plugin ones are automatically updated with plugin release, so they should be up to date, right?

    Depends if the person who changed them simply upped the version, or actually updated the template to support this.

    I don’t know what wp_nxs_log is. It’s not part of WC.

    The deprecated notice is just a warning telling you a plugin has not been updated to use latest methods.

    The fatal could indicate lac of error checking in that google analytics extension (i.e. to see if it really has a product object before using get_sku methods).

    None of these appear related at first glance.

    Thread Starter BenLinders

    (@benlinders)

    I only updated the template content, not the version number so that I knew which one I used as a base.

    Is there any traceability that I can do on the order that has no download links. Any details that I can look at to see what happened or why this might have gone wrong? Log files to check?

    I just updated to woocommerce to version 3.2.3 Checked the release info but saw nothing that might be related to the “no links” problem that I have.

    Ben Linders

    Thread Starter BenLinders

    (@benlinders)

    Still having this problem. Sometimes quantity is 0 even though the customer has ordered a product. Then on a next order by the same customer, the quantity is 1 and a download link is included.

    Help is appreciated!

    Is it possible to roll back to a previous version of woocommmerce? Or has the database been updated?

    Do you have any errors in the php log (thats a different from the WP log) the time these emails are being sent? Do you have WP Mailing Log plugin installed? Have you tried testing orders with plugins, generating the errors you’ve posted above, disabled?

    Thread Starter BenLinders

    (@benlinders)

    @superkot:

    I don’t have WP Mailing log. No other errors.

    I don’t know which plugin uses the “woocommerce_add_order_item_meta” hook as the name of the plugin is not mentioned.

    I didn’t disable any plugins yet as I got the impression that the errors are not related.

    One of my customers reported getting a blank page after the checkout. The URL was …/checkout/order_received/… I googled for this but found nothing that helps me.

    Any help is appreciated!

    The first one is obvious:
    PHP Fatal error: Call to a member function get_sku() on boolean in xxx/plugins/woocommerce-google-analytics-integration/includes/class-wc-google-analytics-js.php on line 379

    The other one is Nextscripts plugin, which as google tells me you know about.

    Thread Starter BenLinders

    (@benlinders)

    Yes,those two plugins I know.

    The one I don’t know is:

    The The “woocommerce_add_order_item_meta” hook uses out of date data structures and function is deprecated since version 3.2.2. Replace with woocommerce_new_order_item.

    which plugin is this?

    Normally debug log shows the script file name and line number… Try with deactivating these two first.

    • This reply was modified 7 years, 4 months ago by superkot.
    Thread Starter BenLinders

    (@benlinders)

    I have deactivated them, now have to wait if it makes a difference

    I can’t test this myself as it works ok when I order stuff. Also with customers sometimes it goes well, and sometimes it doesn’t.

    Ben Linders

    I suggest you install WP Mail Logging as it allows you to keep track on outgoing emails and see immediately if something is wrong before you get feedback from the customer.

    Thread Starter BenLinders

    (@benlinders)

    WP Mail Logging plugin has disappeared from WordPress.

    Is there a replacement?

    And, is it save to log mail? Is the logging file protected?

    Ben Linders

    Thread Starter BenLinders

    (@benlinders)

    @mikejolley I got an error today which looks to be a plugin conflict:

    PHP Fatal error: Call to a member function get_id() on boolean in /home/public/sites/www.benlinders.com/wp-content/plugins/enhanced-e-commerce-for-woocommerce-store/includes/class-wc-enhanced-ecommerce-google-analytics-integration.php on line 371

    I disabled this plugin, my feeling is that it somehow conflicts with the latest version of Woocommerce.

    Mike, can you shine some light on this?

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Order without download links’ is closed to new replies.