WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
What Plugins do you have installed? – Chip Bennett May 10 '11 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 '11 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? – Chip Bennett May 10 '11 at 18:46
up vote 2 down vote accepted

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.

share|improve this answer
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 '11 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 '11 at 19:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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