@umpire274 opened this Issue on September 20th 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] 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?


@Findus23 commented on September 20th 2017 Member

Hi, this is an issue in a third party library used by piwik.
See also https://github.com/piwik/piwik/issues/12065

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

@umpire274 commented on September 20th 2017

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 commented on September 20th 2017

@Findus23 thanks a lot.

This Issue was closed on September 20th 2017
Powered by GitHub Issue Mirror