Update website from 8.0.0 to 8.6.1

I’m pretty new to Drupal and I’m trying to update a website from 8.0.0 to 8.6.1.

I’ve followed the guide here: https://www.drupal.org/docs/8/update/update-core-via-composer

The composer part went pretty well. However, when I run the command:

drush updatedb 

I get the following error:

Command updatedb needs a higher bootstrap level to run - you will need to invoke drush from a more functional Drupal environment to run this command. The drush command 'updatedb' could not be executed. 

I’ve read online that I had to use cc all first, but when I do:

drush cc all 

I get the following:

No Drupal site found, only 'drush' cache was cleared. 

I thought that I might have to update my Drush version since I was running on 8.1.17 because version 9.x was not supporting Drupal 8.0.0. Therefore, I updated to 9.4.0.

Now when I execute the updatedb command, I get the following:

Bootstrap failed. Run your command with -vvv for more information. 

And the stacktrace:

Exception trace:  DrushBootBootstrapHook->initialize() at /root/.composer/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/InitializeHookDispatcher.php:34  ConsolidationAnnotatedCommandHooksDispatchersInitializeHookDispatcher->callInitializeHook() at /root/.composer/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/InitializeHookDispatcher.php:27  ConsolidationAnnotatedCommandHooksDispatchersInitializeHookDispatcher->initialize() at /root/.composer/vendor/consolidation/annotated-command/src/CommandProcessor.php:117  ConsolidationAnnotatedCommandCommandProcessor->initializeHook() at /root/.composer/vendor/consolidation/annotated-command/src/AnnotatedCommand.php:391  ConsolidationAnnotatedCommandAnnotatedCommand->initialize() at /root/.composer/vendor/symfony/console/Command/Command.php:217  SymfonyComponentConsoleCommandCommand->run() at /root/.composer/vendor/symfony/console/Application.php:964  SymfonyComponentConsoleApplication->doRunCommand() at /root/.composer/vendor/symfony/console/Application.php:248  SymfonyComponentConsoleApplication->doRun() at /root/.composer/vendor/symfony/console/Application.php:148  SymfonyComponentConsoleApplication->run() at /root/.composer/vendor/drush/drush/src/Runtime/Runtime.php:112  DrushRuntimeRuntime->doRun() at /root/.composer/vendor/drush/drush/src/Runtime/Runtime.php:41  DrushRuntimeRuntime->run() at /root/.composer/vendor/drush/drush/drush.php:66  require() at /root/.composer/vendor/drush/drush/drush:4 

And if I open my drupal website, I’m getting a fatal error:

Fatal error: Class ‘DrupalComponentUtilityString’ not found in /home/username/public_html/themes/name/name.theme on line 548

I’m executing all commands from the root of my drupal website. I’ve also tried to execute it from sites/default/.


Update

I’ve restored to the version before the update, then performed the following steps in order:

  1. Updated composer.json to "drupal/core": "8.6.1"
  2. Executed the command: composer update drupal/core --with-dependencies
  3. Changed directory into the core/ folder
  4. Executed the command: composer install in the subdirectory
  5. Opened domain.com/update.php.

If I don’t perform step 3 & 4, I get an error when trying to load my website saying that it cannot load the file core/vendor/autoload.php.

Then I’m still getting the same fatal error as mentioned above.

composer.json

This is the original composer.json before the update.

{   "name": "drupal/drupal",   "description": "Drupal is an open source content management platform powering millions of websites and applications.",   "type": "project",   "license": "GPL-2.0+",   "require": {     "composer/installers": "^1.0.20",     "drupal/core": "8.0.0-beta6"   },   "minimum-stability": "dev",   "prefer-stable": true,   "repositories": [],   "config": {     "preferred-install": "dist",     "autoloader-suffix": "Drupal8"   },   "extra": {     "_readme": [       "This is an example file to show how a Drupal website can be managed via",       "Composer. It does not work out of the box but requires a Git subtree",       "split of the core directory to be added to the repositories",       "section above."     ]   } } 
Sponsored by SupremePR
This article was republished from its original source.
Call Us: 1(800)730-2416

Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.

FREE Drupal SEO Audit

Test your site below to see which issues need to be fixed. We will fix them and optimize your Drupal site 100% for Google and Bing. (Allow 30-60 seconds to gather data.)

Powered by

Update website from 8.0.0 to 8.6.1

On-Site Drupal SEO Master Setup

We make sure your site is 100% optimized (and stays that way) for the best SEO results.

With Pixeldust On-site (or On-page) SEO we make changes to your site’s structure and performance to make it easier for search engines to see and understand your site’s content. Search engines use algorithms to rank sites by degrees of relevance. Our on-site optimization ensures your site is configured to provide information in a way that meets Google and Bing standards for optimal indexing.

This service includes:

  • Pathauto install and configuration for SEO-friendly URLs.
  • Meta Tags install and configuration with dynamic tokens for meta titles and descriptions for all content types.
  • Install and fix all issues on the SEO checklist module.
  • Install and configure XML sitemap module and submit sitemaps.
  • Install and configure Google Analytics Module.
  • Install and configure Yoast.
  • Install and configure the Advanced Aggregation module to improve performance by minifying and merging CSS and JS.
  • Install and configure Schema.org Metatag.
  • Configure robots.txt.
  • Google Search Console setup snd configuration.
  • Find & Fix H1 tags.
  • Find and fix duplicate/missing meta descriptions.
  • Find and fix duplicate title tags.
  • Improve title, meta tags, and site descriptions.
  • Optimize images for better search engine optimization. Automate where possible.
  • Find and fix the missing alt and title tag for all images. Automate where possible.
  • The project takes 1 week to complete.