微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

推送时,WordPress插件更新会中断站点

如何解决推送时,WordPress插件更新会中断站点

我在更新WordPress网站上的插件时遇到了一些麻烦。等待太久才能更新它们是我的全部错,现在使用git推送更新会破坏站点(开发站点可以,只有我推送的临时站点会中断)。我尝试手动更新所有内容,并且会进行作曲,但两种方法都不会持久-插件会在随后的git push中恢复为以前的版本。

现在有什么方法可以更新这些插件禁止全部删除并重新开始(在这一点上我并不完全反对)。该网站不会获得太多流量,但是最好使用停机时间最少的解决方案。

这是我在损坏的网站上看到的错误

“该网站遇到技术问题。请查看您的网站管理员电子邮件收件箱以获取说明。”

这是终端上的错误

PHP Warning:
include_once(/srv/www/mysite.com/releases/20200911161105/web/app/plugins
/ajax-load-more/core/classes/class.alm-woocommerce.PHP): Failed to open
stream: No such file or directory in
/srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-
more/ajax-load-more.PHP on line 258
Warning:
include_once(/srv/www/mysite.com/releases/20200911161105/web/app/plugins
/ajax-load-more/core/classes/class.alm-woocommerce.PHP): Failed to open
stream: No such file or directory in
/srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-
more/ajax-load-more.PHP on line 258
PHP Warning:  include_once(): Failed opening
'/srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-
more/core/classes/class.alm-woocommerce.PHP' for inclusion
(include_path='phar:///usr/bin/wp/vendor/PHPunit/PHP-token-
stream:phar:///usr/bin/wp/vendor/PHPunit/PHPunit-mock-
objects:phar:///usr/bin/wp/vendor/PHPunit/PHP-code-coverage:phar:///usr/bin/w
p/vendor/PHPunit/PHPunit:phar:///usr/bin/wp/vendor/symfony/yaml:.:/usr/share/
PHP') in /srv/www/mysite.com/releases/20200911161105/web/app/plugins
/ajax-load-more/ajax-load-more.PHP on line 258
Warning: include_once(): Failed opening
'/srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-
more/core/classes/class.alm-woocommerce.PHP' for inclusion
(include_path='phar:///usr/bin/wp/vendor/PHPunit/PHP-token-
stream:phar:///usr/bin/wp/vendor/PHPunit/PHPunit-mock-
objects:phar:///usr/bin/wp/vendor/PHPunit/PHP-code-coverage:phar:///usr/bin/w
p/vendor/PHPunit/PHPunit:phar:///usr/bin/wp/vendor/symfony/yaml:.:/usr/share/
PHP') in /srv/www/quorumhubnu.com/releases/20200911161105/web/app/plugins
/ajax-load-more/ajax-load-more.PHP on line 258
PHP Warning:
include_once(/srv/www/mysite.com/releases/20200911161105/web/app/plugins
/ajax-load-more/core/integration/elementor/elementor.PHP): Failed to open
stream: No such file or directory in
/srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-
more/ajax-load-more.PHP on line 262
Warning:
include_once(/srv/www/mysite.com/releases/20200911161105/web/app/plugins
/ajax-load-more/core/integration/elementor/elementor.PHP): Failed to open
stream: No such file or directory in
/srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-
more/ajax-load-more.PHP on line 262
PHP Warning:  include_once(): Failed opening
'/srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-
more/core/integration/elementor/elementor.PHP' for inclusion
(include_path='phar:///usr/bin/wp/vendor/PHPunit/PHP-token-
stream:phar:///usr/bin/wp/vendor/PHPunit/PHPunit-mock-
objects:phar:///usr/bin/wp/vendor/PHPunit/PHP-code-coverage:phar:///usr/bin/w
p/vendor/PHPunit/PHPunit:phar:///usr/bin/wp/vendor/symfony/yaml:.:/usr/share/
PHP') in /srv/www/mysite.com/releases/20200911161105/web/app/plugins
/ajax-load-more/ajax-load-more.PHP on line 262
Warning: include_once(): Failed opening
'/srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-
more/core/integration/elementor/elementor.PHP' for inclusion
(include_path='phar:///usr/bin/wp/vendor/PHPunit/PHP-token-
stream:phar:///usr/bin/wp/vendor/PHPunit/PHPunit-mock-
objects:phar:///usr/bin/wp/vendor/PHPunit/PHP-code-coverage:phar:///usr/bin/w
p/vendor/PHPunit/PHPunit:phar:///usr/bin/wp/vendor/symfony/yaml:.:/usr/share/
PHP') in /srv/www/mysite.com/releases/20200911161105/web/app/plugins
/ajax-load-more/ajax-load-more.PHP on line 262
fatal: [107.170.41.149]: Failed! => {"changed": false,"cmd": ["wp","option","get","template_root"],"delta": "0:00:00.558022","end": "2020-09-11 16:11:42.260885","Failed": true,"Failed_when_result": true,"rc": 0,"start": "2020-09-11 16:11:41.702863","stderr": "PHP Warning:  include_once(/srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-more/core/classes/class.alm-woocommerce.PHP): Failed to open stream: No such file or directory in /srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-more/ajax-load-more.PHP on line 258\nWarning: include_once(/srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-more/core/classes/class.alm-woocommerce.PHP): Failed to open stream: No such file or directory in /srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-more/ajax-load-more.PHP on line 258\nPHP Warning:  include_once(): Failed opening '/srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-more/core/classes/class.alm-woocommerce.PHP' for inclusion (include_path='phar:///usr/bin/wp/vendor/PHPunit/PHP-token-stream:phar:///usr/bin/wp/vendor/PHPunit/PHPunit-mock-objects:phar:///usr/bin/wp/vendor/PHPunit/PHP-code-coverage:phar:///usr/bin/wp/vendor/PHPunit/PHPunit:phar:///usr/bin/wp/vendor/symfony/yaml:.:/usr/share/PHP') in /srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-more/ajax-load-more.PHP on line 258\nWarning: include_once(): Failed opening '/srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-more/core/classes/class.alm-woocommerce.PHP' for inclusion (include_path='phar:///usr/bin/wp/vendor/PHPunit/PHP-token-stream:phar:///usr/bin/wp/vendor/PHPunit/PHPunit-mock-objects:phar:///usr/bin/wp/vendor/PHPunit/PHP-code-coverage:phar:///usr/bin/wp/vendor/PHPunit/PHPunit:phar:///usr/bin/wp/vendor/symfony/yaml:.:/usr/share/PHP') in /srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-more/ajax-load-more.PHP on line 258\nPHP Warning:  include_once(/srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-more/core/integration/elementor/elementor.PHP): Failed to open stream: No such file or directory in /srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-more/ajax-load-more.PHP on line 262\nWarning: include_once(/srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-more/core/integration/elementor/elementor.PHP): Failed to open stream: No such file or directory in /srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-more/ajax-load-more.PHP on line 262\nPHP Warning:  include_once(): Failed opening '/srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-more/core/integration/elementor/elementor.PHP' for inclusion (include_path='phar:///usr/bin/wp/vendor/PHPunit/PHP-token-stream:phar:///usr/bin/wp/vendor/PHPunit/PHPunit-mock-objects:phar:///usr/bin/wp/vendor/PHPunit/PHP-code-coverage:phar:///usr/bin/wp/vendor/PHPunit/PHPunit:phar:///usr/bin/wp/vendor/symfony/yaml:.:/usr/share/PHP') in /srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-more/ajax-load-more.PHP on line 262\nWarning: include_once(): Failed opening '/srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-more/core/integration/elementor/elementor.PHP' for inclusion (include_path='phar:///usr/bin/wp/vendor/PHPunit/PHP-token-stream:phar:///usr/bin/wp/vendor/PHPunit/PHPunit-mock-objects:phar:///usr/bin/wp/vendor/PHPunit/PHP-code-coverage:phar:///usr/bin/wp/vendor/PHPunit/PHPunit:phar:///usr/bin/wp/vendor/symfony/yaml:.:/usr/share/PHP') in /srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-more/ajax-load-more.PHP on line 262","stderr_lines": ["PHP Warning:  include_once(/srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-more/core/classes/class.alm-woocommerce.PHP): Failed to open stream: No such file or directory in /srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-more/ajax-load-more.PHP on line 258","Warning: include_once(/srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-more/core/classes/class.alm-woocommerce.PHP): Failed to open stream: No such file or directory in /srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-more/ajax-load-more.PHP on line 258","PHP Warning:  include_once(): Failed opening '/srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-more/core/classes/class.alm-woocommerce.PHP' for inclusion (include_path='phar:///usr/bin/wp/vendor/PHPunit/PHP-token-stream:phar:///usr/bin/wp/vendor/PHPunit/PHPunit-mock-objects:phar:///usr/bin/wp/vendor/PHPunit/PHP-code-coverage:phar:///usr/bin/wp/vendor/PHPunit/PHPunit:phar:///usr/bin/wp/vendor/symfony/yaml:.:/usr/share/PHP') in /srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-more/ajax-load-more.PHP on line 258","Warning: include_once(): Failed opening '/srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-more/core/classes/class.alm-woocommerce.PHP' for inclusion (include_path='phar:///usr/bin/wp/vendor/PHPunit/PHP-token-stream:phar:///usr/bin/wp/vendor/PHPunit/PHPunit-mock-objects:phar:///usr/bin/wp/vendor/PHPunit/PHP-code-coverage:phar:///usr/bin/wp/vendor/PHPunit/PHPunit:phar:///usr/bin/wp/vendor/symfony/yaml:.:/usr/share/PHP') in /srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-more/ajax-load-more.PHP on line 258","PHP Warning:  include_once(/srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-more/core/integration/elementor/elementor.PHP): Failed to open stream: No such file or directory in /srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-more/ajax-load-more.PHP on line 262","Warning: include_once(/srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-more/core/integration/elementor/elementor.PHP): Failed to open stream: No such file or directory in /srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-more/ajax-load-more.PHP on line 262","PHP Warning:  include_once(): Failed opening '/srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-more/core/integration/elementor/elementor.PHP' for inclusion (include_path='phar:///usr/bin/wp/vendor/PHPunit/PHP-token-stream:phar:///usr/bin/wp/vendor/PHPunit/PHPunit-mock-objects:phar:///usr/bin/wp/vendor/PHPunit/PHP-code-coverage:phar:///usr/bin/wp/vendor/PHPunit/PHPunit:phar:///usr/bin/wp/vendor/symfony/yaml:.:/usr/share/PHP') in /srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-more/ajax-load-more.PHP on line 262","Warning: include_once(): Failed opening '/srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-more/core/integration/elementor/elementor.PHP' for inclusion (include_path='phar:///usr/bin/wp/vendor/PHPunit/PHP-token-stream:phar:///usr/bin/wp/vendor/PHPunit/PHPunit-mock-objects:phar:///usr/bin/wp/vendor/PHPunit/PHP-code-coverage:phar:///usr/bin/wp/vendor/PHPunit/PHPunit:phar:///usr/bin/wp/vendor/symfony/yaml:.:/usr/share/PHP') in /srv/www/mysite.com/releases/20200911161105/web/app/plugins/ajax-load-more/ajax-load-more.PHP on line 262"],"stdout": "/themes","stdout_lines": ["/themes"]}

(是的,我知道它正在寻找找不到的文件。)

我正在使用:
ansible 2.3
python版本= 2.7.15
PHP 7.2.19
流浪汉2.2.5

让我知道我是否忘记了任何重要信息。

编辑:我应该补充一点,这可能是与游民有关的问题。如果那里有流浪用户,请告诉我您的想法!

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。