Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
anonymous-matomo-user opened this issue Dec 23, 2013 · 2 comments
Closed
Assignees
Labels
Bug
Milestone

Comments

@anonymous-matomo-user
Copy link

@anonymous-matomo-user anonymous-matomo-user commented Dec 23, 2013

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-matomo-user
Copy link
Author

@anonymous-matomo-user anonymous-matomo-user commented Dec 23, 2013

Changing line 13 of core/Error.php to

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

should fix the problem.

@mattab
Copy link
Member

@mattab mattab commented Dec 25, 2013

In 58ee884: fixes #4427 prefix path was missing

@anonymous-matomo-user anonymous-matomo-user added this to the 2.0.3 - Piwik 2.0.3 milestone Jul 8, 2014
sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug
Projects
None yet
Development

No branches or pull requests

2 participants