Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Site URL change – lost access to members, group, li

  • Avatar of daved42
    daved42
    Participant

    @daved42

    I have changed my site URL from and internal IP (http://xxx.xxx.x.xxx) to an external (www.example.com) in WordPress and all the main pages are accessible with this new URL. I can open the buddypress members page (www.example.com/members) and see a list of all the members. However, when clicking on an individual member the link reverts back to the old URL (http://xxx.xxx.x.xxx/members/name) rather than (www.example.com/members/name) which i need. This also happens with the list of groups and forums.

    I’ve done things like changing the site URL in the wp-config.php file, changed the site URL in the database.

    Any help would be great.

    Rgds

Viewing 4 replies - 1 through 4 (of 4 total)
  • Avatar of @mercime
    @mercime
    Keymaster

    @mercime

    @daved42 I would double-check if there are any overlooked old URI’s in DB, double-check .htaccess file if carried over from old site, re-run Settings > Permalinks.

    Avatar of Paul Gibbs
    Paul Gibbs
    Keymaster

    @djpaul

    How did you change the URL for WordPress, exactly?

    Avatar of daved42
    daved42
    Participant

    @daved42

    Thanks,

    issue: links to pages changed sitename to ‘named’ URL and, but links for buddypress data, eg users remains as numbers, 192.xxx.x.xxx URL, so not changed.

    I changed the sitename in the wp-config.php file with:
    define(‘WP_HOME’,’http://www.example.me/wordpress’);
    define(‘WP_SITEURL’,’http://www.example.me/wordpress’);

    checked the database, bb_meta and wp_options has the changed URL’http://www.example.me/wordpress

    Looking further, on the settings > general page the fields have been greyed out, but only the Site Address (URL) has registered the change, the WordPress Address (URL) remains as the numbered IP and is not changed.

    It looks like the issue is that the ‘define’ code in wp-config needs to change the WordPress Address (URL), but has not.

    Thanks

    Avatar of daved42
    daved42
    Participant

    @daved42

    Solved, thanks for you help, this was the issue…

    One of the options to change the site URL is to add:
    update_option(‘siteurl’,’http://www.example.com’);
    update_option(‘home’,’http://www.example.com’);
    to functions.php file

    I did this, but added to the core theme functions file.

    I now have added this to functions.php in the Buddypress theme under plugins > bp-themes > bp-default and it works

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.