• Register
0 votes
239 views

Problem :

While doing the drupal 6 to 7 upgrade I am facing a not so helpful message

"The website encountered an unexpected error. Please try again later."

everytime I go to the certain pages. example) /admin/config

What is a best way to find out what is causing a fatal error so that I can fix it?

All I can think of right now is to start disabling the contributed modules until that the page works or looking through a logs.

7 5 2
3,870 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

If your dlog/watchdog and php error log aren't working, try below:

Please go on /includes/error.inc comment line line 245

print theme('maintenance_page', array('content' => t('The website encountered an unexpected error. Please try again later.')));

and put below one

print theme('maintenance_page', array('content' => t('The website encountered an unexpected error. Please try again later.'.$fatal.' '.var_export($error,true))));

Very similar, you put the var_export($error,true)) at the end of error

OR

By clearing your logs at /admin/reports/dblog then reloading a broken page I easily could identify a offending module when I rechecked a log.

Site is working fine for me now : )

OR

To fix the issue please try below steps :

  1. Log into the database and run a delete from watchdog;
  1. Refresh a page
  1. Then execute a database query select variables from watchdog;
  1. Look out for a text near message
9 7 4
38,600 points

Related questions

0 votes
1 answer 2 views
2 views
Problem: I am a new Drupal user. I constantly get this error message and I am aware of the reason behind this. Basically this is because of the SQL state 4000 error which is also called as SQL deadlock error. While I try to fix this issue, I would like to see ... question is pretty straight. I want to change this text to a meaningful one. Is it possible to do?Any guidelines on the steps to follow?
asked 4 days ago ochena 22.1k points
0 votes
1 answer 2 views
2 views
Problem: What is the best way to find out what is causing the fatal error so that I can fix it?
asked Apr 28 salim1 60.6k points
0 votes
1 answer 4 views
4 views
Problem: I want configure elasticsearch(ES) with Drupal to integrate ES in Drupal.In order to install ES followed steps mentioned on this But when I want enable added modules as mentioned in steps got error,help me with the suggestion.
asked Apr 28 salim1 60.6k points
0 votes
1 answer 2 views
2 views
Problem: I have logged into my Drupal 7 site as an admin and I was trying to put the site into maintenance mode but I get this response when ever I try: "The requested URL was rejected. Please consult with your administrator. Your support ID is: 1272530.." I have checked the permissions and it seems like my admin accounts has all the permissions granted. What could be the issue?
asked 3 days ago Humaira ahmed 50.7k points
0 votes
1 answer 2 views
2 views
Problem: I am unable to publish any apps on my Google Play Developer account is says An unexpected error occurred. Please try again later. (8869003) can anyone please help me to get out of this?
asked 1 day ago anika11 32k points
0 votes
1 answer 6 views
6 views
Problem: I am unable to publish any apps on my Google Play Developer account is says An unexpected error occurred. Please try again later. (8869003) can anyone please help me to get out of this?
asked 2 days ago sumaiya simi 43.9k points
0 votes
1 answer 3 views
3 views
Problem: When I try to signup for a Google Cloud free trial, I get the following error after the page which checks your details and payment method: An unexpected error has occurred. Please try again later. [OR-BSBBF-01] On this page it shows my payment profile which is correct and works for other Google services such as google Express etc.
asked 3 days ago jamuna1 30.2k points
0 votes
1 answer 3 views
3 views
Problem: Can anyone is facing issue in Manage release in Google play store? When I try to upload an app in production track. It's not opening. I am getting this error. An unexpected error occurred. Please try again later. (3200000)
asked 3 days ago ochena 22.1k points
0 votes
1 answer 4 views
4 views
Problem: I am getting this message: "sorry an unexpected error occurred please try again later" in facebook marketplace. Does anyone know how to solve it?
asked Apr 16 muktaa 34.4k points
1 vote
1 answer 2 views
2 views
Problem : What means that Error > An illegal choice has been detected. Please contact the site administrator
asked 4 days ago Abik Dey 4k points