WordPress.org

Ready to get started?Download WordPress

Forums

Network dashboard functions.php error (27 posts)

  1. sdgenxr
    Member
    Posted 2 years ago #

    On a clean multisite network installation, I get the following error on the network dashboard:
    Warning: number_format() expects parameter 1 to be double, string given in /wp-includes/functions.php on line 155

    I've been told that the only places that call this function for the network dashboard are:
    menu.php
    site-themes.php
    themes.php

    Could anyone provide some insight on how to resolve this problem?

    Thanks in advance!

  2. Sebastian Cork
    Member
    Posted 2 years ago #

    Does anyone have a solution for this? I've re-installed WordPress several times with multisite enabled, due to assuming that there was an error caused by procedure or the plugins I used.

  3. Treebeard
    Member
    Posted 2 years ago #

    I just got this error today, it appears to only be there in the Plugins > Add New screen.

    Has anyone solved this one?

  4. arminschenkel
    Member
    Posted 2 years ago #

    I also encounter this error, since yet seen only in the Plugins -> Add New screen.

    [Wed May 02 22:14:22 2012] [error] [client 127.0.0.1] PHP Warning: number_format() expects parameter 1 to be double, string given in /xxxxx/wp-includes/functions.php on line 155, referer: http://xxxx/wp-admin/plugins.php

  5. Turn off ALL your plugins. Does that fix it?

  6. Treebeard
    Member
    Posted 2 years ago #

    I didn't see that error today when I went in to deactivate all the plugins, and the only one I installed after this post was the Proper Network Activation plugin (I think). Looks like the error is gone on the Add New plugins page.

    Thanks for your help :)

  7. arminschenkel
    Member
    Posted 2 years ago #

    The problem has been somehow resolved. Without turning off the plugins.

    Thanks

  8. paulh16
    Member
    Posted 2 years ago #

    Hello,

    I am actually getting the same error on two separate multi-site installations with all plug-ins deactivated. The error is only seen on the Network Admin dashboard. It reads:

    Warning: number_format() expects parameter 1 to be double, string given in /nfs/c10/h04/mnt/148285/domains/paulghaddad.com/html/wp-includes/functions.php on line 155

    Thanks for any help!

  9. sdgenxr
    Member
    Posted 2 years ago #

    With or without plugins enabled, the error seems to still occur on a multisite network dashboard and I still get the error on a new install.

    If you did resolve this error, please post the steps you feel resolved the error so that others can confirm.

    Thanks,

  10. What themes are you using?

    Unless you changed it in wp-config, the default TwentyEleven theme needs to exist for things to work right.

  11. paulh16
    Member
    Posted 2 years ago #

    Hi!

    I have TwentyEleven and TwentyTen installed. I also installed Responsive, but after the error appeared.

    Thanks for your help!

  12. Have you guys tried re-uploading WP from a fresh copy? Except Sebastian.

  13. paulh16
    Member
    Posted 2 years ago #

    I have not, perhaps I should. What concerned me was that I installed two separate multi-site installations on MediaTemple GS and the error appeared on both.

  14. Mr Bearly
    Member
    Posted 2 years ago #

    Are all of you testing MS on your own computer?

    The errors all look like local host. It could be a PHP version issue.

    I have a couple of MS installations on remote servers, one only new, and have not seen this error.

  15. paulh16
    Member
    Posted 2 years ago #

    No, this is a remote install on MediaTemple. I will definitely take a look at the version of PHP they are running.

  16. Are they on the same server at MediaTemple? That they both have the issue out of nowhere may speak for a PHP change. There WAS a version patch recently.

  17. paulh16
    Member
    Posted 2 years ago #

    Yes, they are on the same server at MT. They are running PHP version 5.3.10.

  18. Can you ask MT if they patched for the php-cgi vulnerability?

  19. playonmonkeys
    Member
    Posted 2 years ago #

    I to have the same issue clean install no plugins and keep getting this error Warning: number_format() expects parameter 1 to be double, string given in /home/xxxxxxx/public_html/xxxxxxxxx.com/wp-includes/functions.php on line 155

    Please I need a fix for this

  20. If it's a totally clean install that worked fine with single site, then the issue is your server. Or your install wasn't right.

  21. paulh16
    Member
    Posted 2 years ago #

    Thanks Ipstenu for your help on this. It doesn't seem to be affecting anything so far so maybe I'll just wait and see if it disappears because the server makes necessary updates or it is a bug in WordPress itself.

    Thanks again!

  22. If it was a bug in WP, it would affect a lot more people.

  23. NA1
    Member
    Posted 2 years ago #

    Hi,

    paulh16 - You mentioned seeing this in the Network Admin's Dashboard. In which widget do you see the message? Are any numbers in the messages there missing?

    For example, in the case of one of my sites, the error appears in the "Right Now" widget and there is a missing number in the message "You have 1 site and users." (in my case, this network has over 17000 users).

    The missing number can give us an idea which call to number_format is causing problems.

    This error seems to happen a lot. I've seen it on multiple sites, including those of some of my clients. In many cases the cause can be traced to a plugin. But there are a lot of unsolved cases.

    There is a related bug here:

    http://core.trac.wordpress.org/ticket/19590

    It's not clear to me if this is related to the issue we're seeing or not, though.

    I'm not saying I have a solution, but wanted to post what I think is useful related info.

    hth,

  24. paulh16
    Member
    Posted 2 years ago #

    Hi NA1,

    I only see this in the Netwok Admin's dashboard, but only in the "Right Now" widget. I am getting the same message as you as well: "You have 3 sites and users". There is no number for the users.

    Thanks for adding this!

  25. I wonder what's the same with all those clients, NA1, because I've seen a couple hundred multisites and never run into that one :/

  26. NA1
    Member
    Posted 2 years ago #

    I have a feeling it's not the same reason each time. The function being called is number_format_i18n; this function is probably called a lot, both by core WordPress code and by plugins.

    The error surfaces because of a null value being passed to this function. But the source of the null is upstream, possibly much earlier in the call stack. Identifying it is probably going to be tricky.

    I'm going to try to do a little more debugging when I get a chance. Will look at a few backraces, dump some vars, print some rs ;) etc, to see what I can find. At present, I only have access to one site with this issue, but perhaps what I find will be helpful.

    Will post when I have updates, but it may be a while since this issue really doesn't affect the site's functionality at all (it's just a little annoying!). If anyone has more ideas, let us know.

  27. Jussdoowit
    Member
    Posted 2 years ago #

    Hey I had the same problem (receiving the same error message on the product's page).

    I noticed, however, that in the WP admin where I created the product on a new page, after I had input all the product info, it gave me the message "Price incorrect, please only enter a numeric value." So I looked and where I had input the price, i put $6.00. So I changed it so that it only said 6.00 and updated the page, price error message gone, refreshed the product page on the site, product error message GONE!!

    I don't know if that helps anybody but it worked for me.
    Might be something to at least check.

Topic Closed

This topic has been closed to new replies.

About this Topic