Upgrade to 1.6


#1

Hello,

today i try to upgrade my piwik form latest 1.5 to 1.6.
If i upgrade the database i got an error:

Backtrace -->
#0 Piwik_ErrorHandler(…) called at [:]#1 chdir(…) called at [/home/www/cwcity/hosting/d/e/derblitz/htdocs/piwik/core/Config.php:171]#2 Piwik_Config->__destruct(…) called at [:]

Could anyone help?

Bye,
Simon


(Matthieu Aubry) #2

Can you try the following patch please?


Index: core/Config.php
===================================================================
--- core/Config.php	(revision 5323)
+++ core/Config.php	(working copy)
@@ -168,7 +168,7 @@
 				}
 				$configFile .= "\n";
 			}
-			chdir($this->correctCwd);
+			@chdir($this->correctCwd);
 			@file_put_contents($this->pathIniFileUserConfig, $configFile );
 		}
 	}


#3

Hi Matt,

this fix my problem.
Thank you.

Simon