Hi,

Since update Dupal 8.3.1 to 8.3.2, I have an error : "The website encountered an unexpected error. Please try again later." on the page www.example.net/update.php

And on the rest of the website, I have a redirection on www.example.net/core/install.php

I had the same issued when I was installed Drupal 8.3.0.

Someone can help me ?

Thx

Comments

hiramanpatil’s picture

What was the process you followed to update your site? is it using Drush or you updated it manually?

Thanks

jhego’s picture

Thanks for your answer @hiramanpatil

I update it manually with sourceTree (git)

hiramanpatil’s picture

Check settings.php file at site/default in your project.

Also go to your project root on command prompt and check watch-dog errors using Drush (Install Drush on your system first). The command to see the errors using Drush is - drush watchdog-show

Find more Drush commands here:-
https://drushcommands.com/drush-7x/watchdog/watchdog-show/

Thanks

jhego’s picture

I don't have settings.php, just default.settings.php on www/sites/default

I try with Drush, and I send the result after

Thanks

hiramanpatil’s picture

settings.php file is not present so this is the reason its redirecting you to the /core/install.php path.

if you have back-up of old settings.php file then you can put it in given path.

jhego’s picture

I never had settings.php when the website was running

Should I copy default.settings.php and rename it to settings.php ?

Also, I have a file name Settings.php on \www\core\lib\Drupal\Core\Site but I'm not sure this is the same as you speak

Thanks

hiramanpatil’s picture

Should I copy default.settings.php and rename it to settings.php ?

- Yes, and proceed with installation.

jhego’s picture

But, if I proceed to installation, I will lose all the data of my database ?

mmjvb’s picture

Looks like you managed to loose settings.php with the way you updated. You NEED to have had a settings.php for an existing site.
Restore one from backup because it contains the configuration to run your site. Then call update.php from your browser.

Do not know what will happen when you run install.php, suggest to use a different database otherwise you might loose your site.

EDIT
Based to the fixed bug, https://www.drupal.org/node/2875446, suggest to restore and update again.

sprite’s picture

The only way to successfully update a Drupal 8 website is by using the composer utility.

To use Drupal 8, command line access, is an essential prerequisite.
To use Drupal 8, use of the command line shell composer utility is an essential/required prerequisite.

spritefully yours
Technical assistance provided to the Drupal community on my own time ...
Thank yous appreciated ...