WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] 'siteurl' on site edit page gets re-written upon logout/login (21 posts)

  1. dgroos
    Member
    Posted 3 years ago #

    I can't easily post to my sites, and, when students post comments to some post I've made, they often get taken to a blank screen (using firefox).

    I've done the basic troubleshooting that I've found on the web (eg clear cache/cookies, disable all plugins) to no avail.

    The following steps illustrates what I do and the problem:
    --In superadmin box in the dashboard I click on 'sites'.
    --I click on 'edit' for one of my sites such as the groosp1 site. I have these settings shown:
    ----Domain http:// is: fle.mpls.k12.mn.us
    ----path is: /wpblogs/groosp1/
    ----I've got checked: Update siteurl and home as well.
    ----It has the incorrect siteurl: http://fle.mpls.k12.mn.us/wpblogs
    ----I scroll a ways down to the 'home' setting and it has the correct address: http://fle.mpls.k12.mn.us/wpblogs/groosp1/
    --I update the siteurl to: http://fle.mpls.k12.mn.us/wpblogs/groosp1
    --I scroll to the bottom and click 'update options'.
    --Next, if I click on 'add post' at the top of this screen it will go to a post creation page BUT not for the correct site but instead has this address: http://fle.mpls.k12.mn.us/wpblogs/wp-admin/post-new.php (note the missing /groosp1 in the address). If I publish this post and view it I find it at the root blog page... http://fle.mpls.k12.mn.us/wpblogs/blog/2010/11/16/test5-post/. However,
    --If I click on a link to the /groosp1 site, then click on 'site-admin', then click 'add post', create a post and post and view it, It works just find, creating a post on the groosp1 site.
    --next I log out
    --log back in
    --go to superadmin box, again to to 'sites', click on 'edit' for the groosp1 site.
    --and it has re-written the siteurl again back to the root site: http://fle.mpls.k12.mn.us/wpblogs
    --and if I try to post a blog it will go to the site root, not the groosp1 site I was at.

    I've worked many hours on getting a handle on problem, I'd appreciate any links or ideas to check!
    David

  2. Where do you actually have wordpress installed?

    And in the config file, what value does it have for $base?

  3. dgroos
    Member
    Posted 3 years ago #

    My /var/www/html/wpblogs/wp-config.php says:
    $base = '/wpblogs/';

    Thanks for such a quick reply!
    David

  4. Turn off all your plugins, including those in mu-plugins (if applicable) and try it again.

  5. dgroos
    Member
    Posted 3 years ago #

    The results described in the first post are with all plugins deactivated and cache/cookies emptied. Unless there is a separate page I don't know about for mu-plugins?

    The mu and the wp3 folders are installed in the same folder on the server: /var/www/html/:
    drwxr-xr-x 5 root root 4096 Aug 22 13:43 .
    drwxr-xr-x 6 root root 4096 Apr 19 2010 ..
    -rw-r--r-- 1 root root 79 Jun 23 07:12 index.html
    drwxr-xr-x 5 root root 4096 Mar 3 2010 wordpress-mu
    drwxr-xr-x 2 root root 4096 Aug 22 13:43 wp09
    drwxr-xr-x 5 apache wpgroup 4096 Nov 16 22:03 wpblogs

    Our district senior web engineer installed mu first last year--I don't think I ever used that. When wp 3 came out he created a new install for that. He had been experimenting with various AD authentication schemes but was never able to get them to work and I needed to get going using this great software with my students. As mentioned, I have deactivated all plugins, including those LDAP/AD plugins.

    Thanks for your help,
    David

  6. Ron Rennick
    MultiSite Guru
    Posted 3 years ago #

    The siteurl field is ignored if the 'Update siteurl and home as well' is checked. The siteurl will be updated to http:// + domain + path.

    What is DOMAIN_CURRENT_PATH set to in your wp-config.php?

    Either your config, wp_site record, wp_blogs records are misconfigured or a plugin/theme is causing that.

  7. dgroos
    Member
    Posted 3 years ago #

    Thanks for explaining how the siteurl works. I'm using the 2010 theme. I did try to upload a new picture last year but didn't succeed. Wonder if I should try another theme - which might be a standard one?

    I don't have a DOMAIN_CURRENT_PATH in my wp-config.php file.

    This is what I have:
    $base = '/wpblogs/';
    define('DOMAIN_CURRENT_SITE', 'fle.mpls.k12.mn.us' );
    define('PATH_CURRENT_SITE', '/wpblogs/' );
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOGID_CURRENT_SITE', '1' );

    In case this is useful, here's my wp-config file: http://pastie.org/1305989

    I've located wp_site:
    /var/lib/mysql/wpblogs/wp_site.MYD
    /var/lib/mysql/wpblogs/wp_site.MYI
    /var/lib/mysql/wpblogs/wp_site.frm
    and likewise my wp_blog:
    /var/lib/mysql/wpblogs/wp_blogs.frm
    /var/lib/mysql/wpblogs/wp_blogs.MYD
    /var/lib/mysql/wpblogs/wp_blogs.MYI

    I'm not sure which of these to check or exactly how I would check them?

    THANKS Andrea and Ron for your help.
    David

  8. Everything Ron posted about has nothing to do with your theme. the theme is irrelevant - it can;t control base values such as site url.

  9. dgroos
    Member
    Posted 3 years ago #

    ???

  10. You said:

    I'm using the 2010 theme. I did try to upload a new picture last year but didn't succeed. Wonder if I should try another theme - which might be a standard one?

    I'm saying it's not the theme.

  11. dgroos
    Member
    Posted 3 years ago #

    Any other ideas or links? I really need students to use the sites but they can't...

  12. Did you check the db like ron suggested?
    Did you disable all your plugins, including any in the mu-plugins folder? (Yes, I know you said you deactivated plugins)

    Also, go look at the Edit page for any other sub site. Is it correct? Do not edit it. Do not save. Just LOOK.

    Can you post to any other sub-site?

  13. dgroos
    Member
    Posted 3 years ago #

    Did you check the db like ron suggested?

    Check database? I think that means check one of the following files, right? Which one? Do I just open it with a text editor?
    I've located wp_site:
    /var/lib/mysql/wpblogs/wp_site.MYD
    /var/lib/mysql/wpblogs/wp_site.MYI
    /var/lib/mysql/wpblogs/wp_site.frm
    and likewise my wp_blog:
    /var/lib/mysql/wpblogs/wp_blogs.frm
    /var/lib/mysql/wpblogs/wp_blogs.MYD
    /var/lib/mysql/wpblogs/wp_blogs.MYI
    Please link me to a page that explains what you mean about 'checking the db'.

    Did you disable all your plugins, including any in the mu-plugins folder?

    I don't know how to disable a plugin if it isn't on my plugins page at the root level of my site.

    Also, go look at the Edit page for any other sub site. Is it correct?

    ---I've got 1 root site and 9 sub sites.
    ---When I click on the 'edit' button to get to each of those 10 sites, the all properly say at the very top: "Edit Site - http://fle.mpls.k12.mn.us/wpblogs/teachers" for whatever site it is. This example is at the sub-site called /teachers.
    ---Looking at the Siteurl on each of the 9 sub-site edit pages, I see that on 7 of them it lists the root site, and on 2 of them it lists the proper site!!! But even when I try to add a new post on one of these 2 sub-sites, the post always goes to the root level blog. Thanks for your continued help!

  14. Check database? I think that means check one of the following files, right? Which one? Do I just open it with a text editor?
    I've located wp_site:
    /var/lib/mysql/wpblogs/wp_site.MYD
    /var/lib/mysql/wpblogs/wp_site.MYI
    /var/lib/mysql/wpblogs/wp_site.frm

    Um, no. Ideally you;d have some way to manage the database, like phpmyadmin or a way to search if you know SQL from the command line. Do you hace a tech guy at your school?

    Did you disable all your plugins, including any in the mu-plugins folder?

    I don't know how to disable a plugin if it isn't on my plugins page at the root level of my site.

    look at your folder. under wp-content. Is there one called mu-plugins or not? If not, don't worry about it.

    ---Looking at the Siteurl on each of the 9 sub-site edit pages, I see that on 7 of them it lists the root site, and on 2 of them it lists the proper site!!! But even when I try to add a new post on one of these 2 sub-sites, the post always goes to the root level blog

    you've definitely got something wrong with your site, and if you can't narrow it down you may have to just reinstall it.

  15. dgroos
    Member
    Posted 3 years ago #

    I 'checked the database' with phpmyadmin and nothing stood out--not sure what to check...

    Andrea, when you say,
    ... just reinstall it. Do you mean simply doing a reinstall of wordpress 3.0.1 from the reinstall page (I did this and didn't help). or are you saying create a new database and a new install and importing in the data? Technology--great when it works...

    Thanks again

  16. or are you saying create a new database and a new install and importing in the data?

    That's exactly what I'm suggesting. If you have time but no money, this may fix it.

  17. dgroos
    Member
    Posted 3 years ago #

    As described on: http://wordpress.org/support/topic/upon-enabling-multisite-and-re-logging-in-get-500-internal-server-error?replies=9 I created a new wp 3.0.1 install with a new database and multisites enabled.

    Since there is some unknown issue with the wp install and/or database as described in the posts above on this current page, I'm not sure exactly how I want to do the import of the old database into the new site. Both this old database from the above, mis-functioning site and the database from the new wp 3.0.1 install are managed via phpmyadmin on the same server.

    So, my question is, which instructions on this page: http://codex.wordpress.org/Moving_WordPress related to what I want to do?

    THANKS!

  18. Not much of them. :)

    If it were me, I would make some new test sites in the new install, and try to recreate the issues. use the same themes & plugins, which means just copying over the wp-content folder.

  19. dgroos
    Member
    Posted 3 years ago #

    I'd hoped there was a way to just import it.
    Will give this a try.
    Again, thanks.

  20. You could use the backend export - import, which will get just your content, so if there's anything else mucked up in the db, it shouldn't snag it.

  21. dgroos
    Member
    Posted 3 years ago #

    Hi Andrea_r

    This last tip is a good one to know.

    I've worked so many hours on problem solving I just wanted to get my site up and running. Since I have a new site and new database and they are WORKING I decided to bite the bullet and just reset the whole multi-site thing up and leave the above messed up site to the side.

    My new sites work beautifully, I've got 140 student users added and divided up between 5 sub-sites, I've got the incredible 'knowledge building' plugin installed and working, I can't wait to let my students on this setup. Again, thanks for your help and I hope I won't need it again for months! Good luck in your efforts!

    David

Topic Closed

This topic has been closed to new replies.

About this Topic