<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Transition Technology: Ticket #393: Upgrade Piwiki to 1.7</title>
    <link>http://localhost:8080/trac/ticket/393</link>
    <description>&lt;p&gt;
A new version is available:  &lt;a class="ext-link" href="http://piwik.org/blog/2012/02/new-features-in-piwik-1-7-screenshots/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://piwik.org/blog/2012/02/new-features-in-piwik-1-7-screenshots/&lt;/a&gt;
&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/393</link>
    </image>
    <generator>Trac 0.12.5</generator>
    <item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Sat, 18 Feb 2012 11:25:09 GMT</pubDate>
      <title>status changed; cc set</title>
      <link>http://localhost:8080/trac/ticket/393#comment:1</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/393#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;cc&lt;/strong&gt;
              &lt;em&gt;laura&lt;/em&gt;, &lt;em&gt;ed&lt;/em&gt; added
            &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;assigned&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 12 Mar 2012 12:38:41 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/393#comment:2</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/393#comment:2</guid>
      <description>
        &lt;p&gt;
This upgrade was done at the same time as &lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/394" title="maintenance: Upgrade Mediawiki to 1.18.1 (closed: fixed)"&gt;ticket:394&lt;/a&gt; and the time spent on this task is recorded on that ticket.
&lt;/p&gt;
&lt;p&gt;
Following the notes for the manual upgrade, &lt;a class="ext-link" href="http://piwik.org/update/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://piwik.org/update/&lt;/a&gt; and doing it initially  on kiwi, &lt;a class="ext-link" href="https://piwik.transitionnetwork.org/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://piwik.transitionnetwork.org/&lt;/a&gt;
&lt;/p&gt;
&lt;pre class="wiki"&gt;cd /web/piwik.transitionnetwork.org
cp piwik/config/config.ini.php config.ini.php.2012-03-12.bak
wget http://piwik.org/latest.zip -O piwik.1.7.1.zip
mv piwik piwik.bak
unzip piwik.1.7.1.zip
cp config.ini.php.2012-03-12.bak piwik/config/config.ini.php
chown -R www-data:www-data /web/piwik.transitionnetwork.org/piwik/themes
chown -R www-data:www-data /web/piwik.transitionnetwork.org/piwik/tmp
chown -R www-data:www-data /web/piwik.transitionnetwork.org/piwik/config
php /web/piwik.transitionnetwork.org/piwik/index.php -- "module=CoreUpdater"
&lt;/pre&gt;&lt;p&gt;
On the live server the additional step to disable Piwik Tracking, &lt;a class="ext-link" href="http://piwik.org/faq/how-to/#faq_111"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://piwik.org/faq/how-to/#faq_111&lt;/a&gt; should be done and also the new version should be extracted to /tmp and set up before it replaces the existing install.
&lt;/p&gt;
&lt;p&gt;
The live server update is still to be done but the dev site has been upgraded without issues.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 13 Mar 2012 13:45:47 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/393#comment:3</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/393#comment:3</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.8&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.8&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Upgrade on quince, first edit &lt;tt&gt;/web/stats.transitionnetwork.org/piwik/config/config.ini.php&lt;/tt&gt; and add the following to the &lt;tt&gt;[Tracker]&lt;/tt&gt; section, as per &lt;a class="ext-link" href="http://piwik.org/faq/how-to/#faq_111"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://piwik.org/faq/how-to/#faq_111&lt;/a&gt;
&lt;/p&gt;
&lt;pre class="wiki"&gt;record_statistics = 0
&lt;/pre&gt;&lt;p&gt;
Then:
&lt;/p&gt;
&lt;pre class="wiki"&gt;cd /web/stats.transitionnetwork.org
mkdir piwik.1.7.1
cd piwik.1.7.1
wget http://piwik.org/latest.zip -O piwik.1.7.1.zip
unzip piwik.1.7.1.zip
cd piwik
cp /web/stats.transitionnetwork.org/piwik/config/config.ini.php config/
chown -R www-data:www-data themes
chown -R www-data:www-data tmp
chown -R www-data:www-data config
cd /web/stats.transitionnetwork.org/
mv piwik piwik.bak ; mv piwik.1.7.1/piwik .
php /web/stats.transitionnetwork.org/piwik/index.php -- "module=CoreUpdater"
  PHP Fatal error:  Exception thrown without a stack frame in Unknown on line 0
  Fatal error: Exception thrown without a stack frame in Unknown on line 0
cd piwik
chown -R www-data:www-data tmp
&lt;/pre&gt;&lt;p&gt;
Then this error in the web interface:
&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;
Unable to load plugin 'DoNotTrack' because '/web/stats.transitionnetwork.org/piwik/plugins/DoNotTrack/DoNotTrack.php' couldn't be found.
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
Fixed by:
&lt;/p&gt;
&lt;pre class="wiki"&gt;cd /web/stats.transitionnetwork.org/
rsync -av piwik.bak/plugins/DoNotTrack/ piwik/plugins/
php /web/stats.transitionnetwork.org/piwik/index.php -- "module=CoreUpdater"
&lt;/pre&gt;&lt;p&gt;
Then the web interface has the following error:
&lt;/p&gt;
&lt;pre class="wiki"&gt;Fatal error: Class 'Piwik_Db_Schema_Myisam' not found in /web/stats.transitionnetwork.org/piwik/core/Db/Schema.php on line 139
&lt;/pre&gt;&lt;p&gt;
The only reference I could find to this error message doesn't help, &lt;a class="ext-link" href="http://forum.piwik.org/read.php?2,85650"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://forum.piwik.org/read.php?2,85650&lt;/a&gt; -- perhaps !InnoDB isn't supported, see &lt;a class="ext-link" href="http://dev.piwik.org/trac/ticket/2593"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://dev.piwik.org/trac/ticket/2593&lt;/a&gt; and &lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/396" title="maintenance: Migrate MySQL Databases from MyISAM to InnoDB (closed: fixed)"&gt;ticket:396&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
So switch the piwik database to Myisam:
&lt;/p&gt;
&lt;pre class="wiki"&gt;mysql -e "show tables in stats;" | tail --lines=+2 | xargs -i echo "ALTER TABLE \`{}\` ENGINE=MYISAM;" &amp;gt; stats_
cat stats_alter.sql | mysql stats
&lt;/pre&gt;&lt;p&gt;
Check that all tables are converted:
&lt;/p&gt;
&lt;pre class="wiki"&gt;echo "SHOW TABLE STATUS;" | mysql stats | grep -i INNODB
&lt;/pre&gt;&lt;p&gt;
Run the cronjob:
&lt;/p&gt;
&lt;pre class="wiki"&gt;su - www-data
/web/stats.transitionnetwork.org/piwik/misc/cron/archive.sh
&lt;/pre&gt;&lt;p&gt;
There is still the same error in the admin interface, not sure what to try next, I haven't been able to raise a ticket on the piwik trac but I have posted to their forum:
&lt;/p&gt;
&lt;p&gt;
&lt;a class="ext-link" href="http://forum.piwik.org/read.php?2,85650,page=1#msg-87181"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://forum.piwik.org/read.php?2,85650,page=1#msg-87181&lt;/a&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 13 Mar 2012 14:19:23 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/393#comment:4</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/393#comment:4</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.05&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;1.8&lt;/em&gt; to &lt;em&gt;1.85&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Matt suggested uploading one php file again, &lt;a class="ext-link" href="http://forum.piwik.org/read.php?2,85650,page=1#msg-85657"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://forum.piwik.org/read.php?2,85650,page=1#msg-85657&lt;/a&gt; I tried this:
&lt;/p&gt;
&lt;pre class="wiki"&gt;cd /web/stats.transitionnetwork.org/piwik/core/Db
mv Schema Schema.bak
svn co http://dev.piwik.org/svn/trunk/core/Db/Schema/
  A    Schema/Myisam.php
  Checked out revision 6040.
&lt;/pre&gt;&lt;p&gt;
It didn't solve the problem.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 13 Mar 2012 14:30:28 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/393#comment:5</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/393#comment:5</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.1&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;1.85&lt;/em&gt; to &lt;em&gt;1.95&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
I cleared the APC opcode Cache and restarted apache and tried running the cron job again, this time it generated an error:
&lt;/p&gt;
&lt;pre class="wiki"&gt;su - www-data
/web/stats.transitionnetwork.org/piwik/misc/cron/archive.sh
Starting Piwik reports archiving...
Archiving period = day for idsite = 1...
PHP Fatal error:  Call to undefined method Piwik_Config::getInstance() in /web/stats.transitionnetwork.org/piwi
/Schema/Myisam.php on line 437
Fatal error: Call to undefined method Piwik_Config::getInstance() in /web/stats.transitionnetwork.org/piwik/cor
ma/Myisam.php on line 437
&lt;/pre&gt;&lt;p&gt;
I switched back to the old &lt;tt&gt;Schema/Myisam.php&lt;/tt&gt; and the cron job runs without errors.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 14 Mar 2012 11:58:11 GMT</pubDate>
      <title>hours, status, totalhours changed; resolution set</title>
      <link>http://localhost:8080/trac/ticket/393#comment:6</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/393#comment:6</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.2&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;assigned&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;1.95&lt;/em&gt; to &lt;em&gt;2.15&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
The suggestion on the forum, which seemed crazy to me:
&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;
I had to remove APC completely and reinstall it. After that, everything was okay.
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;
&lt;a class="ext-link" href="http://forum.piwik.org/read.php?2,85650,page=1#msg-87189"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://forum.piwik.org/read.php?2,85650,page=1#msg-87189&lt;/a&gt;
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
Worked!
&lt;/p&gt;
&lt;pre class="wiki"&gt;cd /etc/php5/conf.d/
cp apc.ini apc.ini.bak
dpkg -r php-apc
aptitude install php-apc
cp apc.ini.bak apc.ini
apache2ctl restart
&lt;/pre&gt;&lt;p&gt;
So &lt;tt&gt;/web/stats.transitionnetwork.org/piwik/config/config.ini.php&lt;/tt&gt; was edited to remove &lt;tt&gt;record_statistics = 0&lt;/tt&gt; and docs updated &lt;a class="wiki" href="http://localhost:8080/trac/wiki/NewLiveServer#piwik"&gt;wiki:NewLiveServer#piwik&lt;/a&gt; to contain a link to this ticket which will now be closed.
&lt;/p&gt;
&lt;p&gt;
Sorry that almost a days worth of stats have been lost during this upgrade.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 14 Mar 2012 12:25:36 GMT</pubDate>
      <title>hours, status, totalhours changed; resolution deleted</title>
      <link>http://localhost:8080/trac/ticket/393#comment:7</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/393#comment:7</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.15&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;closed&lt;/em&gt; to &lt;em&gt;reopened&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                &lt;em&gt;fixed&lt;/em&gt; deleted
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;2.15&lt;/em&gt; to &lt;em&gt;2.3&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Sorry I have had to reopen this, it's not solved after all.
&lt;/p&gt;
&lt;p&gt;
Following it up at the piwik trac, bug &lt;a class="missing ticket"&gt;#3048&lt;/a&gt; &lt;a class="ext-link" href="http://dev.piwik.org/trac/ticket/3048"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://dev.piwik.org/trac/ticket/3048&lt;/a&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 14 Mar 2012 14:07:08 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/393#comment:8</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/393#comment:8</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.27&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;2.3&lt;/em&gt; to &lt;em&gt;2.57&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
The ticket was closed on the piwik trac: &lt;a class="ext-link" href="http://dev.piwik.org/trac/ticket/3049#comment:1"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://dev.piwik.org/trac/ticket/3049#comment:1&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
I don't have permissions to reopen it, I guess if needs be I can open a new ticket to ask that the first ticket be reopened &lt;a class="ext-link" href="http://dev.piwik.org/trac/ticket/3049#comment:2"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://dev.piwik.org/trac/ticket/3049#comment:2&lt;/a&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Thu, 15 Mar 2012 11:32:48 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/393#comment:9</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/393#comment:9</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.2&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;2.57&lt;/em&gt; to &lt;em&gt;2.77&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Updated suggestion from the developers &lt;a class="ext-link" href="http://dev.piwik.org/trac/ticket/3049#comment:3"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://dev.piwik.org/trac/ticket/3049#comment:3&lt;/a&gt;
&lt;/p&gt;
&lt;pre class="wiki"&gt;cd /web/stats.transitionnetwork.org/piwik/core/Db/Schema
rm Myisam.php
wget http://dev.piwik.org/trac/export/5924/trunk/core/Db/Schema/Myisam.php
apache2ctl restart
&lt;/pre&gt;&lt;p&gt;
This didn't help, I have added a comment to the ticket on the piwik trac: &lt;a class="ext-link" href="http://dev.piwik.org/trac/ticket/3049#comment:4"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://dev.piwik.org/trac/ticket/3049#comment:4&lt;/a&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 20 Mar 2012 14:51:00 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/393#comment:10</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/393#comment:10</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.1&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;2.77&lt;/em&gt; to &lt;em&gt;2.87&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Posted another reply to the ticket on the piwik forum &lt;a class="ext-link" href="http://dev.piwik.org/trac/ticket/3049#comment:6"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://dev.piwik.org/trac/ticket/3049#comment:6&lt;/a&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 21 Mar 2012 10:44:03 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/393#comment:11</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/393#comment:11</guid>
      <description>
        &lt;p&gt;
Following the suggestion here &lt;a class="ext-link" href="http://dev.piwik.org/trac/ticket/3049#comment:9"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://dev.piwik.org/trac/ticket/3049#comment:9&lt;/a&gt; to do a reinstall, first edit the &lt;tt&gt;[Tracker]&lt;/tt&gt; section of &lt;tt&gt;/web/stats.transitionnetwork.org/piwik/config/config.ini.php&lt;/tt&gt; to turn tracking off:
&lt;/p&gt;
&lt;pre class="wiki"&gt;record_statistics = 0
&lt;/pre&gt;&lt;p&gt;
Create a new directory and download the latest version:
&lt;/p&gt;
&lt;pre class="wiki"&gt;cd /web/stats.transitionnetwork.org
mkdir piwik.1.7.1
cd piwik.1.7.1
wget http://piwik.org/latest.zip
unzip latest.zip
rm How\ to\ install\ Piwik.html
rm latest.zip
mv piwik/* .
&lt;/pre&gt;&lt;p&gt;
Set up apache to serve this new install at &lt;a class="ext-link" href="https://newstats.transitionnetwork.org.uk/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://newstats.transitionnetwork.org.uk/&lt;/a&gt; config file &lt;tt&gt;/etc/apache2/sites-available/newstats.transitionnetwork.org.conf&lt;/tt&gt;.
&lt;/p&gt;
&lt;p&gt;
Piwik suggests changing some ownerships:
&lt;/p&gt;
&lt;pre class="wiki"&gt;chown -R www-data:www-data /web/stats.transitionnetwork.org/piwik.1.7.1
chmod -R 0755 /web/stats.transitionnetwork.org/piwik.1.7.1/tmp
chmod -R 0755 /web/stats.transitionnetwork.org/piwik.1.7.1/tmp/templates_c/
chmod -R 0755 /web/stats.transitionnetwork.org/piwik.1.7.1/tmp/cache/
chmod -R 0755 /web/stats.transitionnetwork.org/piwik.1.7.1/tmp/assets/
chmod -R 0755 /web/stats.transitionnetwork.org/piwik.1.7.1/tmp/tcpdf/
&lt;/pre&gt;&lt;p&gt;
Create a new database:
&lt;/p&gt;
&lt;pre class="wiki"&gt;mysql&amp;gt; CREATE USER 'newstats'@'localhost' IDENTIFIED BY 'xxxxxx';
mysql&amp;gt; CREATE DATABASE IF NOT EXISTS `newstats`;
mysql&amp;gt; GRANT ALL PRIVILEGES ON `newstats`.* TO 'newstats'@'localhost';
mysql&amp;gt; FLUSH PRIVILEGES;
&lt;/pre&gt;&lt;p&gt;
Complete the install using the web interface and the newsite has the same error:
&lt;/p&gt;
&lt;pre class="wiki"&gt;Fatal error: Class 'Piwik_Db_Schema_Myisam' not found in /web/stats.transitionnetwork.org/piwik.1.7.1/core/Db/Schema.php on line 139
&lt;/pre&gt;&lt;p&gt;
So perhaps the problem is with APC?
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 21 Mar 2012 10:55:29 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/393#comment:12</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/393#comment:12</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.1&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;2.87&lt;/em&gt; to &lt;em&gt;2.97&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Replying to &lt;a href="http://localhost:8080/trac/ticket/393#comment:11" title="Comment 11 for Ticket #393"&gt;chris&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
So perhaps the problem is with APC?
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
Actually I really don't know, the class can't be found in the file, this grep produces no results:
&lt;/p&gt;
&lt;pre class="wiki"&gt;grep "Piwik_Db_Schema_Myisam" /web/stats.transitionnetwork.org/piwik.1.7.1/core/Db/Schema.php
&lt;/pre&gt;&lt;p&gt;
I think the problem must be with Piwik.
&lt;/p&gt;
&lt;p&gt;
Another comment has been added to the other ticket: &lt;a class="ext-link" href="http://dev.piwik.org/trac/ticket/3049#comment:10"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://dev.piwik.org/trac/ticket/3049#comment:10&lt;/a&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 21 Mar 2012 12:32:36 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/393#comment:13</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/393#comment:13</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.25&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;2.97&lt;/em&gt; to &lt;em&gt;3.22&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Following the suggestions here &lt;a class="ext-link" href="http://dev.piwik.org/trac/ticket/3049#comment:11"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://dev.piwik.org/trac/ticket/3049#comment:11&lt;/a&gt; but these didn't solve the problem, see &lt;a class="ext-link" href="http://dev.piwik.org/trac/ticket/3049#comment:12"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://dev.piwik.org/trac/ticket/3049#comment:12&lt;/a&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 21 Mar 2012 13:26:17 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/393#comment:14</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/393#comment:14</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.1&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;3.22&lt;/em&gt; to &lt;em&gt;3.32&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Debugging suggestion here &lt;a class="ext-link" href="http://dev.piwik.org/trac/ticket/3049#comment:13"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://dev.piwik.org/trac/ticket/3049#comment:13&lt;/a&gt; tried, results here: &lt;a class="ext-link" href="http://dev.piwik.org/trac/ticket/3049#comment:14"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://dev.piwik.org/trac/ticket/3049#comment:14&lt;/a&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 21 Mar 2012 14:07:49 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/393#comment:15</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/393#comment:15</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.1&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;3.32&lt;/em&gt; to &lt;em&gt;3.42&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Piwik developers have asked for ssh access to help solve this problem, &lt;a class="ext-link" href="http://dev.piwik.org/trac/ticket/3049#comment:16"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://dev.piwik.org/trac/ticket/3049#comment:16&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
I have emailed the list to check if this is OK.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 26 Mar 2012 09:53:36 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/393#comment:16</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/393#comment:16</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.1&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;3.42&lt;/em&gt; to &lt;em&gt;3.52&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
The Piwik developers haven't been in touch, I have asked them for either a ssh or gpg public key so I can set them up with access to the server.
&lt;/p&gt;
&lt;p&gt;
I have added another comment to the ticket on the piwik trac site &lt;a class="ext-link" href="http://dev.piwik.org/trac/ticket/3049#comment:19"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://dev.piwik.org/trac/ticket/3049#comment:19&lt;/a&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Thu, 29 Mar 2012 12:06:51 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/393#comment:17</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/393#comment:17</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.1&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;3.52&lt;/em&gt; to &lt;em&gt;3.62&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Still not heard from them, have left another comment &lt;a class="ext-link" href="http://dev.piwik.org/trac/ticket/3049#comment:20"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://dev.piwik.org/trac/ticket/3049#comment:20&lt;/a&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Sat, 31 Mar 2012 10:45:12 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/393#comment:18</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/393#comment:18</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.2&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;3.62&lt;/em&gt; to &lt;em&gt;3.82&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
I have shutdown the test site I installed for the Piwki developers and posted another comment asking for the bug to be reopened: &lt;a class="ext-link" href="http://dev.piwik.org/trac/ticket/3049#comment:21"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://dev.piwik.org/trac/ticket/3049#comment:21&lt;/a&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Thu, 05 Apr 2012 10:23:41 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/393#comment:19</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/393#comment:19</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.1&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;3.82&lt;/em&gt; to &lt;em&gt;3.92&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
I have opened a new ticket asking that the first ticked be reopened:
&lt;/p&gt;
&lt;p&gt;
&lt;a class="ext-link" href="http://dev.piwik.org/trac/ticket/3092"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://dev.piwik.org/trac/ticket/3092&lt;/a&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 16 Apr 2012 13:18:24 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/393#comment:20</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/393#comment:20</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;2.0&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;3.92&lt;/em&gt; to &lt;em&gt;5.92&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
This is now fixed!
&lt;/p&gt;
&lt;p&gt;
Read on for details...
&lt;/p&gt;
&lt;p&gt;
One on the piwik developers found the problem was with these APC settings in &lt;tt&gt;/etc/php5/apache2/conf.d/apc.ini&lt;/tt&gt;:
&lt;/p&gt;
&lt;pre class="wiki"&gt;apc.include_once_override = 1
apc.mmap_file_mask = /tmp/apc.XXXXXX
&lt;/pre&gt;&lt;p&gt;
When these were changed to:
&lt;/p&gt;
&lt;pre class="wiki"&gt;apc.include_once_override = 0
apc.mmap_file_mask = /dev/zero
&lt;/pre&gt;&lt;p&gt;
The problem went away, the piwik ticket, &lt;a class="ext-link" href="http://dev.piwik.org/trac/ticket/3049#comment:27"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://dev.piwik.org/trac/ticket/3049#comment:27&lt;/a&gt; and forum thread have been updated, &lt;a class="ext-link" href="http://forum.piwik.org/read.php?2,85650,page=1#msg-88217"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://forum.piwik.org/read.php?2,85650,page=1#msg-88217&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
The documentation has been updated here &lt;a class="wiki" href="http://localhost:8080/trac/wiki/NewLiveServer#apc"&gt;wiki:NewLiveServer#apc&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
Before the Piwik developer came to the rescue I tried the suggestions here for clearing the APC cache, but none helped:
&lt;/p&gt;
&lt;p&gt;
&lt;a class="ext-link" href="http://stackoverflow.com/questions/911158/how-to-clear-apc-cache-entries"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://stackoverflow.com/questions/911158/how-to-clear-apc-cache-entries&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
There is a password protected cache clearing script here:
&lt;/p&gt;
&lt;p&gt;
&lt;a class="ext-link" href="https://quince.transitionnetwork.org/info/apc-clear-cache.php"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://quince.transitionnetwork.org/info/apc-clear-cache.php&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
And you can see the results here:
&lt;/p&gt;
&lt;p&gt;
&lt;a class="ext-link" href="https://quince.transitionnetwork.org/info/apc.php"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://quince.transitionnetwork.org/info/apc.php&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
I'm not convinced that this has been deleting all the files from the cache as this graph didn't drop to zero:
&lt;/p&gt;
&lt;p&gt;
&lt;a class="ext-link" href="https://kiwi.transitionnetwork.org/munin/webarch.net/quince.webarch.net/php_apc_files.html"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://kiwi.transitionnetwork.org/munin/webarch.net/quince.webarch.net/php_apc_files.html&lt;/a&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 16 Apr 2012 13:18:41 GMT</pubDate>
      <title>status changed; resolution set</title>
      <link>http://localhost:8080/trac/ticket/393#comment:21</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/393#comment:21</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;reopened&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;/ul&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>