admin-ajax.php, error 500
-
Hi:
When trying to edit a price rule I get this error in the browser console:
/wp-admin/admin-ajax.php, error 500
What should I do to resolve this error?
Thanks
-
Hi @apolorc
Thank you for using our plugin.
We apologize for the inconvenience.
Please enable debugging on your website and let us know about the error message that you get.
If it is a staging website you can deactivate plugins and only keep WooCommerce and the Discount Rules and Dynamic Pricing for WooCommerce plugin and try again.
Add below lines to your wp-config.php file to enable debugging and debug log.
define( ‘WP_DEBUG’, true );
define( ‘WP_DEBUG_LOG’, true );After enable debugging you can find the error message in the debug.log file. You can read more information here.
After enable debugging on your website, find the debug log file at the wp-content folder and delete its content. Then try to save one of the rules and now you can check the debug.log file to find the error message.
I hope it helps.
Best Regards
-
This reply was modified 1 year, 6 months ago by
AsanaPlugins.
Hi:
In the store I also have this error, nothing appears in the log, if I deactivate the plugin the store page is available again.
Thanks
Hi @apolorc
We apologize for the inconvenience.
Unfortunately, without the error message we can not help you.
You can follow the below steps.
- Deactivate other WooCommerce related plugins.
- Try to save the rule, and if it worked this time activate other plugins one by one to find the plugin that causes this issue.
If the above tip can not help you, then you should provide us the error message to let us check it out.
Also, you can try it on a fresh installed website. You can try it on your local fresh installed website.
We already provided instructions of debugging in WordPress.
If you need a premium support, you can purchase the plugin pro version and contact us here.
I hope it helps.
Best Regards
Hi:
I have this error:
[Tue Sep 05 03:59:01.826281 2023] [security2:error] [pid 2355412:tid 139622826874624] [client 35.209.21.122:55098] [client 35.209.21.122] ModSecurity: Warning. Match of “rx ^(?:(?:\\|[^\”(),\\/:;<=>?![\\x5c\\]{}]+)\\/(?:\\|[^\”(),\\/:;<=>?![\\x5c\\]{}]+))(?:\\s+;\\s+(?:(?:charset\\s+=\\s+(?:\”?(?:iso-8859-15?|windows-1252|utf-8)\\b\”?))|(?:(?:c(?:h(?:a(?:r(?:s(?:e[^t\”(),\\/:;<=>?![\\x5c\\]{}]|[^e\”(),/:;<=>?![\\x5c …” against “REQUEST_HEADERS:Accept” required. [file “/usr/share/modsecurity-crs/rules/REQUEST-920-PROTOCOL-ENFORCEMENT.conf”] [line “1162”] [id “920600”] [msg “Illegal Accept header: charset parameter”] [data “text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2”] [severity “CRITICAL”] [ver “OWASP_CRS/3.3.4”] [tag “application-multi”] [tag “language-multi”] [tag “platform-multi”] [tag “attack-protocol”] [tag “paranoia-level/1”] [tag “OWASP_CRS”] [hostname “ranch-test.com”] [uri “/”] [unique_id “ZPaLZfJ5wJG77Uzs0z3DpgAAAQY”]
[Tue Sep 05 06:42:51.771703 2023] [security2:error] [pid 2772807:tid 139621325334272] [client 34.23.136.225:39627] [client 34.23.136.225] ModSecurity: Warning. String match within “/accept-charset/ /content-encoding/ /proxy/ /lock-token/ /content-range/ /if/” at TX:header_name_accept-charset. [file “/usr/share/modsecurity-crs/rules/REQUEST-920-PROTOCOL-ENFORCEMENT.conf”] [line “1128”] [id “920450”] [msg “HTTP header is restricted by policy (/accept-charset/)”] [data “Restricted header detected: /accept-charset/”] [severity “CRITICAL”] [ver “OWASP_CRS/3.3.4”] [tag “application-multi”] [tag “language-multi”] [tag “platform-multi”] [tag “attack-protocol”] [tag “paranoia-level/1”] [tag “OWASP_CRS”] [tag “capec/1000/210/272”] [tag “PCI/12.1”] [hostname “ranch-test.com”] [uri “/robots.txt”] [unique_id “ZPaxyxwW9aE8J9UyaecwxgAAAFY”]Hi @apolorc
Thank you for the error message.
As indicated in the error message, it is not related to the plugin.
It appears that a security plugin or misconfiguration on your server is causing this issue.
To resolve this problem, we recommend contacting the support team of your security plugin. They should be able to assist you in addressing this issue.
I hope this information proves helpful.
Regards,
Hi:
But when I disable the Discount Rules and Dynamic Pricing for WooCommerce plugin the store site works fine.
Thanks
-
This reply was modified 1 year, 6 months ago by
- The topic ‘admin-ajax.php, error 500’ is closed to new replies.