我的wordpress服务器是通过终端手动管理的,没有cPanel等。我正在尝试通过Wordpress插件“添加新的”UI按钮安装插件。我得到Installation failed: Could not create directory.
我做chown -R www-data:www-data {wordpress location}
和chmod -R 755 {wordpress location}
但我仍然遇到同样的问题。甚至777给了我同样的错误。我确实验证了该文件夹归www-data:www-data
所有。 www-data
组包含www-data
用户和wpman
用户,该用户是wp-config.php
中FTP_USER
定义的用户
Installation failed: The called constructor method for WP_Widget in Ad_Rotator_Widget is deprecated since version 4.3.0! Use __construct() instead. Backtrace from noticeIn /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-includes/functions.php [line 3893]: [line ?] calling process_error() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-includes/functions.php [line 3893] calling trigger_error() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-includes/class-wp-widget.php [line 200] calling _deprecated_constructor() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-content/plugins/ad-rotator/adrotator.php [line 32] calling WP_Widget() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-includes/class-wp-widget-factory.php [line 106] calling Ad_Rotator_Widget() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-includes/widgets.php [line 113] calling register() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-content/plugins/ad-rotator/adrotator.php [line 79] calling register_widget() [line ?] calling register_Ad_Rotator_Widget() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-includes/class-wp-hook.php [line 298] calling call_user_func_array() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-includes/class-wp-hook.php [line 323] calling apply_filters() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-includes/plugin.php [line 453] calling do_action() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-settings.php [line 449] calling do_action() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-config.php [line 94] calling require_once() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-load.php [line 37] calling require_once() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-admin/admin-ajax.php [line 22] calling require_once() Cannot modify header information - headers already sent by (output started at /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-content/mu-plugins/no-white-screen.php:140) Backtrace from warningIn /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-content/plugins/wordfence/lib/wfUtils.php [line 1280]: [line ?] calling process_error() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-content/plugins/wordfence/lib/wfUtils.php [line 1280] calling setcookie() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-content/plugins/wordfence/lib/wordfenceClass.php [line 4692] calling setcookie() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-content/plugins/wordfence/lib/wordfenceClass.php [line 4617] calling setCookie() [line ?] calling initAction() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-includes/class-wp-hook.php [line 298] calling call_user_func_array() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-includes/class-wp-hook.php [line 323] calling apply_filters() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-includes/plugin.php [line 453] calling do_action() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-settings.php [line 449] calling do_action() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-config.php [line 94] calling require_once() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-load.php [line 37] calling require_once() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-admin/admin-ajax.php [line 22] calling require_once() Cannot modify header information - headers already sent by (output started at /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-content/mu-plugins/no-white-screen.php:140) Backtrace from warningIn /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-includes/http.php [line 491]: [line ?] calling process_error() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-includes/http.php [line 491] calling header() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-admin/admin-ajax.php [line 25] calling send_origin_headers() Cannot modify header information - headers already sent by (output started at /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-content/mu-plugins/no-white-screen.php:140) Backtrace from warningIn /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-includes/http.php [line 492]: [line ?] calling process_error() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-includes/http.php [line 492] calling header() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-admin/admin-ajax.php [line 25] calling send_origin_headers() Cannot modify header information - headers already sent by (output started at /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-content/mu-plugins/no-white-screen.php:140) Backtrace from warningIn /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-admin/admin-ajax.php [line 37]: [line ?] calling process_error() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-admin/admin-ajax.php [line 37] calling header() Cannot modify header information - headers already sent by (output started at /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-content/mu-plugins/no-white-screen.php:140) Backtrace from warningIn /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-admin/admin-ajax.php [line 38]: [line ?] calling process_error() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-admin/admin-ajax.php [line 38] calling header() Cannot modify header information - headers already sent by (output started at /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-content/mu-plugins/no-white-screen.php:140) Backtrace from warningIn /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-includes/functions.php [line 4915]: [line ?] calling process_error() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-includes/functions.php [line 4915] calling header() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-admin/admin-ajax.php [line 40] calling send_nosniff_header() Cannot modify header information - headers already sent by (output started at /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-content/mu-plugins/no-white-screen.php:140) Backtrace from warningIn /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-includes/functions.php [line 1144]: [line ?] calling process_error() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-includes/functions.php [line 1144] calling header_remove() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-admin/admin-ajax.php [line 41] calling nocache_headers() Cannot modify header information - headers already sent by (output started at /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-content/mu-plugins/no-white-screen.php:140) Backtrace from warningIn /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-includes/functions.php [line 1157]: [line ?] calling process_error() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-includes/functions.php [line 1157] calling header() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-admin/admin-ajax.php [line 41] calling nocache_headers() Cannot modify header information - headers already sent by (output started at /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-content/mu-plugins/no-white-screen.php:140) Backtrace from warningIn /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-includes/functions.php [line 1157]: [line ?] calling process_error() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-includes/functions.php [line 1157] calling header() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-admin/admin-ajax.php [line 41] calling nocache_headers() Cannot modify header information - headers already sent by (output started at /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-content/mu-plugins/no-white-screen.php:140) Backtrace from warningIn /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-includes/functions.php [line 5020]: [line ?] calling process_error() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-includes/functions.php [line 5020] calling header() [line ?] calling send_frame_options_header() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-includes/class-wp-hook.php [line 296] calling call_user_func_array() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-includes/class-wp-hook.php [line 323] calling apply_filters() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-includes/plugin.php [line 453] calling do_action() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-admin/admin-ajax.php [line 44] calling do_action() Cannot modify header information - headers already sent by (output started at /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-content/mu-plugins/no-white-screen.php:140) Backtrace from warningIn /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-includes/functions.php [line 3157]: [line ?] calling process_error() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-includes/functions.php [line 3157] calling header() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-includes/functions.php [line 3187] calling wp_send_json() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-admin/includes/ajax-actions.php [line 3642] calling wp_send_json_success() [line ?] calling wp_ajax_install_plugin() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-includes/class-wp-hook.php [line 298] calling call_user_func_array() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-includes/class-wp-hook.php [line 323] calling apply_filters() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-includes/plugin.php [line 453] calling do_action() /mnt/volume-nyc1-01/mnt_www/mnt_www/html/wp-admin/admin-ajax.php [line 91] calling do_action() {"success":true,"data":{"install":"plugin","slug":"jetpack","pluginName":"Jetpack by WordPress.com","debug":["Downloading install package from https:\/\/downloads.wordpress.org\/plugin\/jetpack.4.9.zip…","Unpacking the package…","Installing the plugin…","Plugin installed successfully."],"activateUrl":"http:\/\/www.website.com\/wp-admin\/plugins.php?_wpnonce=04c27e2798&action=activate&plugin=jetpack\/jetpack.php"}}
。我的智慧结束了 - 可能是什么问题?
当我打开调试时,我收到了这个大量的错误消息:
self.ref.child("ArrayMainNode").setValue(["arrayObjectToAdd": "true"])
答案 0 :(得分:2)
从错误消息中我们可以看到您正在尝试安装Ad Rotator插件。它使用旧的对象构造函数方法,该方法在WordPress版本4.3.0中已弃用。
这并不罕见。在WordPress存储库中,我们可以看到此插件已经更新2年了。
您必须找到满足您需求的其他插件。