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?
- How to install MinGW 64 on windows 10
- PackagesNotFoundError: The following packages are not available from current channels:
- Android Fastboot devices not returning device
- How can I convert my Java program to an .exe file?
- Changing the wp db prefix after installation?
- Automatically enable custom theme, plugins and default content on installation?
- 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
- How do I install two versions of WordPress on 1 server?
- wp core install database connection error
- Steps to debug on a blank screened wordpress install
- Installed successfully; home page still redirects to install.php
- How to import WP XML file automatically on installation?
- 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
- Programatically Creating Initial WordPress Site
- 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?
- Quickest Way Besides FTP to Upload WordPress Files to a Web Server?
- Moving to directory creates path problems.. how to solve?
- Sharing one WordPress installation between several “sites”?
- How to use if condition to change $table_prefix in wp_config.php
- Can I clone WP to another directory on the same server?
- Should I delete automatically-created files before installing WordPress?
- How to work locally on a copy of my wordpress?
- Change WordPress directory
- No option to update WP in client’s backend
- wp-cli installation
- Page not found error shown while installing wordpress on IIS server
- 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?
- What happen after new plugin get installed in term of permissions?
- WordPress database error on (fresh) reinstall
- wp-cli fails on installing to subdomain
- Installing WordPress in a subdirectory
- WordPress installation from live site to localhost
- PuTTY is glitching out when I try to install wordpress
- Can I install a WordPress site locally from a tar.gz file?
- How can I deploy my InstantWP site to a live website?
- All links in WP blog redirect to main non-WP site
- How to effectively handle the problem of installing WordPress locally for each new project?
- Local Installation: install.php offered to download instead of running
- WordPress manually installed on a remote server
- WordPress is already installed
- Installed WordPress without configuration screen
- WordPress System Requirement for Older Versions?
- On install, automatically create page and set it as front page
- Create a development subfolder for my WordPress website
- What’s the best way to install WordPress?
- Forbidden localhost error and error establishing database
- Run two wordpress on the same domain
- EC2 WordPress install asks for connection info when auto-updating
- WordPress Skeleton installation
- Moving from subdirectory and subdomain -> root
- Creating a sub folder inside a root installation?
- Installing plugins on IIS-hosted site [closed]
- Powering only a subfolder with WordPress on a LAMP stack with an nginx reverse proxy
- WordPress 3.1 Install Error
- Disable creation of default content during installation
- Transferring from “Populate” CMS to WordPress
- Should I use two single WordPress installations because of SEO?
- How to recreate a WordPress site
- wordpress icons and gui not display while installing wordpress http://server_ip /wp-admin/install.php
- How to install multiple wordpress site on localhost
- Install wordpress without affecting clickfunnels
- More than 5 time my Website show this issue
- wp-cli setting home and siteurl to site.tldtld (double TLD)
- My wordpress doesnt show up
- Error during installation
- Accidentally re-installed wordpress
- Reporting Broken Theme event though upload was success
- Fastest way to install a multisite?
- How to install WordPress on root domain and Php script on subdomain?
- 2 domains 1 WP instalation in Cpanel
- Disable redirect to install.php
- db.php, is it a legit file [closed]
- Moving site made easier
- New WP installation due to language issues
- WP installed is asking to install if typed domain.com
- 3 domains, 1 wordpress install, redirecting and changing domains on live site
- Moving from one WP site to a new WP site incrementally
- How does a WordPress installation become ‘alive’?
- WordPress 4.1 update broke theme
- New WP installation on Hostgator domain but not working
- Correct folder & file permisson for WordPress
- Host Php script from codecanyon on wordpress
- Backend working but not front
- Installing wordpress into the same directory as existing static html website