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

number_format() expects parameter 1 to be double, array given #10495

Closed
ghost opened this issue Sep 13, 2016 · 1 comment
Closed

number_format() expects parameter 1 to be double, array given #10495

ghost opened this issue Sep 13, 2016 · 1 comment
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@ghost
Copy link

ghost commented Sep 13, 2016

ErrorException (E_WARNING)
HELP
number_format() expects parameter 1 to be double, array given

(line 180 of app/src/Analytics/Controller/WebAnalyticsController.php) which contains):

$visits = number_format($visits, 0, trans('i18n.dec_point'), trans('i18n.thousands_sep'));

If it helps, for reference, $visits variable created on line 174 of this same file (WebAnalyticsController.php) on the line:

$visits = \App\Core\Piwik::getVisits($app->piwik_site_id, $date_start, $date_end);

@mattab
Copy link
Member

mattab commented Sep 27, 2016

Hello @Thefraj

This is not a bug in Piwik but in this library you are using: \App\Core\Piwik::getVisits /// WebAnalyticsController

@mattab mattab closed this as completed Sep 27, 2016
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Sep 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

1 participant