No Code Attached Yet
avatar mrownicki
mrownicki
19 Jan 2022

Hi. Core extension redirect not working in J4.x

Steps to reproduce the issue

Make redirect /custom to /exist-alias-url
simple redirect 301

Expected result

redirect to /exist-alias-url

Actual result

Error 500

Error:
Call to a member function updateObject() on null

at nowa/plugins/system/redirect/redirect.php:243
at PlgSystemRedirect->handleError(object(ErrorEvent))
(nowa/libraries/vendor/joomla/event/src/Dispatcher.php:486)
at Joomla\Event\Dispatcher->dispatch('onError', object(ErrorEvent))
(nowa/libraries/src/Application/EventAware.php:111)
at Joomla\CMS\Application\WebApplication->triggerEvent('onError', object(ErrorEvent))
(nowa/libraries/src/Application/CMSApplication.php:309)
at Joomla\CMS\Application\CMSApplication->execute()
(nowa/includes/app.php:63)
at require_once('/public_html/nowa/includes/app.php')
(nowa/index.php:32)

screen shot 2022-01-19 at 14 39 34

System information (as much as possible)

Joomla migrated from 3.10.4 to Joomla 4.0.5 and update 4.0.6
PHP 7.4
.Htaccess original
Test on Cassiopeia
DB is correct, no errors.

Additional comments

I think that is an urgent problem.

avatar mrownicki mrownicki - open - 19 Jan 2022
avatar mrownicki mrownicki - change - 19 Jan 2022
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 19 Jan 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 19 Jan 2022
avatar pmleconte
pmleconte - comment - 19 Jan 2022

Please check #36733

avatar richard67 richard67 - change - 19 Jan 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-01-19 15:22:35
Closed_By richard67
avatar richard67 richard67 - close - 19 Jan 2022
avatar richard67
richard67 - comment - 19 Jan 2022

Closing as duplicate repost, see precious issue #36730 and pull request #36733 for the solution.

@mrownicki To solve the problem, apply the changes from that pull request. A FAQ document for 4.0.6 will be written soon.

avatar mrownicki
mrownicki - comment - 19 Jan 2022

@richard67
Thank you! Great info!


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

Add a Comment

Login with GitHub to post a comment