• Resolved crdoughty

    (@crdoughty)


    I am trying to change the URL for my site. This is on a virtual ubuntu server, so to make things easier, I cloned the machine before making any changes and am able to revert back to the old machine very quickly. I started by editing the vhost entries in the default file in sites-available for apache, changed the entries in the hosts file to the new url, and edited the wp-config.php file as per instructions. I then exported the database and changed all occurrances of the old site to the new and re-imported it. The site comes back up, but the custom themes are all gone and exporting them from the working site and re-importing them does not fix them. What am I missing, or where have I gone wrong?

Viewing 15 replies - 1 through 15 (of 29 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    Did you move any files with this whole thing? That shouldn’t have changed unless you were renaming folders.

    but the custom themes are all gone

    no idea what you mean by this. gone, as in no longer physically present in wp-content/themes/? or gone as in no styles on the sub blogs?

    Thread Starter crdoughty

    (@crdoughty)

    I cloned the whole server, so files are exactly the same as on the old box. When I say gone, the theme is still applied to the individual sites, but the customizations are all gone. So like in the css where there once was code, there is none and so forth. Again, all files are still there, but when viewing the site, it has the default theme and settings.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    the theme is still applied to the individual sites, but the customizations are all gone

    Where did you make these changes? via a plugin or … what?

    That might be a DB copy issue (that is, I believe safeCSS stores your CSS changes in the DB, so if that didn’t get brought up correctly, it could do that).

    Thread Starter crdoughty

    (@crdoughty)

    The theme on the main site is a custom community pro child theme created by one of the people doing the developement of this site. It has several options including Header, Menu, Sidebars, Buddypress, CSS, etc. The customized theme options are what are missing once I change all occurrences of the old domain name in the database. We tried exporting the theme from the old site and importing it to the new site, but not all settings imported correctly and we wound up with double menus and missing other elements.

    If the theme had options in the backend, then those were saved in the db.

    Actually the theme settings that we were able to export were working or still looking for items under the old url, not the new one. But the widget settings were not part of the theme setting file. The widget settings disappeared and the main menu made a duplicate and had 2 of all menu items on the new url site.

    Thread Starter crdoughty

    (@crdoughty)

    Any idea why they wouldn’t automatically apply with the new domain name in place after doing a replace on all occurences of the old domain name. Or any idea where to start looking in the database for possible problems?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    I would guess, based on jewlzmcq’s comment, that when you brought ’em over, the domain name didn’t change.

    I then exported the database and changed all occurrances of the old site to the new and re-imported it

    Did you look for olddomain.com or http://olddomain.com or http://www.olddomain.com ? It’s possible you missed some.

    Thread Starter crdoughty

    (@crdoughty)

    Old site: fayettevilleforward.org
    New site: fayettevillecommunitylink.org

    used the following command to export db:
    mysqldump –add-drop-table -h localhost -u wordpress -p wordpress > wordpress.sql

    Used notepad to
    replace: fayettevilleforward
    with: fayettevillecommunitylink

    and the following to import:
    mysql -u wordpress -p wordpress < wordpress.sql

    Does anything jump out at you from that process?

    Thread Starter crdoughty

    (@crdoughty)

    total replacements performed were 3487

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    Only something @wpmuguru mentioned in passing about why he always uses domain.loc and domain.com so that the number of letters are the same and … damn it, that’s as far as my brain is going right now πŸ™

    serialization in things like widgets πŸ˜‰ they also store how many characters long the name is. if your replacement is off… then that serialization is off too.

    Forgive me if this is a stupid question but….

    they also store how many characters long the name is. if your replacement is off… then that serialization is off too

    does this mean the new domain name should be the same nunmber of characters as the old or that we need to make other changes to get the new domain to take?
    Thanks.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    Serialization! Thank you, Andrea! (Tell wpmuguru I owe him a coffee!).

    jewlzmcq – Yes. Kind of. One or other has to be true, and I’ve not a clue what the ‘other changes’ are.

Viewing 15 replies - 1 through 15 (of 29 total)

The topic ‘Changing URL domain name on wordpress multisite’ is closed to new replies.