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
{{ message }}
This repository was archived by the owner on Nov 11, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 11, 2026. It is now read-only.
Can not activate plugin, Foreign key constraint is incorrectly formed #1
When activating the plugin, I get There was a problem installing the plugin LoginOIDC:
SQLSTATE[HY000]: General error: 1005 Can't create table piwik.piwik_loginoidc_provider (errno: 150 "Foreign key constraint is incorrectly formed")
If you want to hide this message you must remove the following line under the [Plugins] entry in your 'config/config.ini.php' file to disable this plugin.
Plugins[] = LoginOIDC
If this plugin has already been installed, you must add the following line under the [PluginsInstalled] entry in your 'config/config.ini.php' file:
PluginsInstalled[] = LoginOIDC
Activity
dominik-th commentedon Apr 2, 2019
Hi Luc,
any chance you are using a very old Piwik installation?
In 2014 they switched the default database engine from MyISAM to InnoDB.
If your users table is still using MyISAM you might get the specified error.
You can find infos on how to update your database engine here:
https://matomo.org/faq/troubleshooting/faq_25610/
Important is your
piwik.piwik_usertable.Please remember to create a backup beforehand.
ldelouw commentedon Apr 3, 2019
Hi,
It is indeed based on a very old installation subsequently updated. After migration to InnoDB the error disappeared.
Thanks a lot,
Luc