You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After changing from php version 7.4.33 to 8.1.13, matomo users with "Superuser access" right can not login any more
For all other user's with lower rights, login still works.
Behavior
A matomo error banner is displayed to the user:
"Error: no website was found in this Matomo installation.
Check the table '$siteTableName' in your database, it should contain your Matomo websites."
In the code at Plugin/Controller.php line 956 Piwik::hasUserSuperUserAccess()
block is entered and throws the exception.
public function redirectToIndex($moduleToRedirect, $actionToRedirect, $websiteId = null, $defaultPeriod = null,
$defaultDate = null, $parameters = array())
....
if (Piwik::hasUserSuperUserAccess()) {
$siteTableName = Common::prefixTable('site');
$message = "Error: no website was found in this Matomo installation.
<br />Check the table '$siteTableName' in your database, it should contain your Matomo websites.";
$ex = new NoWebsiteFoundException($message);
$ex->setIsHtmlMessage();
throw $ex;
}
Expected Behavior
Piwik::hasUserSuperUserAccess() should not return true in this context.
Why does it work with php7.4?
Possible Solution
I skipped the Piwik::hasUserSuperUserAccess() section -> login works.
My Environment
Matomo Version: 4.13.0
PHP Version: 8.1.13
Server Operating System: Linux/Ubuntu 5.4.0-135-generic
Webserver: nginx 1.22.1
Browser: Firefox 108.0.1
The text was updated successfully, but these errors were encountered:
jenger
added
Potential Bug
Something that might be a bug, but needs validation and confirmation it can be reproduced.
To Triage
An issue awaiting triage by a Matomo core team member
labels
Dec 28, 2022
I've tested Matomo 4.13 superuser login with PHP 8.1.13 and Piwik::hasUserSuperUserAccess() returns false during login as expected.
There are differences in boolean comparison between PHP 7.x and 8.x which could potentially cause this behaviour (https://www.php.net/manual/en/migration80.incompatible.php) but Matomo has been PHP8 compatible for quite a while now and I'm not aware of any related issues with superuser login.
Could you provide a list of the plugins you are using?
sgiehl
added
answered
For when a question was asked and we referred to forum or answered it.
and removed
Waiting for user feedback
Indicates the Matomo team is waiting for feedback from the author or other users.
Potential Bug
Something that might be a bug, but needs validation and confirmation it can be reproduced.
To Triage
An issue awaiting triage by a Matomo core team member
labels
Feb 9, 2023
After changing from php version 7.4.33 to 8.1.13, matomo users with "Superuser access" right can not login any more
For all other user's with lower rights, login still works.
Behavior
A matomo error banner is displayed to the user:
In the code at
Plugin/Controller.php line 956 Piwik::hasUserSuperUserAccess()
block is entered and throws the exception.
Expected Behavior
Piwik::hasUserSuperUserAccess() should not return true in this context.
Why does it work with php7.4?
Possible Solution
I skipped the Piwik::hasUserSuperUserAccess() section -> login works.
My Environment
The text was updated successfully, but these errors were encountered: