Forums

Multiple blogs being merged in WP Stats plugin (2 posts)

  1. sneakykitty
    Member
    Posted 4 years ago #

    I have three WP blogs on my domain:
    1. http://sneakykitty.com
    2. http://babble.sneakykitty.com
    3. http://fibro.sneakykitty.com

    I have the WordPress.com Stats plugin enabled on all three sites.
    All three sites are running WP 2.5.
    All three sites are running the same theme - different headers, slightly different CSS, but ultimately they all have the same footer.php. And yes: the footer.php does have the <?php wp_footer(); ?>

    Site 2 will always display properly.
    Site 1 will display correctly if i turn off stats on Site 3.
    Site 3 will display the correct stats if i turn off stats on Site 1.

    In the dropdown menu that enables you to quickly switch between sites, it only ever lists 1 & 2.

    If Stats are turned on in all three sites, 1 & 3 will show the exact same information and list it as being stats for 1. Basically, it's merging the data for the two sites.

    Several months ago, i had the same problem with a different blog on a different subdomain (it was later deleted and replaced by # 3). So this problem is not unique to the fibro.sneakykitty.com domain/blog.

    Does anyone have any ideas on how to fix this?

  2. sneakykitty
    Member
    Posted 4 years ago #

    Okay, i think i figured something out.

    I went into the backend databases for all three blogs and did a search for the term "stats".
    The only place it came up was in the wp_options table; in wp_options, there's an option called "stats_options".
    Here's what i found in each one (snipped for brevity & privacy reasons):

    "fibro.sneakykitty.com" ;s:4:"path";s:1:"/";s:7:"blog_id";i:1830040;s:
    "babble.sneakykitty.com" ;s:4:"path";s:1:"/";s:7:"blog_id";i:1828015;s:
    "sneakykitty.com" ;s:4:"path";s:1:"/";s:7:"blog_id";i:1830040;s:

    And i noticed that fibro and sneakykitty were using the same number that shows up after blog_id.

    I went to babble and searched for 1828015 and it only came up in that one thing. Same with sneakykitty. If the blog_id is specified anywhere else, it doesn't appear to be in the database.

    So then, the question becomes: how do i find the real blog_id # for fibro.sneakykitty.com? I think that'll fix it... if only i can find that number.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags