? Success

User tests: Successful: Unsuccessful:

avatar mbabker
mbabker
8 May 2016

Summary of Changes

This will try to write an error message about the uncaught Throwable triggering the error page to a logger registered for the error category while taking measures to keep the act of logging from triggering a fatal error.

Testing Instructions

Set up a logger for the error category (the debug plugin should help with this), trigger the error page, and ensure the error gets logged.

avatar mbabker mbabker - open - 8 May 2016
avatar mbabker mbabker - change - 8 May 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 8 May 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 8 May 2016
Category Libraries
avatar mbabker
mbabker - comment - 20 Jul 2016

Could use some tests here, having this would make debugging issues a little easier as anything triggering the error page would write a log statement with a stack trace if a logger is configured...

avatar brianteeman
brianteeman - comment - 3 Aug 2016

Happy to test this @mbabker but I need a little more guidance


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10341.

avatar mbabker
mbabker - comment - 3 Aug 2016

Turn on debug mode and make sure the plugin is logging everything and trigger the error page. The data from the Exception should be logged under the "error" category.

avatar brianteeman
brianteeman - comment - 3 Aug 2016

The error page in the front-end or admin?

avatar mbabker
mbabker - comment - 13 Aug 2016

It's not dependent on either application. All error page handling goes through this method.

avatar wilsonge
wilsonge - comment - 11 Sep 2016

Can you rebase this and I'll give it a test

avatar mbabker
mbabker - comment - 11 Sep 2016

Done

avatar mbabker
mbabker - comment - 3 Oct 2016

... no?

avatar andrepereiradasilva
andrepereiradasilva - comment - 3 Oct 2016

will test tonight

avatar zero-24
zero-24 - comment - 3 Oct 2016

@mbabker can you confirm that this is a correct error:

2016-10-03T15:16:05+00:00   CRITICAL 37.201.171.40  error   Uncaught Throwable of type JException thrown. Stack trace: #0 JRoot/libraries/legacy/error/error.php(277): JError::raise(1, 404, 'Category not fo...', NULL, true)
#1 JRoot/libraries/legacy/view/category.php(125): JError::raiseError(404, 'Category not fo...')
#2 JRoot/components/com_content/views/category/view.html.php(72): JViewCategory->commonCategoryDisplay()
#3 JRoot/libraries/legacy/controller/legacy.php(664): ContentViewCategory->display()
#4 JRoot/components/com_content/controller.php(113): JControllerLegacy->display(true, Array)
#5 JRoot/libraries/legacy/controller/legacy.php(702): ContentController->display()
#6 JRoot/components/com_content/content.php(38): JControllerLegacy->execute('')
#7 JRoot/libraries/cms/component/helper.php(405): require_once('/www/htdocs/w00...')
#8 JRoot/libraries/cms/component/helper.php(380): JComponentHelper::executeComponent('/www/htdocs/w00...')
#9 JRoot/libraries/cms/application/site.php(191): JComponentHelper::renderComponent('com_content')
#10 JRoot/libraries/cms/application/site.php(230): JApplicationSite->dispatch()
#11 JRoot/libraries/cms/application/cms.php(261): JApplicationSite->doExecute()
#12 JRoot/index.php(49): JApplicationCms->execute()
#13 {main}

If i produce a 404?

avatar mbabker
mbabker - comment - 3 Oct 2016

Looks right to me; it's logging that an exception went uncaught to the global handler and the stack trace of the exception with priority "CRITICAL".

avatar zero-24 zero-24 - test_item - 3 Oct 2016 - Tested successfully
avatar zero-24
zero-24 - comment - 3 Oct 2016

I have tested this item successfully on af2646d

? than ?


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10341.

avatar alikon
alikon - comment - 3 Oct 2016

i've tested maybe in the same way as @zero-24
i've visited an non-existent url an checked that no error was logged on everything.php
i've applyed the PR
again visited the same non-existent url and now in the everything.php log file the error is logged
errorlogged

avatar zero-24
zero-24 - comment - 3 Oct 2016

Yes it is the sameway as i have tested it @alikon

avatar alikon alikon - test_item - 3 Oct 2016 - Tested successfully
avatar alikon
alikon - comment - 3 Oct 2016

I have tested this item successfully on af2646d


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10341.

avatar zero-24 zero-24 - change - 3 Oct 2016
Status Pending Ready to Commit
avatar zero-24
zero-24 - comment - 3 Oct 2016

RTC cc: @rdeutz

Thanks ?


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10341.

avatar joomla-cms-bot joomla-cms-bot - change - 3 Oct 2016
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - close - 3 Oct 2016
avatar rdeutz rdeutz - change - 3 Oct 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-10-03 19:23:19
Closed_By rdeutz
Labels Added: ?
avatar rdeutz rdeutz - close - 3 Oct 2016
avatar rdeutz rdeutz - merge - 3 Oct 2016
avatar brianteeman
brianteeman - comment - 9 Oct 2016

Removed RTC label

avatar joomla-cms-bot joomla-cms-bot - change - 9 Oct 2016
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment