Unable to start session: session has already been started

Hi, I am running the latest version of Piwik (2.5.0) and whenever I want to enter Piwik’s dashboard, I get this error message:


WARN Piwik\Session[2014-08-18 08:39:31] [00f18] Unable to start session: session has already been started by session.auto-start or session_start()
Debug: the original error was session has already been started by session.auto-start or session_start()

I have searched for this error and I think, I can pinpoint it to my usage of the Ninja Web Application Firewall. There seems to be a solution to the problem shown on the WordPress forums here, which basically suggests to replace


session_start()

with


if (! session_id() ) { session_start(); }

As it is not that easy (and not at all wise, IMHO) to change core-files - is there another way to make Piwik work again with the Web Application Firewall installed?

Hi mkalina, it’s a bit strange that your firewall would require changes in the PHP source code of Piwik.
Maybe you could change the firewall software or disable it for your piwik server?

Hi,

Not the firewall requires the changes, but the way I set up Piwik:

[ul]
[li] domain.tld (it is https)
[/li][li] domain.tld/piwik (which, comfortably, can be reached through https, too)
[/li][/ul]

If I move Piwik to a subdomain, I need to purchase another certificate. The firewall checks everything under domain.tld.

So as far as I can see there is no way to make them work together on your side?