php – Cannot install plugins or themes on new WordPress installation at Cloudways
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.
Anybody can ask a question
Anybody can answer
The best answers are voted up and rise to the top
Asked
Viewed
2 times
Brand new WP application on Cloudways hosting. Their tech support unable to resolve. Updating via backend or WP CLI results in error. Directory created but files not copied into it. Seems to be a PHP error.
Installing Media Cleaner – Clean & Optimize Space (6.4.5)
Downloading installation package from https://downloads.wordpress.org/plugin/media-cleaner.6.4.5.zip...
Unpacking the package...
Installing the plugin...
PHP Fatal error: Uncaught Error: Call to undefined function fcp_copy_dir() in /home/path/to/my/wordpress/app/public_html/wp-admin/includes/fi
le.php:1896
Stack trace:
#0 /home/path/to/my/wordpress/app/public_html/wp-admin/includes/class-wp-upgrader.php(596): copy_dir()
#1 /home/path/to/my/wordpress/app/public_html/wp-admin/includes/class-wp-upgrader.php(798): WP_Upgrader->install_package()
#2 /home/path/to/my/wordpress/app/public_html/wp-admin/includes/class-plugin-upgrader.php(137): WP_Upgrader->run()
#3 phar:///usr/local/bin/wp/vendor/wp-cli/extension-command/src/Plugin_Command.php(552): Plugin_Upgrader->install()
#4 phar:///usr/local/bin/wp/vendor/wp-cli/extension-command/src/WP_CLI/CommandWithUpgrade.php(209): Plugin_Command->install_from_repo()
#5 phar:///usr/local/bin/wp/vendor/wp-cli/extension-command/src/Plugin_Command.php(809): WP_CLI\CommandWithUpgrade->install()
#6 [internal function]: Plugin_Command->install()
#7 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Di in /home/path/to/my/wordpress/app/public_html/wp-admin/includes/file.php on lin
e 1896
Fatal error: Uncaught Error: Call to undefined function fcp_copy_dir() in /home/path/to/my/wordpress/app/public_html/wp-admin/includes/file.ph
p:1896
Stack trace:
#0 /home/path/to/my/wordpress/app/public_html/wp-admin/includes/class-wp-upgrader.php(596): copy_dir()
#1 /home/path/to/my/wordpress/app/public_html/wp-admin/includes/class-wp-upgrader.php(798): WP_Upgrader->install_package()
#2 /home/path/to/my/wordpress/app/public_html/wp-admin/includes/class-plugin-upgrader.php(137): WP_Upgrader->run()
#3 phar:///usr/local/bin/wp/vendor/wp-cli/extension-command/src/Plugin_Command.php(552): Plugin_Upgrader->install()
#4 phar:///usr/local/bin/wp/vendor/wp-cli/extension-command/src/WP_CLI/CommandWithUpgrade.php(209): Plugin_Command->install_from_repo()
#5 phar:///usr/local/bin/wp/vendor/wp-cli/extension-command/src/Plugin_Command.php(809): WP_CLI\CommandWithUpgrade->install()
#6 [internal function]: Plugin_Command->install()
#7 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Di in /home/path/to/my/wordpress/app/public_html/wp-admin/includes/file.php on lin
e 1896
Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.
Tried with various plugins & themes; same result.
PHP version & SQL version on origin site matches destination.
Looks like the Cloudways migration didn’t complete properly. Reinstalling WordPress from the dashboard solved it.
Not the answer you’re looking for? Browse other questions tagged php or ask your own question.
lang-php
Leave an answer