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

Column 'visit_total_interactions' is missing #11074

Closed
billtzim opened this issue Dec 24, 2016 · 9 comments
Closed

Column 'visit_total_interactions' is missing #11074

billtzim opened this issue Dec 24, 2016 · 9 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@billtzim
Copy link

Logs show the following error

Piwik (tracker): Error query: fetch() failed: Unknown column 'visit_total_interactions' in 'field list'.....

I see it was added recently ( 1071476 ) but there is no create reference for it in the Mysql Schema

@mattab
Copy link
Member

mattab commented Dec 26, 2016

There is no reference because the code automagically should detect it and offer to add the new field.

Do the files plugins/Actions/Columns/InteractionPosition.php and plugins/Actions/Columns/VisitTotalInteractions.php exist in your Piwik?

@mattab
Copy link
Member

mattab commented Dec 26, 2016

I would asume that the files are missing in your Piwik. If so, please re-upload all files from Piwik 3.

If they are present, please re-open this issue

@mattab mattab closed this as completed Dec 26, 2016
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Dec 26, 2016
@billtzim
Copy link
Author

Hello, our piwik installation is not missing the mentioned files

@mattab mattab reopened this Dec 26, 2016
@mattab
Copy link
Member

mattab commented Dec 26, 2016

very interesting @billtzim ....

@tsteur do you have some idea how, when both files plugins/Actions/Columns/InteractionPosition.php and plugins/Actions/Columns/VisitTotalInteractions.php exist, yet the updater does not trigger to add those columns?

@tsteur
Copy link
Member

tsteur commented Dec 26, 2016

not without investigating. would say actions plugin is disabled. But then it should also not track anything into that column

@billtzim
Copy link
Author

billtzim commented Dec 26, 2016

I have tried to deactivate / activate the Actions and Live plugins as i have read in other posts but the behaviour remains

@tolisvv
Copy link

tolisvv commented Dec 27, 2016

I added the column manually
alter table piwik_log_visit add column visit_total_interactions MEDIUMINT UNSIGNED DEFAULT 0;

@mattab
Copy link
Member

mattab commented Feb 20, 2017

For now we can't reproduce this issue, but if it occurs again in the future we can hopefully find the root cause

@mattab mattab closed this as completed Feb 20, 2017
@piwikoper
Copy link

Hi gentlemen
We did face a very similar issue with another column. The add column statement couldn't be executed since we did not have sufficient space on OS level to store a copy of the table:

mysql> alter table piwik_log_link_visit_action add column interaction_position SMALLINT UNSIGNED DEFAULT NULL;
ERROR 1114 (HY000): The table 'piwik_log_link_visit_action' is full

We do have the assumption that the return code of the SQL statement might not be checked properly and the failure of the execution is not detected on application level.
We did add some storage and it was working perfectly.

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

5 participants