PHP open_basedir Error Updating WordPress Plugins

WordPress Plugin Update error

WordPress Plugin Update error

I’ve been religiously using the recently introduced Plugin Update within WordPress to keep all my installed WordPress plugins up to date, a recent change in my server environment broke this and every time I attempted to update a plugin a stream of PHP would come up!

Below I provide my solution, a single line PHP snippet to be added to the wp-config.php file within WordPress’s root directory.

define('WP_TEMP_DIR','/tmp');

This PHP snippet may need to be adapted to the server configuration of your web host. Try it, it worked for me!

Leave a Comment

Before you comment - Do you have a support request? If so, this is not the right place to post it. Please submit support requests for Premium Plugins on the Support page and in the community Support Forums for free Plugins.

Your email address will not be published. Required fields are marked *