By tonicatany on
Hi there, I just manually updated Drupal from version 8.8.4 to 8.8.6. Running the update script, I got the message:
The website encountered an unexpected error. Please try again later.
I cleared the cache but it did not help. I increased the PHP memory but it did not help. I ran cron but it did not help. I wonder what is wrong. Do you have an idea? How can I solve this problem?
Comments
Suggest to enable error reporting
to find out what the real problem is.
Add to settings.php:
$config['system.logging']['error_level']='verbose';
Having the unexpected error problem
I am having the same problem, as described in this thread.
This is what verbuse debugging yields:
RuntimeException: Failed to start the session because headers have already been sent by "/home/herringbone/auburnnordicski.org/sites/default/settings.php" at line 1. in Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start() (line 145 of vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php).
Sounds like bad settings.php
Check line 1 of settings.php. Must start with the open tag for php. Make sure there is noting in front of <.
You could use php -l settings.php to verify that there are no syntax errors. What did you use to edit? What platform are you on? Can you revert to the one created upon installation?
Remove byte order mark and make sure the editor used to make changes don't save with BOM.
Line 1 starts with
P.S. I opened settings.php with BBEdit.
Obviously you need to verify with something else
Suggest to use cat or head in term. Clearly, editors know how to deal with BOM. It is web server/PHP that doesn't like it, not sure which one.
I updated Drupal but I cannot run the update script.
It seems there are conflicts with modules that were installed and which I manually reinstalled. I cannot activate these modules because there are alreasy activated. German report:
Further reports:
How can I repair this mess?
Checkout easy install
https://www.drupal.org/project/easy_install
Should allow you remove left behind configuration.
I installed the module and got a system warning.
Drupal warned me to use the module and recommended me to uninstall it immediately. Since it is a clients site, I did so. Do you have any other suggestions how to solve this problem?
Use the latest version
10.4 should not have that message.
Solved
Finally, I solved my problems with these module ghosts in the database. The module Module Missing Message Fixer helped me. In phpMyAdmin, I also deleted some respective config files in the database. Just click on "config" and look for the reported files.
https://www.drupal.org/project/module_missing_message_fixer
Help ME!!
Same problem PLS HELP ME
<?
See <? $databases['default']['default'] = array ( .....
You can try, I removed the <? in settings.php
The website encountered an unexpected error. Please try again la
The website encountered an unexpected error. Please try again later.
The website encountered an unexpected error.
Error Name: The website encountered an unexpected error. Please try again later. The same Error Arrived When upgrading from Drupal 10 Alpha6 to Drupal 10 Beta 2 with Composer Command. Extend Menu Stopped Working. As I Checked Status Report. 3 Error Found. Database Out-of-Date, Mission or Invalid Modules and Trusted Host Settings. I Most Need to Correct First Two Errors. Trusted Host Setting is not needed as installation on localhost(Testing Purposes). Both two of Error Corrected After Installing the Missing Modules and updating the database through the update command available on Drupal Administrator. http://localhost/drupal/en/admin/reports/updates. Check For Missing Modules helps to solve this problem.
Please post a new support request
huntereagle, this issue is more than a year old, and it is unlikely that your support request will be seen by many.
To get support, you should create a new issue in this forum.
- gisle
Having the unexpected error problem
Hello,
Can you help me please, i faced the same error when i update the project to 11.7.2 version.
The website encountered an unexpected error. Please try again later.
AssertionError: Message template 'create_post_community' is not compatible with the activity system. This can be because the template is missing required fields or the fields are wrongly configured.
before the update I was had another problem, which was :
but after updated this error was solved and now i have just the fist error, and i cann't post comment or post.
The website encountered an unexpected error. Please try again later.
AssertionError: Message template 'create_post_community' is not compatible with the activity system. This can be because the template is missing required fields or the fields are wrongly configured.
Thanks in advance!