Title: admin-ajax.php, error 500
Last modified: August 29, 2023

---

# admin-ajax.php, error 500

 *  Resolved [apolorc](https://wordpress.org/support/users/apolorc/)
 * (@apolorc)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/admin-ajax-php-error-500-2/)
 * 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

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [AsanaPlugins](https://wordpress.org/support/users/asanaplugins/)
 * (@asanaplugins)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/admin-ajax-php-error-500-2/#post-17011959)
 * Hi [@apolorc](https://wordpress.org/support/users/apolorc/)
 * Thank you for using our plugin.
 * We apologize for the inconvenience.
 * Please [enable debugging on your website](https://wordpress.org/support/article/debugging-in-wordpress/)
   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](https://wordpress.org/support/article/debugging-in-wordpress/).
 * 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 2 years, 8 months ago by [AsanaPlugins](https://wordpress.org/support/users/asanaplugins/).
 *  Thread Starter [apolorc](https://wordpress.org/support/users/apolorc/)
 * (@apolorc)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/admin-ajax-php-error-500-2/#post-17023927)
 * 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
 *  Plugin Author [AsanaPlugins](https://wordpress.org/support/users/asanaplugins/)
 * (@asanaplugins)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/admin-ajax-php-error-500-2/#post-17025352)
 * Hi [@apolorc](https://wordpress.org/support/users/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](https://www.asanaplugins.com/product/woocommerce-dynamic-pricing-and-discounts-plugin/)
   and [contact us here](https://www.asanaplugins.com/support/).
 * I hope it helps.
 * Best Regards
 *  Thread Starter [apolorc](https://wordpress.org/support/users/apolorc/)
 * (@apolorc)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/admin-ajax-php-error-500-2/#post-17026657)
 * 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”]
 *  Plugin Author [AsanaPlugins](https://wordpress.org/support/users/asanaplugins/)
 * (@asanaplugins)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/admin-ajax-php-error-500-2/#post-17027058)
 * Hi [@apolorc](https://wordpress.org/support/users/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,
 *  Thread Starter [apolorc](https://wordpress.org/support/users/apolorc/)
 * (@apolorc)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/admin-ajax-php-error-500-2/#post-17027454)
 * Hi:
 * But when I disable the Discount Rules and Dynamic Pricing for WooCommerce plugin
   the store site works fine.
 * Thanks

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘admin-ajax.php, error 500’ is closed to new replies.

 * ![](https://ps.w.org/easy-woocommerce-discounts/assets/icon-256x256.jpg?rev=2788194)
 * [Discount Rules and Dynamic Pricing for WooCommerce](https://wordpress.org/plugins/easy-woocommerce-discounts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-woocommerce-discounts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-woocommerce-discounts/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-woocommerce-discounts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-woocommerce-discounts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-woocommerce-discounts/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [apolorc](https://wordpress.org/support/users/apolorc/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/admin-ajax-php-error-500-2/#post-17027454)
 * Status: resolved