• viebone

    (@viebone)


    Hello,

    I have mysite.com and mysite.com/en, but if I login into the admin, the url of the second blog change to mysite.com.

    I don’t know what is going on.

    Any clue of what can I do or what could be happening????

    Thanks!

Viewing 7 replies - 16 through 22 (of 22 total)
  • Thread Starter viebone

    (@viebone)

    Hello, hope you are well!

    After testing my website a few days I know where is the problem but I don’t know how to solve it.

    As I told you before, I have a wordpress multisite with to blogs.

    If I go to the admin of the second blog and I click on the LogOut button, wordpress change the url in the db.

    I have mysite.com and mysite.com/en, after logout, the url of the second blog change to mysite.com.

    Each time I logout from the second blog admin I have to go to my phpadmin and change the siteurl field value on the wp_3_options table.

    What the hell I am doing wrong??? jejeje I am getting crazy with this small but anoying problem.

    I have tried to trace the logout process to see if I see where it is the problem but I can’t, I have no idea what is going on.

    Do you know what could I do???

    Thanks

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    If I go to the admin of the second blog and I click on the LogOut button, wordpress change the url in the db.

    Every time you press logout the URL changes?

    You’ve got to have some hook/action calling that.

    Are you 100% sure you can reproduce this without any plugins turned on?

    Thread Starter viebone

    (@viebone)

    Hello,

    Yes, every time I press logout button the url changes, but only if I logout from the /en/wp-admin. I mean, when I logout from the second blog admin.

    I have deactivated all plugins in both sites, and nothing, if I press de logout button the url changes on the db.

    It is posible that I did something wrong in my wp-config.php???

    Thanks mate!

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    I don’t think it’s your wp-config.php.

    Can you test after renaming the plugins and mu-plugins folders to plugins-old and mu-plugins-old

    Thread Starter viebone

    (@viebone)

    Hello,

    Bufff, nothing, I have renamed the plugins folder to plugins-old and when I click on the logout button it happens again.

    I don’t have mu-plugins-old.

    Well thanks for your help, I don’t know what to do. Is there a way to deactivate the logout button in this blog admin????

    Thanks a lot!

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    If you are up for some command line fu ?? ssh to your server, cd to your WordPress directory and try running this command.

    find . -type f -name '*.php' | xargs -I{} egrep -Hn "update_option\(.*'siteurl|update_option\(.*'home" {}

    On my multi-site installation I get this output.

    ./wp-admin/network/site-info.php:55:                    update_option( 'siteurl', $blog_address );
    ./wp-admin/network/site-info.php:58:                    update_option( 'home', $blog_address );
    ./wp-admin/includes/upgrade.php:53:     update_option('siteurl', $guessurl);
    ./wp-admin/includes/schema.php:521:     if ( !__get_option('home') ) update_option('home', $guessurl);
    ./wp-login.php:376:             update_option( 'siteurl', $url );
    ./wp-includes/ms-functions.php:1155:    update_option( 'siteurl', $url );
    ./wp-includes/ms-functions.php:1156:    update_option( 'home', $url );

    Which I’m pretty sure is normal. If you run that command do you see any other files listed?

    Thread Starter viebone

    (@viebone)

    Well, after trying different things I couldn’t do ssh to my server.

    Finally I have deactivate the logout button for that blog because I am completly desperate.

    I am not use to command line and ssh…

    Anyway, thank you very much for your time and if some day I got an answer I am going to post it here.

    I really appreciate your help,

    Thanks!!!

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘Url problem / wp_3_options table change’ is closed to new replies.