Jump to content


Photo

More detailed error messages


  • Please log in to reply
4 replies to this topic

#1 apeisa

apeisa

    Hero Member

  • Moderators
  • 2,526 posts
  • 854

  • LocationVihti, Finland

Posted 13 January 2012 - 06:00 AM

I have multisite setup using symlinks on /wire/ folder. When I get error messages they are something like this:


Unknown User:/?/:ProcessWire Error:Exception: Fieldtype 'FieldtypeMapMarker' does not exist (in /path_to/pw/wire/core/Field.php line 200)

Now I don't actually have a clue which site is causing this error, since that path is common for each of my sites. Would it be possible to get hostname or actual full url where error occured?

#2 ryan

ryan

    Hero Member

  • Administrators
  • 5,773 posts
  • 3122

  • LocationAtlanta, GA

Posted 13 January 2012 - 08:40 AM

Where does the error message appear? it should be in the /site/assets/logs/errors.txt file for the site where the error occurred (unless the sites are sharing a common /site/assets/logs/ dir?). Let me know, I can add a hostname to the error log.

#3 apeisa

apeisa

    Hero Member

  • Moderators
  • 2,526 posts
  • 854

  • LocationVihti, Finland

Posted 13 January 2012 - 09:15 AM

Ah sorry, I forgot to mention that I got error in my email. That is why I don't know which /site/ folder I look into, because I have like 20 sites already.

#4 ryan

ryan

    Hero Member

  • Administrators
  • 5,773 posts
  • 3122

  • LocationAtlanta, GA

Posted 13 January 2012 - 10:26 AM

This update has been pushed to the dev branch. It now includes the hostname. Also made the email output a little easier to read. Because it's possible for hostname to include colons (for port number) I've changed the log format delimeter to be tabs rather than colons.

#5 apeisa

apeisa

    Hero Member

  • Moderators
  • 2,526 posts
  • 854

  • LocationVihti, Finland

Posted 13 January 2012 - 10:32 AM

Thanks Ryan, this will definitely be helpful.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users