• Register
0 votes
169 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
2 answers 1.5K views
1.5K views
Problem : I am getting following error login error: there is an error in logging you into this application. please try again later.
asked Nov 16, 2019 peterlaw 6.9k points
0 votes
1 answer 69 views
69 views
Problem: I am working on Fancybox for the very first time I am trying to display the inline content (it is a div with the image linked to the new page). My div and image are displayed properly in a modal but if a image is clicked to navigate to a new page then in that case I ... website.com/file/id:64/ext:.png" class="img" /></a></div></div> </li> Can someone help me in fixing my fancybox error.
asked Jul 14, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 50 views
50 views
Problem : I manage some of my WordPress,WooCommerce online shops which are running problem free from few years now. In recent times, we have noticed that the transactions via Paypal have not been working for us. I tried to process the order myself using the PayPal and ... saying that "there is not a problem with PayPal" So without even pulling apart the WooCommerce code, How can I fix the issue.
asked Jan 3, 2020 alecxe 7.5k points
0 votes
1 answer 214 views
214 views
Problem : I am having the following error whenever I am trying to open Excel Online in Chrome, But Excel Online in Safari is working fine for me. Does anyone know how to fix this issue? Sign in Something went wrong and we can't sign you in ... . Please try again later. The Microsoft account login server has detected too many repeated authentication attempts. Please wait a moment and try again.
asked Nov 26, 2019 alecxe 7.5k points
0 votes
1 answer 145 views
145 views
Problem : Whenever I try to go to my Logs page the following error shows: “There was an error loading Log Streams. Please try again by refreshing this page.” The problem is that there is another function which is identical except my code which is creating the log files no problem. Any suggestions to resolve my issue?
asked Dec 25, 2019 alecxe 7.5k points
0 votes
1 answer 1.7K views
1.7K views
Problem : Facing following error sorry, something unexpected happened. try again. (unknown error (empty response) (#1.1357045))
asked Nov 13, 2019 peterlaw 6.9k points
0 votes
1 answer 451 views
451 views
Problem : My code works perfectly on my friend's laptop But throws below error on my laptop. &ldquo;Error: a jni error has occurred, please check your installation and try again&rdquo; I have tried running the code on a Eclipse Juno using Java 7. I have also tested it and ... my final year project and I need it to work on my laptop at any case, I will be very grateful to anyone who solves it.
asked Jan 18, 2020 jwilliam 3.9k points
0 votes
1 answer 91 views
91 views
Problem : I want to update Orion ContextBroker using the command yum install contextBroker. But unfortunately I am getting the following error: Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again What could be wrong? Any clue?
asked Nov 26, 2019 alecxe 7.5k points