I just upgraded from 3.0 to 3.1.2 and in the comments column under Posts in the WP Admin, this error keeps appearing for every row:

Warning: number_format() expects parameter 1 to be double, string given in /path/mysite/wp-includes/functions.php on line 155

Can someone tell me how to fix this?

  • What Plugins do you have installed? May 10, 2011 at 18:04
  • Advanced Excerpt, Akismet, Category pagination fix, Disqus Comment System, Feed JSON, WordPress Importer, and Yet Another RElated Posts plugin
    – Zoolander
    May 10, 2011 at 18:08
  • What normally displays in that column? That is not a default Column (EDIT: actually, yes it is). I suspect the warning is coming from Disqus? May 10, 2011 at 18:46

1 Answer 1


The "Comments" column is not a default/core column in the "Posts" page. Perhaps it is being generated by your Disqus Plugin?

Try temporarily disabling the Disqus Plugin, and see if the PHP notices go away.

EDIT: actually, it is a default column. But I still suspect Disqus is causing the PHP warning.

  • This error has been reported here for the Disqus plugin. So if Zoolander can confirm it is Disqus, this question becomes a duplicate.
    – Jan Fabry
    May 10, 2011 at 19:15
  • Yes, when I deactivated the Disqus plug-in, the warning went away. Unfortunately, it needs to remain activated, so now it's just a matter of fixing the plug-in. :(
    – Zoolander
    May 10, 2011 at 19:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.