A technie friend installed piwik for me in 2012, because it’s above my rating… (I can handle some html and some css, but not sure about database installations etc.) It was running happily on several of my wordpress sites for years. Some months ago I noticed piwik wasn’t working, but no idea what to do. Now I finally dive in to try to fix it, or find someone who can.
I used to be about to click to a bookmark which looked like http://www.mysite.com/piwik and see a dashboard of data. Then for some months that turned into WSOD. Now it says “The Piwik configuration file couldn’t be found and you are trying to access a Piwik page. » You can install Piwik now. IIf you installed Piwik before and have some tables in your DB, don’t worry, you can reuse the same tables and keep your existing data!” Clicking the “install” link gets some code* displayed on my screen but on reload the problem is not solved.
Also my widget inside wordpress displays nothing.
*Here’s the code:
preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead
in ‘/home/forge/public_html/piwik/libs/Smarty/Smarty_Compiler.class.php’ at the line 270
#0 Piwik_ErrorHandler(…) called at [:]
#1 preg_replace(…) called at [/home/forge/public_html/piwik/libs/Smarty/Smarty_Compiler.class.php:270]
#2 Smarty_Compiler->_compile_file(…) called at [/home/forge/public_html/piwik/libs/Smarty/Smarty.class.php:1489]
#3 Smarty->_compile_source(…) called at [/home/forge/public_html/piwik/libs/Smarty/Smarty.class.php:1422]
#4 Smarty->_compile_resource(…) called at [/home/forge/public_html/piwik/libs/Smarty/Smarty.class.php:1261]
#5 Smarty->fetch(…) called at [/home/forge/public_html/piwik/core/View.php:133]
#6 Piwik_View->render(…) called at [/home/forge/public_html/piwik/plugins/Installation/View.php:57]
#7 Piwik_Installation_View->render(…) called at [/home/forge/public_html/piwik/plugins/Installation/Controller.php:88]
#8 Piwik_Installation_Controller->welcome(…) called at [/home/forge/public_html/piwik/plugins/Installation/Installation.php:75]
#9 Piwik_Installation->dispatch(…) called at [:]
#10 call_user_func_array(…) called at [/home/forge/public_html/piwik/libs/Event/Dispatcher.php:284]
#11 Event_Dispatcher->postNotification(…) called at [/home/forge/public_html/piwik/core/PluginsManager.php:633]
#12 Piwik_PostEvent(…) called at [/home/forge/public_html/piwik/core/FrontController.php:292]
#13 Piwik_FrontController->init(…) called at [/home/forge/public_html/piwik/index.php:52]
Is there a step-by-step guide to “fixing your piwik?”
Is there any chance server migrations at my webhost could have caused this problem?
Thank you in advance for help,