J4.x

Les redirections du plugin Système - Redirection (s'il est activé) provoquent des erreurs 500

From Joomla! Documentation

Revision as of 05:26, 23 January 2022 by Daneel (talk | contribs) (Created page with "Les redirections du plugin Système - Redirection (s'il est activé) provoquent des erreurs 500")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎日本語


Joomla 4.0.6 (only) has a small regression reported affecting only sites that use the System - Redirect plugin. This plugin is disabled by default, so only very few sites may be affected. If your site uses this Redirect plugin, either stay at Joomla 4.0.5, waiting for Joomla 4.0.7 (which will be released only if needed) or next scheduled Joomla 4.1, due February 15th 2022. If you use this plugin and already upgraded to 4.0.6, you can apply one of the easy fixes below.

Errors reported

Bug report #36730: System Redirect Plugin has a regression bug in Joomla 4.0.6 affecting only its redirects which display Internal Server Error 500 instead of redirecting.

Versions affected

General Information

This pertains only to Joomla! version(s): 4.0.6

What is the cause

This is due to a PHP error in the Redirect plugin on updating the corresponding redirect counter, that is uncatched.

How to fix

If you use the "System - Redirects" plugin and already upgraded to Joomla 4.0.6, you have the choice of one of these fixes:

bugfix #36733] by editing file plugins/system/redirect/redirect.php and changing the part "$db->" to "$this->db->" on line 243 as shown in the diff on bugfix #36733.