Title: Error in Adding image to Post
Last modified: April 23, 2018

---

# Error in Adding image to Post

 *  [powerusers](https://wordpress.org/support/users/powerusers/)
 * (@powerusers)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/error-in-adding-image-to-post/)
 * Hi,
 * I am getting following error in Developer Tools Console while adding image using
   Add Media button in post:
    POST ~/wp-admin/admin-ajax.php 404 ()
 * when I clicked on the error, it is showing “failed to load resource: the server
   responded with a status of 404 ()” error in load-scripts.sh file
 * `g.send(b.hasContent&&b.data||null),c=function(a,d){var f,i,j;if(c&&(d||4===g.
   readyState))if(delete fc[h],c=void 0,g.onreadystatechange=n.noop,d)4!==g.readyState&&
   g.abort();else{j={},f=g.status,"string"==typeof g.responseText&&(j.text=g.responseText);
   try{i=g.statusText}catch(k){i=""}f||!b.isLocal||b.crossDomain?1223===f&&(f=204):
   f=j.text?200:404}j&&e(f,i,j,g.getAllResponseHeaders())},b.async?4===g.readyState?
   a.setTimeout(c):g.onreadystatechange=fc[h]=c:c()},abort:function(){c&&c(void 
   0,!0)}}}});function hc(){try{return new a.XMLHttpRequest}catch(b){}}function 
   ic(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}n.ajaxSetup({
   accepts:{script:"text/javascript, application/javascript, application/ecmascript,
   application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"
   text script":function(a){return n.globalEval(a),a}}}),n.ajaxPrefilter("script",
   function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global
   =!1)}),n.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=d.head|
   |n("head")[0]||d.documentElement;return{send:function(e,f){b=d.createElement("
   script"),b.async=!0,a.scriptCharset&&(b.charset=a.scriptCharset),b.src=a.url,
   b.onload=b.onreadystatechange=function(a,c){(c||!b.readyState||/loaded|complete/.
   test(b.readyState))&&(b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.
   removeChild(b),b=null,c||f(200,"success"))},c.insertBefore(b,c.firstChild)},abort:
   function(){b&&b.onload(void 0,!0)}}}});var jc=[],kc=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({
   jsonp:"callback",jsonpCallback:function(){var a=jc.pop()||n.expando+"_"+Eb++;
   return this[a]=!0,a}}),n.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,
   h=b.jsonp!==!1&&(kc.test(b.url)?"url":"string"==typeof b.data&&0===(b.contentType
   ||"").indexOf("application/x-www-form-urlencoded")&&kc.test(b.data)&&"data");
   return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=n.isFunction(b.jsonpCallback)?
   b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(kc,"$1"+e):b.jsonp!==!1&&(
   b.url+=(Fb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){
   return g||n.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]
   =function(){g=arguments},d.always(function(){void 0===f?n(a).removeProp(e):a[
   e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,jc.push(e)),g&&n.isFunction(f)&&f(
   g[0]),g=f=void 0}),"script"):void 0}),n.parseHTML=function(a,b,c){if(!a||"string"!
   =typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||d;var e=x.exec(a),
   f=!c&&[];return e?[b.createElement(e[1])]:(e=ja([a],b,f),f&&f.length&&n(f).remove(),
   n.merge([],e.childNodes))};var lc=n.fn.load;n.fn.load=function(a,b,c){if("string"!
   =typeof a&&lc)return lc.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");
   return h>-1&&(d=n.trim(a.slice(h,a.length)),a=a.slice(0,h)),n.isFunction(b)?(
   c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&n.ajax({url:a,type:
   e||"GET",dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?n("<div
   >").append(n.parseHTML(a)).find(d):a)}).always(c&&function(a,b){g.each(function(){
   c.apply(this,f||[a.responseText,b,a])})}),this},n.each(["ajaxStart","ajaxStop","
   ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){n.fn[b]=function(
   a){return this.on(b,a)}}),n.expr.filters.animated=function(a){return n.grep(n.
   timers,function(b){return a===b.elem}).length};function mc(a){return n.isWindow(
   a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}n.offset={setOffset:function(
   a,b,c){var d,e,f,g,h,i,j,k=n.css(a,"position"),l=n(a),m={};"static"===k&&(a.style.
   position="relative"),h=l.offset(),f=n.css(a,"top"),i=n.css(a,"left"),j=("absolute"
   ===k||"fixed"===k)&&n.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.
   left):(g=parseFloat(f)||0,e=parseFloat(i)||0),n.isFunction(b)&&(b=b.call(a,c,
   n.extend({},h))),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-
   h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},n.fn.extend({offset:function(
   a){if(arguments.length)return void 0===a?this:this.each(function(b){n.offset.
   setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;
   if(f)return b=f.documentElement,n.contains(b,e)?("undefined"!=typeof e.getBoundingClientRect&&(
   d=e.getBoundingClientRect()),c=mc(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(
   b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):
   d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"
   fixed"===n.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),
   b=this.offset(),n.nodeName(a[0],"html")||(c=a.offset()),c.top+=n.css(a[0],"borderTopWidth",!
   0),c.left+=n.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-n.css(d,"marginTop",!
   0),left:b.left-c.left-n.css(d,"marginLeft",!0)}}},offsetParent:function(){return
   this.map(function(){var a=this.offsetParent;while(a&&!n.nodeName(a,"html")&&"
   static"===n.css(a,"position"))a=a.offsetParent;return a||Qa})}}),n.each({scrollLeft:"
   pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);n.fn[a]
   =function(d){return Y(this,function(a,d,e){var f=mc(a);return void 0===e?f?b 
   in f?f[b]:f.document.documentElement[d]:a[d]:void(f?f.scrollTo(c?n(f).scrollLeft():
   e,c?e:n(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),n.each(["top","
   left"],function(a,b){n.cssHooks[b]=Ua(l.pixelPosition,function(a,c){return c?(
   c=Sa(a,b),Oa.test(c)?n(a).position()[b]+"px":c):void 0})}),n.each({Height:"height",
   Width:"width"},function(a,b){n.each({`
 * I also tried adding image in Text mode, the image gets added but when I click
   on Save Draft or Publish it gives 404 Page not found error.
 * Kindly Help!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Kartik Shukla](https://wordpress.org/support/users/kartiks16/)
 * (@kartiks16)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/error-in-adding-image-to-post/#post-10212366)
 * Hello [@powerusers](https://wordpress.org/support/users/powerusers/)
 * Can you please try to disable the plugins and activate the default WordPress 
   theme, if that works.
 * If it works, try to enable/activate the plugin one by one to see which plugin
   is causing the issue.
 * Thanks
 *  Thread Starter [powerusers](https://wordpress.org/support/users/powerusers/)
 * (@powerusers)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/error-in-adding-image-to-post/#post-10214486)
 * Thanks for reply [@kartiks16](https://wordpress.org/support/users/kartiks16/),
 * Tried resetting theme, then deactivated plugins, and also renamed plugin folder
   names but still not working. Getting same error..
 * POST …/wp-admin/admin-ajax.php 404 ()
    load-scripts.php?c=0&load[]=jquery-core,
   jquery-migrate,utils,moxiejs,plupload&ver=4.9.5:4
 * One more thing to add, I am getting same error on my other blog also.. there 
   I am trying to add `<pre>` tag.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error in Adding image to Post’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [powerusers](https://wordpress.org/support/users/powerusers/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/error-in-adding-image-to-post/#post-10214486)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
