I made a change to the “trusted piwik hostname” site setting at the bottom of the general settings page and now my site won’t load. I was thinking there is a place to fix it in mysql database but could not find it. Any idea how I can fix this?
There is an error. Please report the message (Piwik 2.0.3) 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 ‘/’ in /home/sgolub/public_html/piwik/core/Url.php on line 248
Backtrace -->
#0 Piwik\Error::errorHandler(…) called at [:] #1 preg_match(…) called at [/home/sgolub/public_html/piwik/core/Url.php:248] #2 Piwik\Url::isValidHost(…) called at [/home/sgolub/public_html/piwik/core/Url.php:294] #3 Piwik\Url::getHost(…) called at [/home/sgolub/public_html/piwik/core/Url.php:340] #4 Piwik\Url::getCurrentHost(…) called at [/home/sgolub/public_html/piwik/core/Url.php:69] #5 Piwik\Url::getCurrentUrl(…) called at [/home/sgolub/public_html/piwik/core/View.php:214] #6 Piwik\View->render(…) called at [/home/sgolub/public_html/piwik/plugins/Login/Controller.php:105] #7 Piwik\Plugins\Login\Controller->login(…) called at [/home/sgolub/public_html/piwik/plugins/Login/Controller.php:65] #8 Piwik\Plugins\Login\Controller->index(…) called at [:] #9 call_user_func_array(…) called at [/home/sgolub/public_html/piwik/core/FrontController.php:117] #10 Piwik\FrontController->dispatch(…) called at [/home/sgolub/public_html/piwik/core/Plugin/Controller.php:742] #11 Piwik\Plugin\Controller->redirectToIndex(…) called at [/home/sgolub/public_html/piwik/plugins/CoreHome/Controller.php:57] #12 Piwik\Plugins\CoreHome\Controller->redirectToCoreHomeIndex(…) called at [:] #13 call_user_func_array(…) called at [/home/sgolub/public_html/piwik/core/FrontController.php:117] #14 Piwik\FrontController->dispatch(…) called at [/home/sgolub/public_html/piwik/index.php:62]
[quote=matt]
Don’t add the slash / in your trusted_host, simply add the hostname without any slash[/quote]
Where do I change this setting at? I can not login to piwik.
I made the change to config.php.ini but i still get an error and then this:
Error: You must call Zend_Session::regenerateId() before any output has been sent to the browser; output started in /home/sgolub/public_html/piwik/core/Log.php/455
There is an error. Please report the message (Piwik 2.0.3) 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 ‘/’ in /home/sgolub/public_html/piwik/core/Url.php on line 248
Backtrace -->
#0 Piwik\Error::errorHandler(…) called at [:] #1 preg_match(…) called at [/home/sgolub/public_html/piwik/core/Url.php:248] #2 Piwik\Url::isValidHost(…) called at [/home/sgolub/public_html/piwik/core/Url.php:294] #3 Piwik\Url::getHost(…) called at [/home/sgolub/public_html/piwik/core/Url.php:340] #4 Piwik\Url::getCurrentHost(…) called at [/home/sgolub/public_html/piwik/core/Url.php:69] #5 Piwik\Url::getCurrentUrl(…) called at [/home/sgolub/public_html/piwik/core/View.php:214] #6 Piwik\View->render(…) called at [/home/sgolub/public_html/piwik/plugins/Login/Controller.php:105] #7 Piwik\Plugins\Login\Controller->login(…) called at [/home/sgolub/public_html/piwik/plugins/Login/Controller.php:65] #8 Piwik\Plugins\Login\Controller->index(…) called at [:] #9 call_user_func_array(…) called at [/home/sgolub/public_html/piwik/core/FrontController.php:117] #10 Piwik\FrontController->dispatch(…) called at [/home/sgolub/public_html/piwik/core/Plugin/Controller.php:742] #11 Piwik\Plugin\Controller->redirectToIndex(…) called at [/home/sgolub/public_html/piwik/plugins/CoreHome/Controller.php:57] #12 Piwik\Plugins\CoreHome\Controller->redirectToCoreHomeIndex(…) called at [:] #13 call_user_func_array(…) called at [/home/sgolub/public_html/piwik/core/FrontController.php:117] #14 Piwik\FrontController->dispatch(…) called at [/home/sgolub/public_html/piwik/index.php:62]