Error when placing order notes
-
Hello,
May I ask which plugin is being used to generate the parcel labels? WooCommerce MyParcel? Or other one? It is just to clarify. What about if you keep only WooCommerce, the default Storefront theme, and your parcel labels plugin? Please check if the issue persists at this point. If not, there is a possibility that a conflict is affecting the site, you can then switch back the theme, and reactivate gradually the rest of the plugins until you find the cause of the issue. You can find a more detailed explanation on how to do a conflict test here.
Let us know if there are any questions.
It is the https://ww.wp.xz.cn/plugins/montapacking-checkout-woocommerce-extension/ plugin for sending.
Since it is a live site I cannot easily disabled the plugins and change theme but I tried disabling the monta plugin and some other plugins and the problem persists.
I gonna try to set the webshop offline for testing all the other plugins and the theme, will let you know.
Hi @nvomedia ,
That sounds like a plan!
Just to add, if you do not want to test on your live site, you do have the option of using the free Health Check plugin.
This will allow you to disable all plugins and change the theme, while you’re still logged in, without affecting normal visitors to your site 🙂
On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you, while you’re still logged in, without affecting normal visitors to your site.
Hope this helps!
Ah that’s a very nice plugin. I directly installed it and used it for my test.
With only the Health Check and Woocommerce plugin enabled (Default Storefront theme) I get the same error when adding an note to an order in Woocommerce.
POST https://www.webshopurl.nl/wp-admin/admin-ajax.php action "woocommerce_add_order_note" post_id "87711" note "test" note_type "" security "1d4019cfb6" Status 500 Internal Server ErrorHello @nvomedia,
Thank you for sharing the logs!
The cause of the Admin AJAX 500 error is not always clear; it’s most likely related to a plugin or theme conflict.
One thing you can try is flushing the permalinks by navigating toDashboard > Settings > Permalinks.Once in there, click the ‘Save Changes’ button (you don’t need to make actual changes), this should re-write the rules for your site’s .htaccess file.
If that didn’t help, then your next option is a full conflict test as mentioned in this guide.
If you are not comfortable implementing all the changes mentioned in the guide on the live version of your site, you can create a staging environment using WP-STAGING. This will allow you to run tests to pinpoint the problem, and then disable the problematic plugin on your live site.
Hope this helps!
The topic ‘Error when placing order notes’ is closed to new replies.
(@nvomedia)
3 years ago
Hi! I have a strange problem in WooCommerce when adding an note to an order (private or to customer) and manually or via a plugin (eg connection to parcel delivery service).
This is the error I see in the logs:
I found some issues here and on github about the date null error, but those seems to occur on other places. I tried there solutions anyway (downgrade woocommerce, check in database for dates with values 0000-00-00… but it wasn’t helping me.
If I look into the _comments table I can see the added comments. So they are saved. If I add an note to a customer they get the mail too. But I can’t see the comments in the orderadmin, and the spinner will spin forever. The endpoint for that gives an HTTP 500 error but no error message in that response itselfs. In the debug.log I can see the same error as WooCommerce shows in the fatal-error log.
How can I save this? This error is breaking a plugin which generates parcel labels and put the orders on completed. (The plugin adds an comment with some details).
Here is the WooCommerce status report: