De nieuwe Joomla! 1.5.17 versie bevat een auto-plugin disable functie die op de website kan leiden tot onverwacht gedrag of zelfs tot het niet werken van de website.
Gebruikers die problemen ervaren de volgende oplossing toepassen. Deze bestaat uit het verwijderen van de volgende regels (122-136) uit het bestand helper.php in de map libraries/joomla/plugin.
if(!$shutdown_handler_installed)
{
// only register the shutdown function if we are capable of checking the errors (reqs PHP 5.2+)
if (version_compare(“5.2″, phpversion(), “<=”))
{
// you can only register a static method if it is declared static
// we can’t declare static b/c it breaks on PHP4
// therefore we instantiate the helper for this one purpose
$pluginHelper = new JPluginHelper;
register_shutdown_function(array($pluginHelper, ’shutdown’));
}
// we may not have installed the handler, but setting this to true
// will prevent us from continually running the version compare
$shutdown_handler_installed = true;
}
De wijziging heeft geen ander effect dan het verwijderen van de auto-plugin disable functie uit de Joomla! 1.5.17 installatie.
Oorspronkelijke artikel in het Engels door Johan Janssens op blog.joomlatools.eu