4.2.3.0-PRO - makes the Joomla API crash

1 Jahr 6 Monate her #13711 von kce_ict
4.2.3.0-PRO - makes the Joomla API crash wurde erstellt von kce_ict
Hi Victor,
I hope you are fine. Too bad we could not meet at #jd22dach

I have just installed 4.2.3.0-PRO on a website where I use the Joomla API.
But as soon as the plugin is enabled, the Joomla API throws an error.

Here is the log:

error Uncaught Throwable of type ArgumentCountError thrown with message "Too few arguments to function PlgContentSige::onContentPrepare(), 3 passed in [ROOT]/libraries/src/Plugin/CMSPlugin.php on line 279 and exactly 4 expected". Stack trace: #0 [ROOT]/libraries/src/Plugin/CMSPlugin.php(279): PlgContentSige->onContentPrepare()

Actually, a default value is necessary. Here is the fix at line 251 of /plugins/content/sige.php

Was
public function onContentPrepare($context, &$article, &$params, $limitstart): void

Should be
public function onContentPrepare($context, &$article, &$params, $limitstart = 0): void

Txs for confirming and for patching the next version :)

Marc Dechèvre aka Woluweb
Dieses Thema wurde gesperrt.
1 Jahr 6 Monate her - 1 Jahr 6 Monate her #13715 von Viktor
Bitte anmelden, um die Antwort zu sehen. Achtung: Eine gültige Subscription wird benötigt, um einen Account zu aktivieren.

Kubik-Rubik Joomla! Extensions
Folgende Benutzer bedankten sich: kce_ict
Dieses Thema wurde gesperrt.
Ladezeit der Seite: 0.128 Sekunden