Obsolete - i messed it up?


Hi there,

piwik was running great since piwik 0.9 or so. Joomla Installation with a plugin that adds the tracking code to the pages.

Now i did several things in a row.

Leaving my site as it is - i took a backup of it, installed it to a different directory of my webspace, where i worked on the new design and content. I did also some updates. After finishing work there, i changed DNS to point to the new site … now piwik was not more tracking my visitors.

So update piwik from 1.11 to 1.12 - still not working - so I took the chance to go on 2.0b5 RC, as it was suggested in one of the recent threads. My site is not that big - still no tracking …

This is the Piwik java code, which is in every Page of my site: (xxxx replaces my domain)

<!-- eorisis: Piwik -->
<script type="text/javascript">
	var _paq = _paq || [];
	_paq.push(["setDoNotTrack", true]);
	(function() {
		var u=(("https:" == document.location.protocol) ? "https" : "http") + "://xxxx.com/";
		_paq.push(["setTrackerUrl", u+"piwik.php"]);
		_paq.push(["setSiteId", "1"]);
		var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
		g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
<noscript><img src='http://xxxx.com/piwik/piwik.php?idsite=1&rec=1&action_name=Coaching+Konzept+-+No-Java&_id=90156b0bd4419495&rand=379378373' style='border:0' alt='' /></noscript>
<!-- /eorisis: Piwik -->

should be working like this / generated by a plugin but same as tracking code given in backend of my piwik installation

On the way of trying to get my tracking working again i might have changed the “trusted domain” or so … from xxxx.com to Hire Workers Online!

next i got:

There is an error. Please report the message (Piwik 2.0-b5) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!).

Warning: preg_match() [function.preg-match]: Unknown modifier 'p' in /hp/cg/aa/cj/www/bj/piwik/core/Url.php on line 241

Backtrace -->

#0 Piwik\Error::errorHandler(...) called at [:]
#1 preg_match(...) called at [/hp/cg/aa/cj/www/bj/piwik/core/Url.php:241]
#2 Piwik\Url::isValidHost(...) called at [/hp/cg/aa/cj/www/bj/piwik/core/Url.php:287]
#3 Piwik\Url::getHost(...) called at [/hp/cg/aa/cj/www/bj/piwik/core/Url.php:333]
#4 Piwik\Url::getCurrentHost(...) called at [/hp/cg/aa/cj/www/bj/piwik/core/Url.php:95]
#5 Piwik\Url::getCurrentUrlWithoutFileName(...) called at [/hp/cg/aa/cj/www/bj/piwik/core/SettingsPiwik.php:174]
#6 Piwik\SettingsPiwik::getPiwikUrl(...) called at [/hp/cg/aa/cj/www/bj/piwik/core/FrontController.php:331]
#7 Piwik\FrontController->init(...) called at [/hp/cg/aa/cj/www/bj/piwik/index.php:55]

There is an error. Please report the message (Piwik 2.0-b5) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!).

Warning: Cannot modify header information - headers already sent by (output started at /hp/cg/aa/cj/www/bj/piwik/core/Log.php:412) in /hp/cg/aa/cj/www/bj/piwik/core/Plugin/Controller.php on line 700

Backtrace -->

#0 Piwik\Error::errorHandler(...) called at [:]
#1 header(...) called at [/hp/cg/aa/cj/www/bj/piwik/core/Plugin/Controller.php:700]
#2 Piwik\Plugin\Controller->redirectToIndex(...) called at [/hp/cg/aa/cj/www/bj/piwik/plugins/CoreHome/Controller.php:58]
#3 Piwik\Plugins\CoreHome\Controller->redirectToCoreHomeIndex(...) called at [:]
#4 call_user_func_array(...) called at [/hp/cg/aa/cj/www/bj/piwik/core/FrontController.php:114]
#5 Piwik\FrontController->dispatch(...) called at [/hp/cg/aa/cj/www/bj/piwik/index.php:56]

changing config.ini.php

20: [General]
21: trusted_hosts[] = "xxxx.com/"

to either xxxx.com/ or Hire Workers Online! does not help.
i checked database settings …

btw: site is running in /hp/cg/aa/cj/www/bj/ ; Piwik is running in /hp/cg/aa/cj/www/bj/piwik/

Any Help or suggestions?


back to work …

i realized that under all that error messages, there is still the login box …

not luck there either…

Fehler: You must call Zend_Session::regenerateId() before any output has been sent to the browser; output started in /hp/cg/aa/cj/www/bj/piwik/core/Log.php/412

3 days and no answer … something that disqualifies me or my problem?


never mind …

decides to let go of old data - deleted all files in my piwik dir, installed fresh 2.0b5., deleted old database

so this thread can be deleted.