Jump to content


Photo

Unable to complete this request due to an error


  • Please log in to reply
5 replies to this topic

#1 ryan

ryan

    Reiska

  • Administrators
  • 9,169 posts
  • 9565

  • LocationAtlanta, GA

Posted 09 September 2011 - 03:55 PM

If you get this error message:

Unable to complete this request due to an error


That means that ProcessWire is in production mode (as it is by default) and is not reporting errors as a security best practice. However, if you are just installing ProcessWire or developing a site in it, this error message is hardly helpful. Here are three ways you can find out what error occurred:

  • Look at the last line in the file /site/assets/logs/errors.txt. You have to examine this file directly on your file system as PW makes this file non-web accessible.
  • If you entered your email address for the admin user account when you installed ProcessWire, it will email the fatal error message to you. Though if you are running PW on a machine that doesn't send email, that may not help.
  • Edit the file /site/config.php and change the line that says $config->debug = false; to: $config->debug = true; That will force PW to output it's error messages rather than saying "Unable to complete this request due to an error." Note however that you do not want "debug" turned on with a production site, as it's not good security to reveal technical details like this to users of your site.

Any one of the above 3 methods will reveal exactly what error occurred. Regardless of where you found it, the error message will include the following in this order (each separated by a colon ':')

  • Date and time that the error occurred
  • Current user when the error occurred
  • URL of the page that was being viewed
  • Detailed error message with PHP file, line number and sometimes a debug backtrace

Most often, examining the information above will make it clear what the problem is. However, if it doesn't, post your error message here (being careful not to reveal any personal server details). Or if you prefer, private-message it to me or email it to me at http://ryancramer.com/contact/.

Hope this helps a few people. I noticed repeat instances of "Unable to complete this request due to an error" in our Google Analytics, so it's clear some are experiencing this message and arriving at our site. I wanted to make sure we had a proper answer.

#2 Guy Verville

Guy Verville

    Distinguished Member

  • Members
  • PipPipPip
  • 54 posts
  • 23

  • LocationMontreal, Canada

Posted 27 October 2014 - 11:16 AM

Hello Ryan. I am perplexed. I transferred a site into a new server. I'm getting this error but nothing is written in the errors.txt file. The site works fine on my local machine. My IT team inspected every settings I made and everything is ok. Running 2.5.3. I cannot login either. Debug is set to true but to know avail.

 

I don't know what I am missing.

 

Ps: I have put the allowed addresses in the config file. While it is "tci" on my local machine, it is "tcidemo.innobec.com" on dev server.



#3 pwired

pwired

    Hero Member

  • Members
  • PipPipPipPipPip
  • 1,299 posts
  • 626

  • LocationSpain

Posted 27 October 2014 - 12:01 PM

Did you try another index.php ?

Did you check on any database commands in your local database

that should not be there anymore in the server database ? E.g.

some CPanels don't like database commands created in a local

environment.



#4 Guy Verville

Guy Verville

    Distinguished Member

  • Members
  • PipPipPip
  • 54 posts
  • 23

  • LocationMontreal, Canada

Posted 27 October 2014 - 01:43 PM

another index.php? I have not changed a thing to that file. Which database commands are you thinking of? 



#5 Guy Verville

Guy Verville

    Distinguished Member

  • Members
  • PipPipPip
  • 54 posts
  • 23

  • LocationMontreal, Canada

Posted 27 October 2014 - 03:11 PM

I don't know why, everything is back to normal. Certainly a phantom in the clouds. Who knows...



#6 Nico Knoll

Nico Knoll

    Supermom

  • PW-Moderators
  • 1,795 posts
  • 1473

  • LocationBerlin, Germany

Posted 28 October 2014 - 12:43 PM

@ryan: You should add this to the Troubleshooting guide :)






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users