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

DB field piwik_log_visit.visit_total_actions too small #9565

Closed
theyosh opened this Issue Jan 19, 2016 · 5 comments

Comments

Projects
None yet
3 participants
@theyosh
Copy link
Contributor

theyosh commented Jan 19, 2016

Again, the database field piwik_log_visit.visit_total_actions is to small. A smallint(5) is not enough. I get the error below. Current value already is: 115011

So also increase this field. I suggest just to use integers. The performance loss between smallint(5) and int(11) is not something to worry about. Also the extra space this will take, is not a problem.

Found in version 2.15.0

Please consider to increase this field so that it does not give the error below.

2016/01/19 17:01:20 [error] 22722#0: *73840 FastCGI sent in stderr: "PHP message: Error in Piwik (tracker): Error query: SQLSTATE[22003]: Numeric value out of range: 1264 Out of range value for column 'visit_total_actions' at row 1 In query: UPDATE piwik_log_visit SET idvisitor = ?, visit_last_action_time = ?, visit_exit_idaction_url = ?, visit_total_actions = visit_total_actions + 1 , visit_total_time = ?, custom_var_k1 = ?, custom_var_v1 = ? WHERE idsite = ? AND idvisit = ? Parameters: array ( 0 => '�� C?��Q', 1 => '2016-01-18 18:51:20', 2 => 377733, 3 => 47156, 4 => 'Not-Bot', 5 => 'PHP-SOAP/5.4.16', 6 => 1, 7 => 378708, )" while reading response header from upstream, client: 82.150.152.12, server: stats.streamzillacdn.com, request: "POST /piwik.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "stats.streamzillacdn.com"

@tsteur

This comment has been minimized.

Copy link
Member

tsteur commented Jan 19, 2016

We should increase it indeed. Similar to #9564 we cannot do this in Piwik 2.X but would be nice to have it in Piwik 3. Since we implemented the heart beat feature the visit_total_time might increase a lot showing hours or days for some users. From my personal browsing behaviour I can tell I have some tabs open for days or weeks without reloading etc and for some it might not stop sending ping requests.

@tsteur tsteur added the Bug label Jan 19, 2016

@tsteur tsteur added this to the 3.0.0-b2 milestone Jan 19, 2016

@tsteur

This comment has been minimized.

Copy link
Member

tsteur commented Jan 19, 2016

We should also review in general some other fields if more fields need to be updated.

@mattab mattab changed the title DB field piwik_log_visit.visit_total_actions to small DB field piwik_log_visit.visit_total_actions too small Jan 22, 2016

@mattab mattab modified the milestones: 3.0.0-b2, 3.0.0-b1 Jan 22, 2016

tsteur added a commit that referenced this issue Apr 4, 2016

@tsteur

This comment has been minimized.

Copy link
Member

tsteur commented Apr 4, 2016

@mattab should we also increase any of

  • visitor_count_visits' => 'SMALLINT(5)
  • visit_total_events' => 'SMALLINT(5)
  • visit_total_time' => 'SMALLINT(5)

?

@mattab

This comment has been minimized.

Copy link
Member

mattab commented Apr 4, 2016

@tsteur 👍 as these would become an issue at some point in the future otherwise.

@tsteur

This comment has been minimized.

Copy link
Member

tsteur commented Apr 5, 2016

done

tsteur added a commit that referenced this issue Apr 18, 2016

DB field piwik_log_visit.visit_total_actions too small (#10002)
* fixes #9565 DB field piwik_log_visit.visit_total_actions too small

* change type of some db columns that are too small

tsteur added a commit that referenced this issue Jun 3, 2016

DB field piwik_log_visit.visit_total_actions too small (#10002)
* fixes #9565 DB field piwik_log_visit.visit_total_actions too small

* change type of some db columns that are too small

tsteur added a commit that referenced this issue Aug 29, 2016

Better UI for Piwik 3, more responsive, faster, lots of other fixes (#…
…10397)

* improved ui and responsiveness

* improve rss widget

* commit changes for ui again, got lost after the last commit

* fix more tests

* restoring files

* fix fonts

* fix more tests

* more test fixes

* fix some system tests

* fix tests

* fix system and ui tests

* fix updater tests

* make a page as loaded once the callback is called

* enable verbose

* more verbose output

* enable phantomjs debug flag

* debug should be a phantomjs option

* trying to fix installation tests

* fixes #10173 to not compile css files as less

* trying to minimize js/css requests to hopefully prevent random ui test fails

* disable verbose mode

* fix updater and installation

* lots of bugfixes and ui tweaks

* fix reset dashboard

* various bugfixes

* fix integration tests

* fix text color

* hoping to fix installation tests this way

* cache css/js resources for an hour, should speed up tests and prevent some random issues

* we need to avoid installing plugins multiple times at the same time when requesting resources

* finally getting the colors right again

* fix most tests, more tests for theme

* use an h2 element for titles for better accessibility

* fix headline color

* use actual theme text color (piwik-black)

* fix small font size was applied on all p elements

* fix tests

* now improving all the datatables

* trying to ignore images for visitor log

* Revert "trying to ignore images for visitor log"

This reverts commit ad1ff72.

* fix tests

* fix we had always ignored a max label width

* trying to fix file permissions

* fix more file permissions

* Improved plugins update API (#10028)

* refs #7983 let plugins add or remove fields to websites and better settings api

* * Hide CorePluginsAdmin API methods
* More documentation
* Added some more tests

* improved updates API for plugins

* better error code as duplicate column cannot really happen when not actually renaming a colum

Conflicts:
	core/Updates/3.0.0-b1.php
	plugins/CoreUpdater/Commands/Update/CliUpdateObserver.php

* fix DB field piwik_log_visit.location_provider too small (#10003)

* fixes #9564 fix DB field piwik_log_visit.location_provider too small

* use new plugins updater API

* DB field piwik_log_visit.visit_total_actions too small (#10002)

* fixes #9565 DB field piwik_log_visit.visit_total_actions too small

* change type of some db columns that are too small

* fix tests (#10040)
Conflicts:
	plugins/CoreAdminHome/Menu.php
	plugins/Goals/Menu.php
	plugins/MobileMessaging/Menu.php
	plugins/SitesManager/Menu.php
	plugins/UsersManager/Menu.php
	tests/PHPUnit/System/expected/test_apiGetReportMetadata__API.getWidgetMetadata.xml

* fix more file permissions

* repair more file permissions

* repair more file permissions

* trying to make ui tests work again, the table was missing

* fix some encoding issues

* cross browser fixes and usability improvement

* move back the config icon, need to find a better solution later

* more cross browser fixes

* bugfixes

* fix ui tests

* fix encoding issue

* fix various issues with the ui tests when a test gets aborted

* also skip this visitor log test when aborted

* there were 3 css files that were loaded separately, merge them instead into one css

* forgot to add the actual manifest

* do not add manifest if custom logo is specified

* load font css files first as it was before merging them into big css

* fix link icon was not aligned anymore

* minor fixes

* setting it back to 4px

* in popovers the font variable was always ignored and a different font loaded

* forgot to update screenshots

* fix remaining tests

* this should fix an update error

* added 3 new widgets system check, system summary and plugin updates

* tweak new widgets content

* no page reload when changing date or segment

* in admin home show only enabled widgets

* refs #10295 use getMockBuilder instead of deprecated getMock

* fix some ui tests

* fix various bugs

* fix more tests

* fix ui tests

* add a space between loading image and loading message

* fix docs so they appear on developer.piwik.org

* improved documentation

* introduce new Widget::renderTemplate method for consistency with controllers

* remove no longer needed files

* testing system fonts

* fix strong was not really bold

* more useful system summary

* remove ubuntu font

* fix most tests and removed most em elements

* fix tests

* fix headline was very thin

* update submodule

* update submodules

* update submodule

* fix failing ui tests

* update submodules

@tsteur tsteur closed this Sep 13, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.