I use the following code that ends up with"success" but the return data is as follows(see the red text):
(it continues and I truncated, but I beleive you can get the idea). The real data that is beeng echoed from the php is "abc"
"
<br /> <font size='1'><table class='xdebug-error xe-notice' dir='ltr' border='1' cellspacing='0' cellpadding='1'> <tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Notice: Undefined variable: innerLineIndex in C:\AAAA WEB MASTER\webroot\responsive-design-helper\wp-content\plugins\aaa-responsive-design-helper\build_total_css.php on line <i>53</i></th></tr> <tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>...
Few more detaisl:
1.The problems exists nomatter what data being sent to the server.
2. If I echo the data right after the beginning of the server php file, it works fine
3. I have some other ajax calls in the same project that end up right.
Does anyone have any idea whats wrong?
jQuery.ajax({ type: "POST", url: site_url + "/wp-content/plugins/myplugin/build_total_css.php", data:{'data':"any data" }, success: function(data, status) { alert(data); }, error: function(xhr, desc, err) { console.log(xhr); console.log("Details: " + desc + "\nError:" + err); alert('error'); } }); // Ajax Call