Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core Provider plugin Column class has no $columnType property and prevents location_provider field from being created in piwik_log_visit table #11225

Closed
petejohnson84 opened this issue Jan 18, 2017 · 1 comment
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@petejohnson84
Copy link

I ran into an issue installing the core Provider plugin by adding it to the [Plugins] and [PluginsInstalled] sections in config.ini.php. The plugin seems to be installed but the table piwik_log_visit is missing the column location_provider. Even deactivating and activating the Provider plugin will not create the column. I even tried running the core:update script via command line which said database was up-to-date. I noticed that other core plugins that have Provider class extending VisitDimension class have $columnType property. After adding $columnType property and running the core:update the column was created. Note that a fresh install without Provider in config.ini.php, activating through UI will create column correctly. The bug can be reproduced only by installing via config.ini.php. I think code should be changed to include $columnType property in the Provider plugin Provider class.

@mattab
Copy link
Member

mattab commented Feb 18, 2017

I ran into an issue installing the core Provider plugin by adding it to the [Plugins] and [PluginsInstalled] sections in config.ini.php.

This is not the correct way to install plugins. You need to click "activate" in the Administration > Plugins, or install it via the console command ./console plugin:activate

@mattab mattab closed this as completed Feb 18, 2017
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Feb 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

2 participants