WordPress.org

Ready to get started?Download WordPress

Forums

WP switching to main blog on publish/update: Sitewidetags plugin issue? (22 posts)

  1. zamba
    Member
    Posted 3 years ago #

    I have a multisite installation on one domain with 24 network blogs in sub-directories. I'm using the Sitewidetags plugin to pull post excerpts and thumbnails from the network sites onto the main blog. This seems to be working OK.

    But I am experiencing three problems which may be related:

    Firstly, when publishing/updating a post I frequently (but not always) get an error message telling me I have attempted to update a post which does not exist; I have to use the back button to return to the previous page. However, the post has been published normally when I check in a separate browser.

    Secondly, when I update or make a new post, instead of returning the updated page in the admin I am often (but not all the time) switched to a completely different (apparently random) post in the main blog (the admin switches to the main blog also). The original post is published, however, and the thumbnail and post also pulled to the main blog OK.

    I have tried switching off the Sitewidetags plugin, and a post can be updated normally (obviously not being pulled to the main blog), although as the fault is intermittent this is not yet conclusive.

    Thirdly, but more rarely, when opening to the main blog home page, I experience a delay and then it flicks to a network blog home page url, which usually does not load completely. On refresh the correct home page is loaded.

    The network runs off a litespeed hybrid server with 2GB RAM so there's no problem with resources. I have installed WP Total Cache network wide, but have not set any JS or CSS to be minified as I encountered some configuration issues. I use disk enhanced for the page cache, disk for minified, opcode for object cache and database cache, and browser cache is also activated. Memcached is available on the server but I have not implemented it in WP TC.
    The theme used is Studiopress Genesis Lifestyle on all sites.

    I am using Firefox and Chrome on Windows 7 and Vista. The server is in Chicago, we are running off cable in Sydney Australia.

    Anyone experienced anything similar?

  2. I did, once, and after deleting the plugin and scrubbing it out of he DB, and reinstalling it, it went away and i never saw it again. I have no idea what I did wrong, but I can only assume I screwed something up.

  3. zamba
    Member
    Posted 3 years ago #

    Sounds hopeful! When you say "scrubbing it out of the DB" can you be more specific, i.e. what else do I need to do other than delete the plugin before re-installing?

  4. After disabling and removing the plugin, I searched the databases for all references to it and deleted that as well. I did not make a list of it all.

  5. zamba
    Member
    Posted 3 years ago #

    Thanks a lot, Ipestenu, I'll give it a go.

  6. zamba
    Member
    Posted 3 years ago #

    Well, I deleted the plugin, couldn't find any reference to sitewidetags in the DB (or anything that looked relevant) and now get on updating get an error with the phrase: " You tried to edit a file which does not exist. Perhaps it was deleted?". However, in distinction to others who have had the same error in the past, my post actually updates.

    Obviously as I get an error message I don't know whether the weird redirection problem has been solved as yet. More posts are due out later so I can check then (the site is live).

  7. zamba
    Member
    Posted 3 years ago #

    Sorry, I should have mentioned I reinstalled the latest dev version of the SiteWideTags plugin.

  8. zamba
    Member
    Posted 3 years ago #

    Unfortunately,the re-installation has not got rid of the weird redirects, as an update of a network blog post (which went through) resulted in a redirect to the edit screen of a "featured page" from the main blog home page (this has also happened on a previous occasion when a post was being updated, ending up at the edit screen of a different page featured on the home page).

    I should note that the featured pages where I ended up are actual pages created on the main blog, and not pulled in from elsewhere. Hmmm.

  9. could be url collision?

    Are you editing the original posts and NOT the ones on the tags blog? (cuz that'd do it.)

  10. zamba
    Member
    Posted 3 years ago #

    Yes, Andrea we are certainly editing the original posts, as they are the canonically important ones. But as a coding ignoramus I'm unclear as to how this would influence the set-up with the tags blog. We're being redirected to a blog page that has nothing to do with the copy of the original post on the tags blog. How does this url collision come about, and does it simply result in a random redirection?

    Presumably the "You have tried to edit a file that doesn't exist.." message is also involved, or would that be a separate issue?

  11. What's in the error logs?

  12. zamba
    Member
    Posted 3 years ago #

    Nothing relevant at the moment, Andrea, I'll come back to you when the next updatee is made in the morning...my time, sorry, it's a bit late here in Oz!

  13. zamba
    Member
    Posted 3 years ago #

    After quite a bit of checking, I found nothing relevant to my problem in the error logs (see below).

    The problem of the error on updating is persisting ("You tried to edit a file which does not exist," etc.

    Re switching: if I use the preview prior to updating a published post (in the network blog where it was first published), I am frequently getting the preview with the correct title and head, but the wrong post content. This content is from the post that is linked to as "prev" in the head. However, it is usually from a completely different blog.

    A similar behaviour has occurred today when publishing a post for the first time, I have been switched to a post listed as "prev" in the wordpress links in the header.

    In addition, on several occasions now I have been switched to the home page of a subsidiary blog when calling up the main domain home page in the browser (my browser home page is set to it). A refresh brings up the correct home page, but it's a little worrying.

    Error logs after updating (error message in browser but blog updated):

    2011-02-09 01:24:59.418 [INFO] [66.249.71.245:42264-0#APVH_travelsignposts.net] File not found [/xxxxx/xxxxxx/public_html/404.shtml]
    2011-02-09 01:24:59.418 [INFO] [66.249.71.245:42264-0#APVH_travelsignposts.net] File not found [/xxxxx/xxxxxx/public_html/wp-content/uploads/2010/03/France_Helen_1331.jpg]
    2011-02-09 01:24:56.904 [INFO] [66.249.71.245:63996-0#APVH_travelsignposts.net] File not found [/xxxxx/xxxxxx/public_html/404.shtml]
    2011-02-09 01:24:53.056 [INFO] [213.199.158.7:35083-0#APVH_travelsignposts.net] File not found [/xxxxx/xxxxxx/public_html/404.shtml]
    2011-02-09 01:24:53.056 [INFO] [213.199.158.7:35083-0#APVH_travelsignposts.net] File not found [/xxxxx/xxxxxx/public_html/wp-content/uploads/2009/12/ajp_4340.jpg]
    2011-02-09 01:24:48.608 [INFO] [209.68.1.243:56118-0#APVH_travelsignposts.net] File not found [/xxxxx/xxxxxx/public_html/404.shtml]
    2011-02-09 01:24:48.608 [INFO] [209.68.1.243:56118-0#APVH_travelsignposts.net] File not found [/xxxxx/xxxxxx/public_html/navbar_inf.php]
    2011-02-09 01:24:17.690 [INFO] [67.195.110.151:52838-0#APVH_travelsignposts.net] File not found [/xxxxx/xxxxxx/public_html/404.shtml]
    2011-02-09 01:23:46.138 [INFO] [66.249.71.245:55270-0#APVH_travelsignposts.net] File not found [/xxxxx/xxxxxx/public_html/404.shtml]
    2011-02-09 01:22:59.679 [INFO] [66.249.71.245:57626-0#APVH_travelsignposts.net] File not found [/xxxxx/xxxxxx/public_html/404.shtml]
    2011-02-09 01:22:25.462 [INFO] [95.108.158.235:56567-0#APVH_travelsignposts.net] File not found [/xxxxx/xxxxxx/public_html/404.shtml]
    2011-02-09 01:22:25.462 [INFO] [95.108.158.235:56567-0#APVH_travelsignposts.net] File not found [/xxxxx/xxxxxx/public_html/wp-content/uploads/2010/05/Eglise-Saint-Ephrem.jpg]
    2011-02-09 01:21:48.276 [INFO] [66.249.71.245:35274-0#APVH_travelsignposts.net] File not found [/xxxxx/xxxxxx/public_html/404.shtml]
    2011-02-09 01:21:31.008 [INFO] [209.68.1.243:56758-0#APVH_travelsignposts.net] File not found [/xxxxx/xxxxxx/public_html/404.shtml]
    2011-02-09 01:21:31.008 [INFO] [209.68.1.243:56758-0#APVH_travelsignposts.net] File not found [/xxxxx/xxxxxx/public_html/httptest_target.php]
    2011-02-09 01:21:30.929 [INFO] [209.68.1.243:50699-0#APVH_travelsignposts.net] File not found [/xxxxx/xxxxxx/public_html/404.shtml]

  14. Hmm, well that is interesting... they are going to server 404 pages and not WP ones.

  15. zamba
    Member
    Posted 3 years ago #

    I think that's because I chose to let the server handle 404's for static objects in WP3 total cache browser cache settings.

    More importantly, looking at my Google Analytics which gives more detail on 404 requests, I find that the main cause of error is a request from e.g. the Spain blog for a post on Dali which ended up as a request for the post but in the Bulgaria blog, where of course it did not exist. The problem appears to have its root in this arbitrary blog substitution, with the latter part of the request being correct.

    As an experiment, I have deactivated the SiteWidePlugin network wide and will see if that makes any difference. Otherwise it must be something to do with WP# total cache or APC.

  16. zamba
    Member
    Posted 3 years ago #

    We have just updated two posts and published a new one on different blogs. All went through normally without any error messages or blog switches. While clearly this is not conclusive, it does appear prima facie evidence that the SiteWideTags plugin had something to do with my problems.

    I see Ron has announced a new version of the plugin. I was using the development version downloaded on 6 Feb, has there been any changes since then?

  17. Dunno offhand. I meant to tag him on this thread, but it;s been a busy couple of days.

  18. Ron Rennick
    MultiSite Guru
    Posted 3 years ago #

    The tags for SWT so I'll see your thread is wordpress-mu-sitewide-tags.

    I did make a minor change 5 days ago, see http://plugins.trac.wordpress.org/log/wordpress-mu-sitewide-tags/.

    Try turning off the cache plugin.

    The basic mechanics of switching to the main/tags blog, saving the post & switching back to the original blog have not changed in SWT in a long while.

  19. zamba
    Member
    Posted 3 years ago #

    I have a feeling this is more complicated than it looks. Turning off STW has removed the error messages, and the most obvious redirects, but I have still had a four instances when clicking on a link to a post from within a blog has resulted in a misdirection via substitution of another blog in the link. So I'm certainly not out of the woods yet.

    Currently, W3 Total Cache is still installed with the settings mentioned in the first post. There appears to be some anomalies in the files it is supposed to create in wp-content, i.e. it has not created a settings file for some blogs even though they have been individually activated.

    With the imminent release of WP 3.1 I will probably try removing W3TC completely and reinstall it from scratch. Currently I'm finding my pages take a long time to start rendering, and then load quite quickly.
    If the re-install works OK then I'll re-activate the latest version of STW and see how I go.

    If anyone else has experienced similar site substitution problems recently, let me know! I can't help but think it may have something to do with the plethora of .htaccess settings flying around...

  20. Ron Rennick
    MultiSite Guru
    Posted 3 years ago #

    I have a feeling this is more complicated than it looks. Turning off STW has removed the error messages, and the most obvious redirects, but I have still had a four instances when clicking on a link to a post from within a blog has resulted in a misdirection via substitution of another blog in the link. So I'm certainly not out of the woods yet.

    Yeah, you definitely have something going on there. The only thing that SWT does that you don't see in a great number of plugins is call switch_to_blog(). It does not do any redirects.

  21. zamba
    Member
    Posted 3 years ago #

    This might be the answer, but with reference to my use of an object cache.
    Note this thread:
    Permalink displays incorrect URL when using switch_to_blog and the wptrac bug with Object Caching here: http://core.trac.wordpress.org/ticket/14992
    I'm continuing to look at this.

  22. That should NOT affect the backend. W3TC doesn't cacge the admin side.

Topic Closed

This topic has been closed to new replies.

About this Topic