• Hello,

    For some reason, EDD is generating thousands of errors like this:

    .
    .
    2020-8-15 12:34:18 - Missing nonce when removing an item from the cart. Please read the following for more information: https://easydigitaldownloads.com/development/2018/07/05/important-update-to-ajax-requests-in-easy-digital-downloads-2-9-4
    2020-8-15 12:34:19 - Missing nonce when removing an item from the cart. Please read the following for more information: https://easydigitaldownloads.com/development/2018/07/05/important-update-to-ajax-requests-in-easy-digital-downloads-2-9-4
    2020-8-15 12:34:19 - Missing nonce when removing an item from the cart. Please read the following for more information: https://easydigitaldownloads.com/development/2018/07/05/important-update-to-ajax-requests-in-easy-digital-downloads-2-9-4
    .
    .

    These are filling up the “edd-debug” log file that EDD adds to the WP /uploads/ directory.

    Questions:

    1) The URL provided with each of those warnings is 404 not found:

    https://easydigitaldownloads.com/development/2018/07/05/important-update-to-ajax-requests-in-easy-digital-downloads-2-9-4

    Where can I find the information?

    2) Why are these errors happening? The site does not use any custom code for the EDD stuff, it’s all based on the documentation and EDD shortcodes, etc.

    Thanks for any help.

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Support Mihai Joldis

    (@misulicus)

    Hey @specialk

    Sorry for the issue with the article 404, will get that sorted.
    The issue that you have is caused by old EDD template files in your current theme. Especially that error is caused by the checkout_cart.php template file.
    In version 2.9.4 of EDD we add nonce checks to the Remove from cart links while old versions did not had them.

    To fix that issue you would need to update that template file with the latest one that comes with EDD

    Thread Starter Jeff Starr

    (@specialk)

    Thanks for the reply, @misulicus.

    “The issue that you have is caused by old EDD template files in your current theme. Especially that error is caused by the checkout_cart.php template file”

    No, that’s what I’m trying to communicate here: my theme does not make use of any EDD template files whatsoever. I use the EDD shortcodes only, nothing custom or coded.

    So that’s why wondering how to resolve the issue? Maybe it’s a bug..?

    Plugin Support Mihai Joldis

    (@misulicus)

    @specialk can you post a link to the site to take a look ?
    That notice is logged only when removing an item from the cart. If you hold the mouse over a remove from cart link on your site does the URL have the edd_remove_from_cart_nonce parameter ?

    It should look like this https://edd.local/checkout/?cart_item=0&edd_action=remove&edd_remove_from_cart_nonce=6ae6e05271

    Thread Starter Jeff Starr

    (@specialk)

    Thanks that is very useful information.

    I did a test: added three items to the cart and then copied the URLs of the “Remove from cart” links:

    /checkout/?cart_item=0&edd_action=remove&edd_remove_from_cart_nonce=e8881eecb5
    /checkout/?cart_item=1&edd_action=remove&edd_remove_from_cart_nonce=2afba8eeda
    /checkout/?cart_item=2&edd_action=remove&edd_remove_from_cart_nonce=9968d726b2

    Again the entire checkout page is generated via the EDD [download_checkout] shortcode.

    Plugin Support Mihai Joldis

    (@misulicus)

    @specialk the link from our website is fixed now https://easydigitaldownloads.com/development/2018/07/09/important-update-to-ajax-requests-in-easy-digital-downloads-2-9-4/

    Can you take a look at that and try to check against your website.
    If you still have issues with this send us a support request on our website and we will take a look for you.

    Thread Starter Jeff Starr

    (@specialk)

    This issue is NOT resolved. Please do not mark it as such.

    Thanks for fixing the broken 404 link. It looks like it does not cover the issue reported above.

    Like I said before:

    I did a test: added three items to the cart and then copied the URLs of the “Remove from cart” links:

    /checkout/?cart_item=0&edd_action=remove&edd_remove_from_cart_nonce=e8881eecb5
    /checkout/?cart_item=1&edd_action=remove&edd_remove_from_cart_nonce=2afba8eeda
    /checkout/?cart_item=2&edd_action=remove&edd_remove_from_cart_nonce=9968d726b2

    Again the entire checkout page is generated via the EDD [download_checkout] shortcode.

    Would be great to get some help here in the WP support forum. Thanks.

    Plugin Contributor Pippin Williamson

    (@mordauk)

    @specialk do you have a live site that we can look at where these notices are being generated?

    Thread Starter Jeff Starr

    (@specialk)

    Yes [ link removed ]

    • This reply was modified 3 years, 10 months ago by Jeff Starr. Reason: removes link
    Plugin Contributor Pippin Williamson

    (@mordauk)

    The checkout screen on that site and your other site both look and function totally fine.

    Does your site use the [download_cart] shortcode or the cart widget any where?

    Thread Starter Jeff Starr

    (@specialk)

    “The checkout screen on that site and your other site both look and function totally fine.”

    Yes I know, that is not the issue I am reporting. Please see the original post, above.

    “Does your site use the [download_cart] shortcode or the cart widget any where?”

    No it does not. It does use [download_checkout] as mentioned previously.

    Plugin Contributor Pippin Williamson

    (@mordauk)

    @specialk I understand the issue you’re seeing.

    I asked about the [download_cart] because that short code uses the same Remove From Cart URLs as the [download_checkout] short code. Since I don’t see any reason your checkout screen is triggering those errors, I thought it might be from the cart widget.

    Note that the [download_cart] and “Download Cart” widget are separate from checkout and your site could use both those and the [download_checkout].

    Can you confirm that every time you click “Remove from Cart”, a new instance of the error in the debug log is created?

    Thread Starter Jeff Starr

    (@specialk)

    Thanks for your understanding. It helps to know that the person trying to help actually cares about their product.

    I did some tests and no, a new debug error is not created each time the “Remove from Cart” button is clicked.

    Plugin Contributor Pippin Williamson

    (@mordauk)

    Ok that means it’s coming from somewhere other than the checkout page. That’s the only explanation.

    Can you double check your Appearance > Widgets section for the Download Cart?

    Also, just to confirm: there are zero EDD templates in wp-content/themes/{active theme/edd_templates/? Please double check just in case.

    Thread Starter Jeff Starr

    (@specialk)

    Yes the “Downloads Cart” widget is used on site. Not on every page though, and not on the Checkout page.

    And that is correct, the theme does not use *any* EDD theme templates. There is no /edd_templates/ directory in the theme, and no “edd” named files, etc.

    Plugin Contributor Pippin Williamson

    (@mordauk)

    Can you please do the same test with the Downloads Cart widget as you did with checkout and tell me if new debug log entries are created each time the remove link in that widget is clicked?

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘TONS of errors’ is closed to new replies.