? Pending

User tests: Successful: Unsuccessful:

avatar wilsonge
wilsonge
28 Jul 2021

Pull Request for Issue #34908 .

Summary of Changes

Add new category for logging system errors within Joomla Core to file. This is something we should expand with additional errors we want don't want to show to end users of the site (in whatever client - remember editors in the backend may not be fully trusted users!)

Testing Instructions

Please follow #34908

Alternatively - in your database go to the template styles column and change the template name from atum to an alternative such as atum2.

Actual result BEFORE applying this Pull Request

Error shown on screen

Expected result AFTER applying this Pull Request

Error logged to file (by default JROOT/administrator/logs/joomla_core_errors.php). File name can be debated to death obviously.

Documentation Changes Required

Yes - we should include this file in documentation on how to debug core - even if it's just a one off!

avatar wilsonge wilsonge - open - 28 Jul 2021
avatar wilsonge wilsonge - change - 28 Jul 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 28 Jul 2021
Category Libraries
avatar toivo toivo - test_item - 28 Jul 2021 - Tested successfully
avatar toivo
toivo - comment - 28 Jul 2021

I have tested this item successfully on 07cdacc

Tested successfully in RC6-dev of 28 July using PHP 8.0.8 in Wampserver 3.2.5


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

avatar Abernyte-Git Abernyte-Git - test_item - 29 Jul 2021 - Tested successfully
avatar Abernyte-Git
Abernyte-Git - comment - 29 Jul 2021

I have tested this item successfully on 07cdacc


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

avatar richard67 richard67 - change - 29 Jul 2021
Status Pending Ready to Commit
Labels Added: ?
avatar richard67
richard67 - comment - 29 Jul 2021

RTC


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

avatar richard67 richard67 - change - 30 Jul 2021
Status Ready to Commit Pending
avatar richard67
richard67 - comment - 30 Jul 2021

Back to pending due to discussion in reviews above.


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

avatar wilsonge wilsonge - change - 16 Aug 2021
Labels Added: ? ?
Removed: ?
avatar richard67 richard67 - test_item - 16 Aug 2021 - Tested successfully
avatar richard67
richard67 - comment - 16 Aug 2021

I have tested this item successfully on 258da30

After update from 3.10-dev to the patched package created by drone for this PR, the error alert about the missing template is not shown anymore in backend.

Instead of this, the error is logged into file administrator/logs/joomla_core_errors.php:


#<?php die('Forbidden.'); ?>
#Date: 2021-08-16 21:14:28 UTC
#Software: Joomla! 4.0.0-rc7-dev+pr.34961 Development [ Mañana ] 10-August-2021 23:02 GMT

#Fields: datetime	priority clientip	category	message
2021-08-16T21:14:28+00:00	ERROR 192.168.98.1	system	The template for this display is not available.

This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/34961.
avatar Fedik Fedik - test_item - 16 Aug 2021 - Tested successfully
avatar Fedik
Fedik - comment - 16 Aug 2021

I have tested this item successfully on 258da30

by review


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

avatar richard67 richard67 - change - 16 Aug 2021
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 16 Aug 2021

RTC


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

avatar wilsonge wilsonge - change - 16 Aug 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-08-16 21:43:48
Closed_By wilsonge
Labels Added: ?
Removed: ? ?
avatar wilsonge wilsonge - close - 16 Aug 2021
avatar wilsonge wilsonge - merge - 16 Aug 2021

Add a Comment

Login with GitHub to post a comment