title: How to solve error 500 in admin-ajax.php WordPress
body: <p>I just try to use Ajax on a website, to load products without refreshing the website. In console I get the following error:</p>
  <pre><code>POST https://mywebsite.com/wp-admin/admin-ajax.php 500    jquery.min.js?ver=3.5.1:2
  </code></pre>
  <p>I try to increase <code>WP_MEMORY_LIMIT</code> and <code>WP_MAX_MEMORY_LIMIT</code> but still I get the same error.</p>
  <p>What is the reason for this error? and How I can fix it?</p>