Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By jhego on
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
What was the process you
What was the process you followed to update your site? is it using Drush or you updated it manually?
Thanks
Thanks for your answer
Thanks for your answer @hiramanpatil
I update it manually with sourceTree (git)
Check whether settings.php
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
I don't have settings.php,
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
settings.php file is not
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.
I never had settings.php when
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
Should I copy default
Should I copy default.settings.php and rename it to settings.php ?
- Yes, and proceed with installation.
But, if I proceed to
But, if I proceed to installation, I will lose all the data of my database ?
Do not install !
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.
you must use composer
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 ...