You are facing the error because the database tables have old domain stored in all tables and post meta data.
You need to replace all instances of previous domain with the new one in the database, the following link will help:
https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
You should also update your permalinks after the above process.
Related Posts:
- Installation problems on a domain-name-less server
- Installed WordPress Location
- Moving WordPress from Root to a subfolder
- How to completely remove Python from a Windows machine?
- Homebrew install specific version of formula?
- How to install MinGW 64 on windows 10
- Conda version pip install -r requirements.txt –target ./lib
- Conda version pip install -r requirements.txt –target ./lib
- [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
- PackagesNotFoundError: The following packages are not available from current channels:
- Conda version pip install -r requirements.txt –target ./lib
- How can I create an MSI setup?
- Android Fastboot devices not returning device
- extconf failed, exit code 1 error when installing [Ruby on Rails] 5 on OS X Yosemite 10.10.5
- How can I convert my Java program to an .exe file?
- Initialization Script for “Standard” Aspects of a WordPress Website?
- Populate content on install
- Changing the wp db prefix after installation?
- Automatically enable custom theme, plugins and default content on installation?
- Are there any downsides to installing WordPress on Windows versus Linux?
- Create a custom WP install with plugins, theme etc already installed?
- Things to take care when moving from hosted wordpress to self-hosting
- the correct order of manual install WP and SSL on server
- Install and configure WordPress while old site is still active
- How do I install two versions of WordPress on 1 server?
- How do I setup a WordPress site on a server before the domain is ready?
- How to Check the Directory Where WordPress is Installed?
- wp core install database connection error
- After moving wordpress some files still point to old directory
- URL to download latest version of WP for other languages than English
- Steps to debug on a blank screened wordpress install
- Custom WordPress Installation
- Shortest possible shell script to install WordPress on Nginx server?
- Installed successfully; home page still redirects to install.php
- Repeatable configuration package
- One WordPress install serving multiple virtual hosts
- How to import WP XML file automatically on installation?
- Moving WordPress from live to local server
- Trying to install WordPress on WSL Windows 10, and running into issues with wp-cli and “wp db create”
- Cannot access WordPress install on subdirectory of drupal site
- Is it possible to install WordPress within WordPress installation?
- WordPress package configuration in Ubuntu Server?
- Programatically Creating Initial WordPress Site
- Can WordPress be installed at the root level, if a homepage called index.php already exists?
- Install wordpress in backend with Existing html website alive
- Multiple Multisite networks on the same domain?
- Subdomain and subdirectories together in one installation
- Two domains on one WordPress Installation
- How would you detect if WordPress is installed in a subdirectory (not root)?
- When WordPress Does Not Provide an .htaccess File for New Multisite Sites because of CPanel Fantastico Auto-Installer?
- Is there any plugin hook that I can latch onto once a site is freshly installed?
- No configuration file found and no installation code available. Exiting
- InfiniteWP installation fails – CONFIGURABLE MAX EXECUTION TIME DISABLED
- Multiple sites/domains on one database
- Quickest Way Besides FTP to Upload WordPress Files to a Web Server?
- Moving to directory creates path problems.. how to solve?
- Unable to install wordpress theme without ftp user & password
- Sharing one WordPress installation between several “sites”?
- Backup blog posts only
- How to use if condition to change $table_prefix in wp_config.php
- Reinstall WordPress from zero
- Importing wordpress. xml file on new installation
- WordPress installation does not get completed in WAMP server
- Novice WordPress Installation issues
- Can my site use two different WordPress installs for different pages?
- Can I clone WP to another directory on the same server?
- How to download WordPress 4.2.0
- Should I delete automatically-created files before installing WordPress?
- Plugins try to install in old location [closed]
- How to work locally on a copy of my wordpress?
- When I try to install VersionPress, it tells me, “The package could not be installed. No valid plugins were found.”
- You appear to have already installed WordPress. To reinstall please clear your old database tables first
- Change WordPress directory
- Reset generated wp-config.php with wp-cli
- Missing wp-load.php on new install
- Automate specific steps on WordPress install
- Use new domain name on previously installed files of wordpress
- No option to update WP in client’s backend
- “Deprecated: mysql_connect()” error when installing Roots Bedrock
- wp-cli installation
- Page not found error shown while installing wordpress on IIS server
- How do I install more than one WordPress blog on EC2?
- How to customize WordPress Plugin installation?
- Installing wordpress on Parallels plesk 9.5.3
- Multi site clarification
- How can I completely disable a WordPress installation?
- How to create wordpress install template/image?
- Why does my localhost/wordpress not have a Link to Login Page
- WordPress composer issues
- Install WordPress with custom directory layout without breakting media upload
- What happen after new plugin get installed in term of permissions?
- WordPress in subfolder dont work
- Other than WP-CLI, is there a way to install WordPress via the command-line?
- WordPress database error on (fresh) reinstall
- wp-cli fails on installing to subdomain
- How to edit an existing wordpress.org site
- Install with docker – can’t access port
- Installing WordPress in a subdirectory
- WP Installer Redirects to /wp-admin/core/install.php
- how to return the wordpress path to the new site