Hallo Joomla-Community.
Ich möchte meine Joomla Installation Version 1.0.4 auf eine neue PHP Version 7.3 upgraden.
Php-Support für Version 5 läuft aus.
Stelle ich die PHP-Version um, erhalte ich 2 Fehlermeldungen:
1) Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP;
2) Fatal error: Cannot use result of built-in function in write context
mein_pfad/includes/joomla.php on line 3426
Code
Fatal error: Cannot use result of built-in function in write context ... in includes/joomla.php
Betrifft vermutlich diesen Code:
/**
* Same as trigger but only returns the first event and
* allows for a variable argument list
* @param string The event name
* @return array The result of the first function call
*/
function call( $event ) {
$doUnpublished=false;
$args =& func_get_args();
array_shift( $args );
if (isset( $this->_events[$event] )) {
foreach ($this->_events[$event] as $func) {
if (function_exists( $func[0] )) {
if ($this->_bots[$func[1]]->published) {
return call_user_func_array( $func[0], $args );
}
}
}
}
return null;
}
}
Alles anzeigen
Frage dazu.
Was muss man am Code ändern, ist das nur im joomla.php zu ändern.?
Kann man das an dieser Stelle ausbessern und alles klappt? Auswirkungen auf Module?
Gibts dazu Ratschläge?
Besten Dank!