{"id":84,"date":"2011-11-14T18:48:54","date_gmt":"2011-11-14T18:48:54","guid":{"rendered":"http:\/\/www.guymerritt.net\/?p=84"},"modified":"2011-11-14T18:53:21","modified_gmt":"2011-11-14T18:53:21","slug":"wordpress-upload-issue-resolved","status":"publish","type":"post","link":"http:\/\/www.webputzer.com\/?p=84","title":{"rendered":"WordPress upload issue &#8211; resolved"},"content":{"rendered":"<p>There&#8217;s a problem, on many servers, with the upload function(s) &#8211; it makes installing themes and plug-ins impossible from the administrative back-end. But, there&#8217;s a simple fix.  Simply open the wp-config.php file and add the following code at the very bottom:<P><br \/>\n<code style=\"background-color: #FAFAE8\";>if(is_admin()) {<br \/>\nadd_filter('filesystem_method', create_function('$a', 'return \"direct\";' ));<br \/>\ndefine( 'FS_CHMOD_DIR', 0751 );<br \/>\n}<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There&#8217;s a problem, on many servers, with the upload function(s) &#8211; it makes installing themes and plug-ins impossible from the administrative back-end. But, there&#8217;s a simple fix. Simply open the wp-config.php file and add the following code at the very bottom: if(is_admin()) { add_filter(&#8216;filesystem_method&#8217;, create_function(&#8216;$a&#8217;, &#8216;return &#8220;direct&#8221;;&#8217; )); define( &#8216;FS_CHMOD_DIR&#8217;, 0751 ); }<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"h5ap_radio_sources":[],"footnotes":""},"categories":[1],"tags":[],"class_list":["post-84","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.webputzer.com\/index.php?rest_route=\/wp\/v2\/posts\/84","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.webputzer.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.webputzer.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.webputzer.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.webputzer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=84"}],"version-history":[{"count":0,"href":"http:\/\/www.webputzer.com\/index.php?rest_route=\/wp\/v2\/posts\/84\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.webputzer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=84"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.webputzer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=84"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.webputzer.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=84"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}