{"id":202,"date":"2010-03-31T19:31:49","date_gmt":"2010-04-01T02:31:49","guid":{"rendered":"http:\/\/blog.portnumber53.com\/?p=202"},"modified":"2010-03-31T19:31:49","modified_gmt":"2010-04-01T02:31:49","slug":"fix-wordpress-upload-error-http-error","status":"publish","type":"post","link":"https:\/\/blog.portnumber53.com\/index.php\/2010\/03\/31\/fix-wordpress-upload-error-http-error\/","title":{"rendered":"Fix WordPress upload error \u2013 HTTP error"},"content":{"rendered":"<p>The inability to upload files in WordPress first showed up in version 2.5. The solution for me was to edit the .htaccess file in the root directory of my webserver (the directory where WordPress is installed). Add the following to the the <strong>.htaccess<\/strong> file after the &#8220;END WordPress&#8221;:<\/p>\n<pre class=\"brush:plain\">&lt;IfModule mod_security.c&gt;\n&lt;Files async-upload.php&gt;\nSecFilterEngine Off\nSecFilterScanPOST Off\n&lt;\/Files&gt;\n&lt;\/IfModule&gt;<\/pre>\n<p>If you are having the problem of your .htaccess file losing its changes, you have most likely put something inside the WordPress block of the .htaccess file. Keep any custom changes outside of that block or they will be overwritten.<\/p>\n<p>It seems that this problem still occurs in WordPress 2.6, but the error message is slightly different \u2014 &#8220;An error occurred in the upload. Please try again later.&#8221;<\/p>\n<p>This fix is still necessary in newer versions of WordPress.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>how to fix errors like: &#8220;ALERT &#8211; script tried to increase memory_limit to 268435456 bytes which is above the allowed value (attacker&#8221; <a class=\"continue-reading-link\" href=\"https:\/\/blog.portnumber53.com\/index.php\/2010\/03\/31\/fix-wordpress-upload-error-http-error\/\"> Continue reading <span class=\"meta-nav\">&rarr; <\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[],"class_list":["post-202","post","type-post","status-publish","format-standard","hentry","category-sem-categoria"],"_links":{"self":[{"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/posts\/202","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/comments?post=202"}],"version-history":[{"count":0,"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/posts\/202\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/media?parent=202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/categories?post=202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/tags?post=202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}