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

PHP Fatal Error with PHP 7.x #12086

Closed
umpire274 opened this issue Sep 20, 2017 · 3 comments
Closed

PHP Fatal Error with PHP 7.x #12086

umpire274 opened this issue Sep 20, 2017 · 3 comments
Labels
duplicate For issues that already existed in our issue tracker and were reported previously.

Comments

@umpire274
Copy link

umpire274 commented Sep 20, 2017

Hi all.

I've installed Piwik 3.0.4 on RHEL 7 with Apache 2.4 e PHP 7.2 successfully.
When I've finished the installation in the main dashboard I'll see an error in a widget in the middle of the page, and in apache log I've this error:

[Wed Sep 20 12:41:05.322847 2017] [php7:error] [pid 26822] [client 10.8.161.114:57411] PHP Fatal error: Cannot use 'Object' as class name as it is reserved in /var/www/html/piwik/libs/sparkline/lib/Object.php on line 72, referer: ...

I know that is a problem with PHP 7.x: "PHP 7 will soft reserve object as a possible typehint for a 7.x release (or may never use it at all)."

Is it correct? There's a solution?

Alex.

@Findus23
Copy link
Member

Hi, this is an issue in a third party library used by piwik.
See also #12065

I have proposed a solution, but there is some wok left until it is fixed.

@umpire274
Copy link
Author

For completato the reference in error are in:

piwik/libs/sparkline/lib/Object.php (riga 72):
class Object {

piwik/libs/sparkline/lib/Sparkline.php (riga 27):
class Sparkline extends Object {

@umpire274
Copy link
Author

@Findus23 thanks a lot.

@Findus23 Findus23 added the duplicate For issues that already existed in our issue tracker and were reported previously. label Sep 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate For issues that already existed in our issue tracker and were reported previously.
Projects
None yet
Development

No branches or pull requests

2 participants