title: Why am I getting a 500 internal server error with admin-ajax.php
body: <p>I have multiple plugins that perform an ajax call, they run fine. However, the one I'm working on gives a "500 (internal server error)" on admin-ajax.php.</p>
  
  <p>jquery:</p>
  
  <pre><code>$.post(MyAjax.ajaxurl,{action: 'my_action',animal:animalInfo},function(data){
              .....
          },'json');
  </code></pre>
  
  <p>php:</p>
  
  <pre><code>wp_enqueue_script('Namejs_user',plugins_url('/js/Namejs_user.js', __FILE__),'','',true);
          wp_localize_script( 'Namejs_user', 'myAjax', array( 'ajaxurl' =&gt; admin_url( 'admin-ajax.php' )));
  </code></pre>
  
  <p>I've changed variable names and I'm using "..." so I don't bore you with what I'm doing with the data but this is basically what's going on. Everytime the ajax call runs I get the 500 error.</p>
  
  <p>Any ideas?</p>