Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

Activity count widget. number_format()expects parameter 1 to....

+1 vote
567 views
asked Aug 11, 2011 in Q2A Core by anonymous
when I use activity count widget. Show following error in sidebar. How to solve it? Help

Warning: number_format() expects parameter 1 to be double, string given in D:\xampp\htdocs\qa\qa-plugin\activity-count-widget\qa-activity-count.php on line 58
comments
2 users

1 Answer

0 votes
answered Aug 11, 2011 by gidgreen
edited Sep 6, 2011 by gidgreen

Thanks for reporting this. The solution: in that file qa-activity-count.php, change number_format($value) to number_format((int)$value) - this will be fixed in the next maintenance release.

...