Jump to content


Photo

Not helpful error messages

error exception database

  • Please log in to reply
1 reply to this topic

#1 seddass

seddass

    Distinguished Member

  • Members
  • PipPipPip
  • 56 posts
  • 8

Posted 19 January 2012 - 11:46 AM

Hello,

I have received many emails with same error message and I am wandering how to change the code to get more meaningful errors. Hope someone know what could to be the reason for that exception or how to render more details in that exception. Аny help is greatly appreciated. Below is the error:


Unknown User:/?/:ProcessWire Error:Exception:
SELECT id, class, flags, data FROM modules ORDER BY class (in /var/www/my-domain/www.my-domain.com/wire/core/Database.php line 72)

#0 /var/www/my-domain/www.my-domain.com/wire/core/Modules.php(142): Database->query('SELECT id, clas...')
#1 /var/www/my-domain/www.my-domain.com/wire/core/Modules.php(79): Modules->load('/var/www/my-dom...')
#2 /var/www/my-domain/www.my-domain.com/wire/core/ProcessWire.php(100): Modules->__construct('/var/www/my-dom...', '/var/www/my-dom...')
#3 /var/www/my-domain/www.my-domain.com/wire/core/ProcessWire.php(45): ProcessWire->load(Object(Config))
#4 /var/www/my-domain/www.my-domain.com/index.php(167): ProcessWire->__construct(Object(Config))
#5 {main}


#2 ryan

ryan

    Hero Member

  • Administrators
  • 5,780 posts
  • 3124

  • LocationAtlanta, GA

Posted 19 January 2012 - 05:40 PM

You are right that's a terrible error message! ::) But, you shouldn't get this error message if you are running the latest PW. The latest PW will give you a better error message. However, I'm familiar with this particular error and it means that the database connection failed. Your database server was down or overloaded and PW couldn't connect to it. Since Modules are the first thing it tries to load, that query failed.





Also tagged with one or more of these keywords: error, exception, database

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users