dominik-th / matomo-plugin-LoginOIDC

external authentication services for matomo
https://plugins.matomo.org/LoginOIDC/
GNU General Public License v3.0
42 stars 30 forks source link

Login works but logout gives fatal error #69

Closed Blackclaws closed 2 years ago

Blackclaws commented 2 years ago

Login with LoginOIDC works fine but logout gives this:

A fatal error occurred

The following error just broke Matomo (v4.9.1):

Undefined constant "Piwik\Plugins\LoginOIDC\loginoidc_idtoken"
in /var/www/html/plugins/LoginOIDC/LoginOIDC.php line 138            

Troubleshooting
Follow these steps to solve the issue or report it to the team:

    If you have just updated Matomo to the latest version, please try to restart your web server. This will clear the PHP opcache which may solve the problem.
    If this is the first time you see this error, please try refresh the page.
    If this error continues to happen, we appreciate if you send the [error report]() to the Matomo team.

If this error continues to happen you may want to send an [error report]() to your system administrator.

If you are Super User, but cannot login because of this error, you can still troubleshoot further. Follow these steps:
1) open the config/config.ini.php file and look for the salt value under [General].
2) edit this current URL you are viewing and add the following text (replacing salt_value_from_config by the salt value from the config file):

index.php?i_am_super_user=salt_value_from_config&....
dominik-th commented 2 years ago

Hi this has been fixed in PR #64

So far I just didn't get to release a new version