WP-CLI show me “Warning: Could not create directory.”
-
Hello,
I used below command to update WordPress plug-ins:
# /usr/local/bin/wp plugin update --all --path=/var/www/wordpress
But it show me below error:Warning: chmod() has been disabled for security reasons in /var/www/wordpress/wp-admin/includes/class-wp-filesystem-direct.php on line 173 https://downloads.wordpress.org/plugin/fv-wordpress-flowplayer.zip... Using cached file '/root/.wp-cli/cache/plugin/fv-wordpress-flowplayer-7.4.40.727.zip'... Warning: Could not create directory. https://downloads.wordpress.org/plugin/recent-posts-widget-extended.1.0.0.zip... Using cached file '/root/.wp-cli/cache/plugin/recent-posts-widget-extended-1.0.0.zip'... Warning: Could not create directory. https://downloads.wordpress.org/plugin/w3-total-cache.2.1.1.zip... Using cached file '/root/.wp-cli/cache/plugin/w3-total-cache-2.1.1.zip'... Warning: Could not create directory. Error: No plugins updated. +------------------------------+-------------+-------------+--------+ | name | old_version | new_version | status | +------------------------------+-------------+-------------+--------+ | fv-wordpress-flowplayer | 7.4.39.727 | 7.4.40.727 | Error | | recent-posts-widget-extended | 0.9.9.7 | 1.0.0 | Error | | w3-total-cache | 2.1.0 | 2.1.1 | Error | +------------------------------+-------------+-------------+--------+
I opened “wp-config.php” file and added below line to it:
define('FS_METHOD','direct');
But problem not solved.
How can I solve it?Thank you.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘WP-CLI show me “Warning: Could not create directory.”’ is closed to new replies.