8000 Can not activate plugin, Foreign key constraint is incorrectly formed · Issue #1 · dominik-th/matomo-plugin-LoginOIDC · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Nov 11, 2026. It is now read-only.
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

Closed

Description

@ldelouw

Hi,

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

Thanks,

Luc

Activity

  1. dominik-th commented on Apr 2, 2019

    @dominik-th
    Owner

    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_user table.

    Please remember to create a backup beforehand.

  2. ldelouw commented on Apr 3, 2019

    @ldelouw
    Author

    Hi,

    It is indeed based on a very old installation subsequently updated. After migration to InnoDB the error disappeared.

    Thanks a lot,

    Luc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0