Did you get error when upgrading or installing plugin from built in wordpress core update engine? Certain webhosts like byethost doesn’t support inbuilt feature of updating plugins from wordpress admin panel.
You get errors like: “unable to locate wp-content directory” , “unable to locate plugins directory” .
What to do in such case?
Don’t worry, there is an easy workaround for it.Just add the following lines at the end of your wp-config.php file located in the wordpress blog directory.
/** Override default file permissions */ if(is_admin()) { add_filter('filesystem_method', create_function('$a', 'return "direct";' )); define( 'FS_CHMOD_DIR', 0751 ); }
With this, you can easily update and install new plugins and themes from wordpress admin panel(dashboard) without entering FTP login info and hence eliminating the above-mentioned error.
Let me know if you still face any problem!
If you enjoyed this post, make sure you subscribe to my RSS feed!No related posts.

By: On: November 9th, 2009 —


Premium article, amazing looking weblog, added it to my favorites.