? Pending

User tests: Successful: Unsuccessful:

avatar richard67
richard67
18 Jan 2022

Pull Request for Issue #36730 .

Summary of Changes

Fix the error not using the injected database object but an undefined $db variable coming from the upmerge of PR #34640 from 3.10-dev into 4.0-dev 10 days ago.

Thanks to @SniperSister for the hint.

Testing Instructions

Either just code review, or have a site updated from 4.0.5 to 4.0.6 where you can reproduce issue #36730 and check if this fix solves it.

Actual result BEFORE applying this Pull Request

Unhandled PHP error in file "plugins/system/redirect/redirect.php", line 243 causes a server error when having redirects.

Expected result AFTER applying this Pull Request

No unhandled PHP error in file "plugins/system/redirect/redirect.php", line 243 causes a server error when having redirects.

Documentation Changes Required

None.

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
5.00

avatar richard67 richard67 - open - 18 Jan 2022
avatar richard67 richard67 - change - 18 Jan 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 18 Jan 2022
Category Front End Plugins
avatar richard67 richard67 - change - 18 Jan 2022
The description was changed
avatar richard67 richard67 - edited - 18 Jan 2022
avatar richard67 richard67 - change - 18 Jan 2022
The description was changed
avatar richard67 richard67 - edited - 18 Jan 2022
avatar brianteeman
brianteeman - comment - 18 Jan 2022

guess that @wilsonge might have one more release to do after all. ;)

avatar richard67
richard67 - comment - 18 Jan 2022

guess that @wilsonge might have one more release to do after all. ;)

Yes, it looks like something we should fix quickly, either with a quick release or with a known issue in documentation for 4.0.6.

avatar richard67
richard67 - comment - 18 Jan 2022

In fact it is a tricky error. When doing the upmerge and checking the differences, you don't really see that. You really have to know the complete file to see that there is no local $db variable anymore in that routine but an injected class variable to be used.

avatar SniperSister
SniperSister - comment - 18 Jan 2022

Tested the patch, works fine!

avatar richard67
richard67 - comment - 18 Jan 2022

Tested the patch, works fine!

@SniperSister Could you mark that in the issue tracker?

avatar ipresencesa
ipresencesa - comment - 18 Jan 2022

Version 4.0.7-dev #36733 is working like a charm.

Thank you

avatar richard67
richard67 - comment - 18 Jan 2022

Version 4.0.7-dev #36733 is working like a charm.

Thank you

@ipresencesa Please go to the issue tracker here https://issues.joomla.org/tracker/joomla-cms/36733 and use the "Test this" button to mark your test result. Thanks in advance.

avatar wilsonge wilsonge - change - 18 Jan 2022
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2022-01-18 15:37:44
Closed_By wilsonge
Labels Added: ?
avatar wilsonge wilsonge - close - 18 Jan 2022
avatar wilsonge wilsonge - merge - 18 Jan 2022
avatar mahbr
mahbr - comment - 18 Jan 2022

I have tested this item successfully on c01655e

Thanks very much for the rapid and working solution :-)


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

avatar mahbr mahbr - test_item - 18 Jan 2022 - Tested successfully
avatar richard67
richard67 - comment - 18 Jan 2022

Credits should go to @SniperSister because he pointed me to that thing I've missed when checking the call stack posted in the issue.

Add a Comment

Login with GitHub to post a comment