Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
anonymous-piwik-user opened this Issue · 2 comments

2 participants

Anonymous Piwik user Matthieu Aubry
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.

Matthieu Aubry
Owner

In 58ee884: fixes #4427 prefix path was missing

Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Matthieu Aubry 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
Something went wrong with that request. Please try again.