全新的WP应用程序云彩托管。他们的技术支持无法解决。通过后端或WP CLI进行更新会导致错误。目录已创建,但文件未复制到其中。似乎是PHP错误。
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.尝试了各种插件&主题;相同的结果。
PHP版本& SQL版本在原始站点上匹配目标。
发布于 2023-02-17 09:25:46
为了让其他人在搜索查询后面找到这一点,我也遇到了fcp_copy_dir()函数找不到的问题。
原因:我从一个飞轮实例迁移了这个站点。fcp_copy_dir()似乎是一个自定义飞轮功能,他们已经添加到WP核心。在非飞轮环境中运行时,核心WP会遇到错误。
诊断:使用wp core verify-checksums验证WP核心的完整性。在我的例子中,这显示了3个文件被修改了。
决议:恢复到一个干净的WP核心。
发布于 2022-09-12 16:30:42
看起来Cloudways迁移没有正常完成。从仪表板重新安装WordPress解决了这个问题。
https://wordpress.stackexchange.com/questions/409409
复制相似问题