Comments (3)
As a side note, the .zip file I downloaded matches the master branch.
from counter.
From previous release I've been added some new for counter parameters. I'm too busy and lazy :) for create update script.
For update
- recreate counter
- 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.
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)
- Note Force SSL HOT 3
- asstes/js/minicolors.min.js HOT 6
- Add an option to get stats from today and yesterday HOT 3
- Call to undefined method Piwik\Plugin\Manager::returnLoadedPluginsInfo() HOT 2
- Sequence 'piwik_archive_numeric_2015_01' not found. HOT 2
- Issue with Counter 2.0.9
- Установка стартового значения для счетчика PIWIK HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from counter.