I absolutely love Piwik. It is soooo useful for my small website.
Yesterday I tried to update to 2.1.0 but recived the following error messages, and I cannot find any way to get Piwik back on my website??
Fatal error: Undefined class constant ‘Piwik\ReportRenderer::CSV_FORMAT’ in /home/a2515/public_html/piwidir/core/Plugin/Manager.php on line 736
Fatal error: Call to undefined method Piwik\Piwik::hasUserSuperUserAccess() in /home/a2515/public_html/piwidir/plugins/CorePluginsAdmin/Controller.php on line 364
I have also deleted config/config.ini.php as recommended in the Help section.
Please would you advise an Idiots guide to how I can get Piwik back asap.
Thanks for your reply 0-0. I really do appreciate the help that youy guys give.
I have now uploaded latest.zip to my cPanel. So now, in my public_html section, I have a folder called “piwikdir” and also the “latest.zip” file
Sorry for the silly beginners question, but what do I need to do now?
Do I unzip the latest.zip file to my previous “piwikdir” folder? If so, do I select overwrite all files? And if i do, will this delete all previous historical data?
Thank you very much in advance for whatever guidance you can give.
The files mentioned in the error messages are from the previous piwik-version you had.
You should be able to verify this by going to “System Check” in the piwik admin menue: The row “File integrety” should show that there is a problem.
Overriding the files doesn’t affect your tracked data. This is because all that stuff is stored somewhere in a DB and not on the filesystem.
It seems that config/config.ini.php is not there anymore (that was the file which I deleted after reading the re-install instructions on Piwik website).
Could this be the problem? If so, how do I re-install it?
I think the other error would show something similar.
But lets just do it step by step:
[ol]
[li] Download http://builds.piwik.org/piwik-2.1.0.zip to your local computer.
[/li][li] Extract the archive on your PC. All files (exept for a readme) are now in a folder with the name “piwik”.
[/li][li] Get some FTP client like Filezilla(https://filezilla-project.org/) and the FTP login data for your server.
[/li][li] Upload the contents of the extracted “piwik”-folder (on your PC) into the “piwikdir”-folder (on your server).
[/li][li] In your browser open Piwik: Now you should have the first installation screen.
[/li][li] When this is working: If you have some backup or copy of “config.ini.php” copy it to “piwikdir/config/” on your server. If not you have to redo the installation. When you get to the DB-install site Piwik should detect that there is already data and ask you if you want to keep it.
[/li][li] Maybe you are promted to update your DB somewhen during the process(because it is still at the point of 2.0.3).
[/li][li]Now you are done and all should be working. To verify (possibly in the future) that all files are correctly updated you can go to “System Check”-page(http://piwik.yourserver.com/index.php?module=Installation&action=systemCheckPage) and see if “File Integrety” shows any issues.
[/li][/ol]
0-0, thank you very much for your detailed instructions. Much appreciated.
I completed 1 & 2 but don;t know about FTP and so got stuck there. However, I was not able to find the config.ini.php file anywhere (not in the trash file) in my cPanel. So I guess I had to do a complete new install.
I will upload again by one-click method using Softalicious. Although this is still at 2.0.3.
Wish me luck
But thanks again for your help. I think I need to learn how to FTP for the future?
Mmmm, I completely re-installed the 2.0.3 version of Piwik (via one-click Softaculous) and got it working fine.
Then I clicked on upgrade to 2.1.0. I used cPanel file manager to upload the new Zip file and then extracted it to my Piwik folder.
But I received the same error messages as previous:-
Fatal error: Undefined class constant ‘Piwik\ReportRenderer::CSV_FORMAT’ in /home/a2515/public_html/piwikdir/core/Plugin/Manager.php on line 736
Fatal error: Call to undefined method Piwik\Piwik::checkUserHasSuperUserAccessOrIsTheUser() in /home/a2515/public_html/piwikdir/plugins/LanguagesManager/API.php on line 227
Please would you advise what I should try to do next?