<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Transition Technology: Ticket #660: Piwik 2.0</title>
    <link>http://localhost:8080/trac/ticket/660</link>
    <description>&lt;p&gt;
The new version of Piwik will be out soon, the &lt;a class="ext-link" href="http://piwik.org/blog/2013/12/piwik-2-0-release-candidate/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;Piwik 2.0 Release Candidate&lt;/a&gt; just came out.
&lt;/p&gt;
&lt;p&gt;
This ticket has beed created to document the upgrade.
&lt;/p&gt;
</description>
    <language>en-us</language>
    <image>
      <title>Transition Technology</title>
      <url>/trac/chrome/site/TransitionNetwork-Logo-Web-Small.jpg</url>
      <link>http://localhost:8080/trac/ticket/660</link>
    </image>
    <generator>Trac 0.12.5</generator>
    <item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Thu, 19 Dec 2013 11:01:09 GMT</pubDate>
      <title>hours, status, totalhours changed; resolution set</title>
      <link>http://localhost:8080/trac/ticket/660#comment:1</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/660#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;1.0&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;fixed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;1.0&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Pwiki 2.0.1 came out yesterday, more info:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="http://piwik.org/changelog/piwik-2-0/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://piwik.org/changelog/piwik-2-0/&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a class="ext-link" href="http://piwik.org/blog/2013/12/piwik-2-0-release-announced-biggest-best-release-yet/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://piwik.org/blog/2013/12/piwik-2-0-release-announced-biggest-best-release-yet/&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
Following &lt;a class="wiki" href="http://localhost:8080/trac/wiki/PiwikServer#Updates"&gt;wiki:PiwikServer#Updates&lt;/a&gt;
&lt;/p&gt;
&lt;pre class="wiki"&gt;sudo -i
cd /web/stats.transitionnetwork.org/
cp piwik/config/config.ini.php .
&lt;/pre&gt;&lt;p&gt;
Switch off the recording of stats by adding this to &lt;tt&gt;/web/stats.transitionnetwork.org/piwik/config/config.ini.php&lt;/tt&gt;
&lt;/p&gt;
&lt;pre class="wiki"&gt;[Tracker]
record_statistics = 0
&lt;/pre&gt;&lt;p&gt;
Download, extract, and update the database:
&lt;/p&gt;
&lt;pre class="wiki"&gt;wget "http://piwik.org/latest.zip" -O latest.zip
unzip latest.zip
cp config.ini.php piwik/config/
chown -R www-data:www-data piwik/
php /web/stats.transitionnetwork.org/piwik/index.php -- "module=CoreUpdater"
&lt;/pre&gt;&lt;p&gt;
The last step, which updates the database, took a long time to run -- the database is 2.6G.
&lt;/p&gt;
&lt;p&gt;
Checking the settings:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
GeoIP plugin is not compatible with Piwik 2.0.1.
If you've been using this plugin, maybe you can find a more recent version in the Marketplace. If not, you may want to uninstall it.
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
GeoIP plugin was uninstalled, we are using the GeoIP (HTTP Server Module) -- GeoIP HTTP headers are added by Nginx.
&lt;/p&gt;
&lt;p&gt;
There are no issues reported on the System Check apart from:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
Database abilities         LOAD DATA INFILE
&lt;/p&gt;
&lt;p&gt;
Using LOAD DATA INFILE will greatly speed Piwik's archiving process up. To make it available to Piwik, try updating your PHP &amp;amp; MySQL software and make sure your database user has the FILE privilege.
&lt;/p&gt;
&lt;p&gt;
If your Piwik server tracks high traffic websites (eg. &amp;gt; 100,000 pages per month), we recommend to try fix this problem.
Error:
&lt;/p&gt;
&lt;pre class="wiki"&gt;Try #1: LOAD DATA INFILE : SQLSTATE[28000]: Invalid authorization specification: 1045 Access denied for user 'stats'@'localhost' (using password: YES)[28000],
Try #2: LOAD DATA LOCAL INFILE : SQLSTATE[42000]: Syntax error or access violation: 1148 The used command is not allowed with this MySQL version[42000]
&lt;/pre&gt;&lt;p&gt;
Troubleshooting: FAQ on piwik.org &lt;a class="ext-link" href="http://piwik.org/faq/troubleshooting/#faq_194"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://piwik.org/faq/troubleshooting/#faq_194&lt;/a&gt;
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
However the suggestion has a problem:
&lt;/p&gt;
&lt;pre class="wiki"&gt;mysql&amp;gt; GRANT FILE ON stats.* TO 'stats'@'localhost';
ERROR 1221 (HY000): Incorrect usage of DB GRANT and GLOBAL PRIVILEGES
&lt;/pre&gt;&lt;p&gt;
The answer to this is here, &lt;a class="ext-link" href="http://stackoverflow.com/questions/13552206/grant-file-on-just-one-database"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://stackoverflow.com/questions/13552206/grant-file-on-just-one-database&lt;/a&gt; so:
&lt;/p&gt;
&lt;pre class="wiki"&gt;mysql&amp;gt; GRANT FILE ON *.* TO 'stats'@'localhost';
Query OK, 0 rows affected (0.00 sec)
&lt;/pre&gt;&lt;p&gt;
And that has resolved the "Database abilities" issue.
&lt;/p&gt;
&lt;p&gt;
Another two plugin issues:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
SecurityInfo plugin is not compatible with Piwik 2.0.1.
If you've been using this plugin, maybe you can find a more recent version in the Marketplace. If not, you may want to uninstall it.
&lt;/p&gt;
&lt;p&gt;
VisitorGenerator plugin is not compatible with Piwik 2.0.1.
If you've been using this plugin, maybe you can find a more recent version in the Marketplace. If not, you may want to uninstall it.
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
So they were uninstalled.
&lt;/p&gt;
&lt;p&gt;
The PSE : Person Segemnt were deleted as noted on &lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/663#comment:1" title="task: De-commission the PSE (closed: fixed)"&gt;ticket:663#comment:1&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
The Transition Culture segment I set up was based on "Page URL contains &lt;tt&gt;/blogs/rob-hopkins/&lt;/tt&gt;" and someone had added an additional one based on "Page URL contains &lt;tt&gt;http://www.transitionnetwork.org/blogs/rob-hopkins&lt;/tt&gt;", this was deleted as it will miss all HTTPS accesses to Robs blog and it is also duplication.
&lt;/p&gt;
&lt;p&gt;
There are now just 3 simple segment reports:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;PSE : URL Contains &lt;tt&gt;/pse/&lt;/tt&gt;
&lt;/li&gt;&lt;li&gt;Social Reporters : URL Contains &lt;tt&gt;/stories/&lt;/tt&gt;
&lt;/li&gt;&lt;li&gt;Transition Culture : URL Contains &lt;tt&gt;/blogs/rob-hopkins/&lt;/tt&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
Accessing the Visitoor log these was this error:
&lt;/p&gt;
&lt;pre class="wiki"&gt;An exception has been thrown during the rendering of a template ("Unable to create the cache directory (/web/stats.transitionnetwork.org/piwik/tmp/templates_c/67/d7).") in "@CoreHome/_dataTable.twig" at line 29.
&lt;/pre&gt;&lt;p&gt;
That was fixed with:
&lt;/p&gt;
&lt;pre class="wiki"&gt;chown -R www-data:www-data /web/stats.transitionnetwork.org/piwik/tmp/
&lt;/pre&gt;&lt;p&gt;
iPhone and Android users with Pwiki accounts should also upgrade their Piwki apps, see &lt;a class="ext-link" href="http://piwik.org/blog/2013/12/piwik-mobile-2-changes-detail/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://piwik.org/blog/2013/12/piwik-mobile-2-changes-detail/&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
I have updated the &lt;a class="wiki" href="http://localhost:8080/trac/wiki/PiwikServer"&gt;wiki:PiwikServer&lt;/a&gt; page this ticket is now good to close.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Thu, 19 Dec 2013 14:02:11 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/660#comment:2</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/660#comment:2</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.5&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;1.0&lt;/em&gt; to &lt;em&gt;1.5&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
The custom logo has gone with the upgrade to the new templates, despite having the following set in &lt;tt&gt;/web/stats.transitionnetwork.org/piwik/config/config.ini.php&lt;/tt&gt;:
&lt;/p&gt;
&lt;pre class="wiki"&gt;[branding]
use_custom_logo = 1
&lt;/pre&gt;&lt;p&gt;
These are the ones which are now used:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://stats.transitionnetwork.org/plugins/Morpheus/images/logo-header.png"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://stats.transitionnetwork.org/plugins/Morpheus/images/logo-header.png&lt;/a&gt; 127x34
&lt;/li&gt;&lt;li&gt;&lt;a class="ext-link" href="https://stats.transitionnetwork.org/plugins/CoreHome/images/favicon.ico"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://stats.transitionnetwork.org/plugins/CoreHome/images/favicon.ico&lt;/a&gt; 16x16
&lt;/li&gt;&lt;li&gt;&lt;a class="ext-link" href="https://stats.transitionnetwork.org/plugins/Morpheus/images/logo.png"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://stats.transitionnetwork.org/plugins/Morpheus/images/logo.png&lt;/a&gt; 250x67
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
So, scaled / ratio fixed TN images were generated and uploaded:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="http://penguin.transitionnetwork.org/favicon.ico"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://penguin.transitionnetwork.org/favicon.ico&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a class="ext-link" href="http://penguin.transitionnetwork.org/logo.png"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://penguin.transitionnetwork.org/logo.png&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a class="ext-link" href="http://penguin.transitionnetwork.org/logo-header.png"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://penguin.transitionnetwork.org/logo-header.png&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
So the following could be run to overwrite the files:
&lt;/p&gt;
&lt;pre class="wiki"&gt;wget http://penguin.transitionnetwork.org/favicon.ico -O /web/stats.transitionnetwork.org/piwik/plugins/CoreHome/images/favicon.ico
wget http://penguin.transitionnetwork.org/logo.png -O /web/stats.transitionnetwork.org/piwik/plugins/Morpheus/images/logo.png
wget http://penguin.transitionnetwork.org/logo-header.png -O /web/stats.transitionnetwork.org/piwik/plugins/Morpheus/images/logo-header.png
&lt;/pre&gt;&lt;p&gt;
And the docs have been updated &lt;a class="wiki" href="http://localhost:8080/trac/wiki/PiwikServer#Updates"&gt;wiki:PiwikServer#Updates&lt;/a&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>ed</dc:creator>

      <pubDate>Thu, 19 Dec 2013 15:26:48 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/660#comment:3</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/660#comment:3</guid>
      <description>
        &lt;p&gt;
Good work Chris. Looks good too. in 2014, TN will be able to produce some measurables based on the strategy, from which we can learn how to use the goals feature :)
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>