• Hi,

    Under Network Admin -> Settings -> Domains when I click the edit button of a Domain I can’t change the “Site ID” from one existing ID to another existing ID… When I click edit, enter the other ID and click save, nothing happens. However I can change “Primary” or delete the domain…

    Is this a Bug?

    When I change the site IDs in phpmyadmin the domain mapping works and the changed site ids show in WP Network Admin under Domains.

    Thanks in advance,
    Chris

Viewing 1 replies (of 1 total)
  • I had the same problem, which I’ve tracked down to this line in the domain_mapping.php file:

    null == $wpdb->get_var( $wpdb->prepare( "SELECT domain FROM {$wpdb->dmtable} WHERE blog_id != %d AND domain = %s", $_POST[ 'blog_id' ], $domain ) )

    Which seems to be checking that the map doesn’t already exist, but if we’re editing the map then it will!

    The line below:

    $_POST[ 'orig_domain' ] == ''

    seems to have the same function (which then decides whether to INSERT or UPDATE).

    So I’m not sure we need first null == condition.

    I’ve removed that condition and the map now updates. And everything seems to work ok.

    But it would be good to know if I’ve just broken the plugin somehow?

    Thanks, Peter

Viewing 1 replies (of 1 total)
  • The topic ‘Can’t change site ids’ is closed to new replies.