Matomo plugin settings inaccessible in 3.3.0.19 after upgrading PHP to 8.0.30

Ramfra
Wed, 04 Dec 2024 07:55:24 +0000
Software Support

Describe the issue or problem
We use the Matomo plugin for several journals on our multi-journal installation. After upgrading PHP from 7.4.33 to 8.0.30, we can no longer access the settings for the plugin.

Steps I took leading up to the issue

1. Go to Matomo plugin under Installed plugins.

2. Click on Settings.

3. The system throws this error: Failed Ajax request or invalid JSON returned.

4. The plugin appears to be working for journals that previously had it enabled (before we upgraded PHP), but since we cannot access the settings, we can’t properly enable it for new journals.

In our test installation, we tried downgrading to PHP 7.4.33 and the plugin’s settings were then accessible again.

What application are you using?
OJS 3.3.0-19
PHP 8.0.30

Additional information
This is an excerpt from the PHP logs that our IT dept. thought might be relevant:

[03-Dec-2024 14:02:35 Europe/Stockholm] PHP Warning:  Declaration of PiwikSettingsForm::fetch($request) should be compatible with Form::fetch($request, $template = NULL, $display = false) in /var/www/html/ojs/plugins/generic/piwik/PiwikSettingsForm.inc.php on line 65
[03-Dec-2024 14:02:35 Europe/Stockholm] PHP Warning:  Declaration of PiwikSettingsForm::execute() should be compatible with Form::execute(...$functionArgs) in /var/www/html/ojs/plugins/generic/piwik/PiwikSettingsForm.inc.php on line 74

9 posts - 2 participants