WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#36821 closed defect (bug) (invalid)

Domain name mismatch in wordpress admin page

Reported by: tools4toni Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Networks and Sites Keywords:
Focuses: Cc:

Description

Hello Team,

We have renamed the domain "toni-english.com" TO "toni-esl.com" months ago due to some issues. Now the domain "toni-esl.com" is loading fine without any issues.

The domain has some issues in wordpress admin page. The old domain name "toni-english.com" is being displayed in the location : http://toni-esl.com/wp-admin/network/setup.php

Please refer the screenshot in the URL: http://postimg.org/image/593b60ag1/

However, the exact domain name "toni-esl.com" mentioned under wordpress multi-site settings in wordpress configuration file.

# cat wp-config.php |grep toni-esl.com
define('DOMAIN_CURRENT_SITE', 'toni-esl.com');

Please check the issue and why the wrong domain name in being displayed in wordpress admin page. How can I get it corrected?

Regards,
Toni

Attachments (1)

screen.jpeg (31.7 KB) - added by tools4toni 5 years ago.
attachment

Download all attachments as: .zip

Change History (5)

@tools4toni
5 years ago

attachment

#1 follow-up: @swissspidy
5 years ago

  • Component changed from General to Networks and Sites
  • Focuses multisite added

#2 in reply to: ↑ 1 @tools4toni
5 years ago

Replying to swissspidy:

Hello Pascal,

Thank you for your help. Could you please explain me clearly that how can I fix the issue.

Regards,
Toni

#3 @tools4toni
5 years ago

Hello Pascal/Team,

Is there any update for us.

Regards,
Toni

#4 @swissspidy
5 years ago

  • Focuses multisite removed
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Hey there

Welcome to trac and thanks for creating this ticket!

The value you get there in the suggested config for DOMAIN_CURRENT_SITE is the output of get_clean_basedomain().

This function gets the values from two places:

  • The multisite sites database table if it's an existing network (see network_domain_check())
  • or else from the siteurl option

To fix this:

  • Check your network dashboard for sites with the wrong domain
  • Check your site URL and home URL settings under Settings -> General
  • Check if the WP_HOME and WP_SITEURL constants are defined in your wp-config.php file

That should help you finding the culprit.

In any case, WordPress only shows you what has been configured, so it's not really a bug. I'm therefore closing this ticket. If you need further help, please check out the Multisite support forums, which are more appropriate for this kind of questions.

Note: See TracTickets for help on using tickets.