Giter Site home page Giter Site logo

Comments (3)

aureq avatar aureq commented on May 18, 2024

As a side note, the .zip file I downloaded matches the master branch.

from counter.

Globulopolis avatar Globulopolis commented on May 18, 2024

From previous release I've been added some new for counter parameters. I'm too busy and lazy :) for create update script.
For update

  1. recreate counter
  2. update counter parameters via sql editor(phpmyadmin, sqlyog or something else)

in table "piwik_counter_sites"
found "params" field and add just before }
,"tpl_by_countries":"","tpl_by_countries_elem_id":""}

from counter.

aureq avatar aureq commented on May 18, 2024

Hi @Globulopolis

Thanks for the update. To me, recreating 98 counters isn't really an option. So I came with a different approach. Feel free to include it in the README file.

  • Perform a mysqldump on the table piwik_counter_sites: mysqldump -h localhost -u piwik -pPassW0rd --create-options --complete-insert=false --extended-insert=false piwik piwik_counter_sites > piwik_counter_sites.sql
  • Copy the dump for backup purpose: cp piwik_counter_sites.sql piwik_counter_sites.sql.orig
  • Add the missing bits: cat piwik_counter_sites.sql | sed -e 's#nbvisit\"}#nbvisit\",\"tpl_by_countries\":\"\",\"tpl_by_countries_elem_id\":\"\"}#g' > piwik_counter_sites.fixed.sql
  • Inject the modified table dump into production: mysql -h localhost -u piwik -pPassW0rd piwik < piwik_counter_sites.fixed.sql

Make sure you have the double backslash before the double quotes (\")

from counter.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.