Fatal Error when updating Plugin using Bitbucket/Jenkins
-
Currently running into an issue wherein I update your Visualizer plugin locally and it works just fine. Then I commit the change to a branch in our bitbucket repo, and build that change to our staging environment using Jenkins. Once the build runs and successfully completes, I try to navigate to our wordpress install and am greeted by a Critical Error page.
In an attempt to test this I built our master branch back to staging and the site worked again, so then I logged in, and went to plugins/deactivated the Visualizer plugin. Then I built the update branch back to staging and the site works still. All good so far. I login to the site, navigate to plugins and attempt to activate the Visualizer plugin, but am greeted with the following error output.
Warning: require(/var/www/html/hub/wp-content/plugins/visualizer/vendor/composer/../markbaker/matrix/classes/src/Functions/adjoint.php): Failed to open stream: No such file or directory in /var/www/html/hub/wp-content/plugins/visualizer/vendor/composer/autoload_real.php on line 41 Fatal error: Uncaught Error: Failed opening required '/var/www/html/hub/wp-content/plugins/visualizer/vendor/composer/../markbaker/matrix/classes/src/Functions/adjoint.php' (include_path='.:/usr/local/lib/php') in /var/www/html/hub/wp-content/plugins/visualizer/vendor/composer/autoload_real.php:41 Stack trace: #0 /var/www/html/hub/wp-content/plugins/visualizer/vendor/composer/autoload_real.php(45): {closure}('3af723442581d6c...', '/var/www/html/h...') #1 /var/www/html/hub/wp-content/plugins/visualizer/vendor/autoload.php(25): ComposerAutoloaderInit0cfa41381204c801cf9e0304c5326c72::getLoader() #2 /var/www/html/hub/wp-content/plugins/visualizer/index.php(136): include_once('/var/www/html/h...') #3 /var/www/html/hub/wp-content/plugins/visualizer/index.php(175): visualizer_launch() #4 /var/www/html/hub/wp-admin/includes/plugin.php(2314): include_once('/var/www/html/h...') #5 /var/www/html/hub/wp-admin/plugins.php(192): plugin_sandbox_scrape('visualizer/inde...') #6 {main} thrown in /var/www/html/hub/wp-content/plugins/visualizer/vendor/composer/autoload_real.php on line 41
And just to confirm this is strictly related to building an updated plugin, I re-deployed master to our staging environment and manually clicked the update button in the plugins page for Visualizer, and it updated just fine, without any errors. The main issue here, is that we use a bitbucket repo to make sure that our developers all have the same plugins available to them.
Hoping you can help!
- The topic ‘Fatal Error when updating Plugin using Bitbucket/Jenkins’ is closed to new replies.