NA1
Forum Replies Created
-
Forum: Networking WordPress
In reply to: Network dashboard functions.php errorI 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.
Forum: Networking WordPress
In reply to: Network dashboard functions.php errorHi,
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:
https://core.trac.www.ads-software.com/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,
Forum: Fixing WordPress
In reply to: Admin Search Users field broken in latest release?Ok, thanks.
I was hoping for ideas to check for that would let me avoid the lengthy steps of deactivating all the plugins (length bc I need to duplicate the environment). In the past, I’ve been able to troubleshoot problems based on my understanding of WordPress and how a specific problem might occur. That’s much faster than starting with plugins, going to themes, etc.
But it seems like we don’t have much of an idea of what to look for here, so I’ll fall back to that method as you suggest.
If I figure out what’s causing this, I’ll post here to let people know. Perhaps that will save some time in the future.
I appreciate your posting, nice to know someone was listening!
thanks,
Or are you using a caching plugin like WP Super Cache and you need to turn off caching and clear the cache to see the changes?
When I’m doing dev work, I usually turn off caching and clear the cache to make sure I can see my changes (depending on the plugin, turning off cache might not be enough, and you really do need to clear the cache).
Forum: Fixing WordPress
In reply to: Admin Search Users field broken in latest release?I did deactivate all the plugins but 3 of them (this is a production site and I can’t deactivate those safely). I’m going to look into duplicating the site and then deactivating the plugins on that test site.
But if this type of behavior gives you any ideas where to look (perhaps plugins involved with displaying users or user fields, ones that do user sorting, ones that do xxx with query strings, caching plugins, etc), I’d love to hear your thoughts. I might be able to pinpoint the cause of the problem without having to create the duplicate site, and could ideally just fix the problem directly.
thanks!
Forum: Fixing WordPress
In reply to: Admin Search Users field broken in latest release?And lastly, dropping everything else except for the “s” query parameter works fine. So:
https://example.com/wp-admin/users.php?s=foo
works without any problems…
Any ideas?
Forum: Fixing WordPress
In reply to: Admin Search Users field broken in latest release?The WordPress error page appears to be a 403 error page. I checked the mod_security logs and I’m not seeing anything there, so this doesn’t look like a configuration issue.