Log.php: Assigning the return value of new by reference is deprecated #4427

Closed
anonymous-piwik-user opened this Issue Dec 23, 2013 · 2 comments

2 participants

@anonymous-piwik-user

After updating Piwik from 2.0 to 2.0.2 Piwik is completely broken. The following error message is shown when trying to access the login:

Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/lib/php/Log.php on line 120

WARN Piwik\Session[2013-12-19 09:20:02] [ac818] Unable to start session: Session must be started before any output has been sent to the browser; output started in /usr/local/lib/php/Log.php/120

Piwik # Web Analytics

Error: Unable to start session. Please check that the web server has enough permission to write to these files/directories:
For example, on a Linux server if your Apache httpd user is www-data, you can try to execute:
chown -R www-data:www-data /kunden/138225_47506/webseiten/XXX/piwik/tmp/sessions/
chmod -R 0755 /kunden/138225_47506/webseiten/XXX/piwik/tmp/sessions/

If you still experience issues after trying these changes, we recommend that you enable database session storage.

Debug: the original error was 
Session must be started before any output has been sent to the browser; output started in /usr/local/lib/php/Log.php/120

Uncommenting line 13 on core/Error.php seems like a suitable workaround.
Keywords: Piwik update broken

@anonymous-piwik-user

Changing line 13 of core/Error.php to

require_once(dirname(__FILE__).'/Log.php');

should fix the problem.

@mattab
Piwik Open Source Analytics member

In 58ee884: fixes #4427 prefix path was missing

@sabl0r sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
@mattab mattab fixes #4427 prefix path was missing 58ee884
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment