Roots Discourse

Plugin update breaks site after deploy

Hey, I have a pretty open-ended question, so bear with me here. I just updated a client’s website with a bunch of outdated plugin (like, very outdated). Everything seemed to work on development, but when I deployed the changes to staging, it broke the site. I tried to push one update at a time, and found that a handful of the plugin updates were breaking the site (either just the frontend, or both the front and backend).

I’m really not sure if this issue is related to roots, I just thought I was throw it out there. Let me know if any of this rings a bell.

Thanks,

Jill

PS Here’s the warning from the console when I pushed one of the breaking updates (they all said something along the lines of “this plugin can’t find file xyz…”

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"]}`

The first step I’d take is to go on the server and see whether or not these files the errors complain about actually exist, and if they do exist check their permissions. Generally trellis won’t cause problems here, but sometimes things get weird (esp. if the server config is nonstandard).

1 Like

Good question - the file in question is /not/ present. In fact, it seems weird to me that there would be a woocommerce file in the ajax-load-more plugin…

This seems to be an issue with code from releases conflicting with the newly downloaded plugin. Not sure why this happens, or how to fix it…