ResQTek
Forum Replies Created
-
Forum: Plugins
In reply to: [Amazon Associates Link Builder] Blank Overlay when trying to use searchThis was caused by another plugin.
Forum: Plugins
In reply to: Contact Form 7 WP Mail-SMTP and Bluehost temp siteI have the same question.
Forum: Networking WordPress
In reply to: You have 0 sites and 0 users.Except that I modified this line to prevent it from looking at cache (yesterday):
function get_site_option( $option, $default = false, $use_cache = false )
Forum: Networking WordPress
In reply to: You have 0 sites and 0 users.dashboard.php
function wp_network_dashboard_right_now()
$c_blogs = get_blog_count();ms-functions.php
function get_blog_count()
return get_site_option( ‘blog_count’ );functions.php
function get_site_option()
$row = $wpdb->get_row( $wpdb->prepare(“SELECT meta_value FROM $wpdb->sitemeta WHERE meta_key = %s AND site_id = %d”, $option, $wpdb->siteid ) );That is the flow and it’s looking in the sitemeta table which only has one site id and it’s the default which is not being counted, therefore it returns zero.
Forum: Networking WordPress
In reply to: You have 0 sites and 0 users.functions.php get_site_option()
Forum: Networking WordPress
In reply to: You have 0 sites and 0 users.- I don’t have any plugins.
- This is not an upgraded installation.
- What function is that query in?
Forum: Networking WordPress
In reply to: You have 0 sites and 0 users.Okay, rather than fight with SQL yet — I noticed something in the DB:
Three tables:
> wp_site
> wp_sitemeta
> wp_blogswp_blogs has two site records (primary/default site and the one I added)
wp_site has one (primary/default site only)
wp_meta has one (primary/default site only)
The SQL for the dashboard count appears to be querying the wp_sitemeta table and therefore returns zeroes. That is assuming it is supposed to ignore the primary/default site.
Forum: Networking WordPress
In reply to: You have 0 sites and 0 users.I’m going to spit the SQL out to the screen to see what it’s NOT counting…
Forum: Networking WordPress
In reply to: You have 0 sites and 0 users.I installed WP 3.1 and activated Multisite.
Forum: Networking WordPress
In reply to: You have 0 sites and 0 users.I installed the network version of WP 3.1 just the other day. It’s clean except for some settings that I changed.
My completely separate installation of WPMU 2.9.1 counts the sites and users accurately. That one has lots of plug-ins and things going on.
Forum: Networking WordPress
In reply to: You have 0 sites and 0 users.I have no plugins yet.
Forum: Networking WordPress
In reply to: You have 0 sites and 0 users.Okay, so I created another user for site #2.
The Network Dashboard still reads: You have 0 sites and 0 users.
I looked at my separate WPMU 2.9.1 installation, and despite that I am the only user on seven sites, it says: You have 7 blogs and 1 user.
Any ideas?
tia
Forum: Networking WordPress
In reply to: You have 0 sites and 0 users.Ah ok, thank you. 🙂
Forum: Networking WordPress
In reply to: You have 0 sites and 0 users.I have the main site, yes, and myself as the user.
I created a second site, and I am the user for that, too.Is that the problem? Maybe If I had a different user on the 2nd site?
With what you said, I would still expect to see: You have 1 site and 1 user.
Thanks for the reply, by the way.