php - Login and registering not working on live server -
this link site:
http://210.48.154.18/~econtrax/ezy/index.php
oddly, can't admin's dashboard page after uploaded live server. i've no idea why can't through login , registering function.
i made sure data exists in database. , noticed in network tab pages accessed not working! in console tab error thrown i've no idea on how fix them.
could me fix please. may try login with following:
email: admin@gmail.com password: admin
or may try creating new user!
thanks lot this!
my login script:
/*login user*/ <!--login form submission starts--> $("document").ready(function () { $("#login-user").submit(function () { var data = { "action": "test" }; data = $(this).serialize() + "&" + $.param(data); $.ajax({ type: "post", datatype: "json", url: "login-this-user.php", data: data, success: function (data) { alert(data); console.log(data); (i = 0; < data.length; i++) { console.log(data[i].email); console.log(data[i].activate); console.log(data[i].status); if ($.trim(data[i].status) == '0') { //alert("not verified"); $('.invalid-popup-link').trigger('click'); } else { //alert("verified"); location.replace("admin/dashboard.php"); } } //end }, error: function (jqxhr, textstatus, errorthrown) { console.log(errorthrown); } }); return false; }); }); <!--login form submission ends-->
errors found in console tab f12
syntaxerror: unexpected token e @ object.parse (native) @ e.extend.parsejson (http://210.48.154.18/~econtrax/ezy/js/jquery-1.7.1.min.js:2:11020) @ cc (http://210.48.154.18/~econtrax/ezy/js/jquery-1.7.1.min.js:2:1382) @ w (http://210.48.154.18/~econtrax/ezy/js/jquery-1.7.1.min.js:4:11263) @ xmlhttprequest.f.support.ajax.f.ajaxtransport.send.d (http://210.48.154.18/~econtrax/ezy/js/jquery-1.7.1.min.js:4:17218)
latest error error thrown after replacing jquery version 2.1.4
syntaxerror: unexpected end of input @ object.parse (native) @ n.parsejson (http://210.48.154.18/~econtrax/ezy/js/jquery-2.1.4.min.js:4:5497) @ ub (http://210.48.154.18/~econtrax/ezy/js/jquery-2.1.4.min.js:4:7521) @ x (http://210.48.154.18/~econtrax/ezy/js/jquery-2.1.4.min.js:4:10935) @ xmlhttprequest.n.ajaxtransport.k.cors.a.crossdomain.send.b (http://210.48.154.18/~econtrax/ezy/js/jquery-2.1.4.min.js:4:14765)
i tried replacing
error: function (jqxhr, textstatus, errorthrown) {
with
error: function (errorthrown) {
there no error in console , output
object {readystate: 4, responsetext: " ", status: 200, statustext: "ok"}
Comments
Post a Comment