Note that there are some explanatory texts on larger screens.

plurals
  1. POJquery, php, http 500 error on production site
    text
    copied!<p>I have a jquery issue, I think it's a jquery issue, but I'm calling a php page with a ajax call. Obviously this is easy, but when I go live with it I keep getting a 500 error. I have tried everything I can think of. But I'm not getting anywhere. I'm sure it's because I'm not a jquery guru, so if you are I could use your brain.</p> <p>keep in mind this works locally but not in production:</p> <pre><code>$('#submit').on('click', function(e){ e.preventDefault(); if($('#signupForm').valid()) { var data = $('#signupForm').serializeObject(); $.ajax({ type: "POST", url: 'http://pathtooweb.com/funcs/signup.php', data: data, success: function(data) { toastr.success(data, "Thank you!"); $("#signupForm").trigger( "reset" ); }, error: function(xhr, ajaxOptions, thrownError) { console.log(xhr.responseText); } }); } }); </code></pre> <p>Here is the actual issue I am getting on console:</p> <pre><code>POST http://pathtooweb.com/funcs/signup.php 500 (Internal Server Error) jquery.js:7845 x.support.cors.e.crossDomain.send jquery.js:7845 x.extend.ajax jquery.js:7301 (anonymous function) pathtooweb.com/:84 x.event.dispatch jquery.js:4676 y.handle </code></pre> <p>UPDATE:</p> <p>This was not a cross domain issue, it was a server error in a way.. come to find out when I was pushing my code up to github then down to my server one of the libraries I was using was not uploading to github, so in turn wasn't being pulled down to the server. Can't really say why there was no .gitignore file. so anyway, thanks for the "suggestions". :)</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload