Issues with moving the WordPress framework from one domain to another

[ad_1]

Good day,
I stumbled upon issues after i moved WordPress from one domain to another and i assume I'm missing something.

The domain was hosted on domain1.com. It had WooCommerce installed and the page was already built. There were no issues. Everything was up and running without a single exception.

After i moved WordPress i had to readjust the database, so the website can function again. The first thing i did was to install Better Search Replace because many said that it works great. Well, this software did not work at all. I entered the query in the field and of course i entered the query that had to replace the first one i entered. 0 Queries were changed. I tried couple of times and i simply deleted it.

Logically i entered phpMyAdmin, i pulled all the domain1.com and [email protected] into Visual Basic and i changed them to domain2.com and [email protected] with one click. Easy-peasy-lemon-kinda-difficult because now i have the following three issues (and i believe that they have something to do with each other)

Problem one
On my website, there's "shop" on the navigation bar. Upon clicking on the button, the website is forwarded to the old URL. which is domain1.com/shop. It should be forwarded to domain2.com/shop

Problem two
When a confirmation email is being sent (for successful purchase through woocommerce and stripe) the email is failing email authentication. It shows, that SPF and DKIM are failing for a server address being used for sending the email, which should not happen.

Let's say that the server email used is [email protected].
This is happening because the original email address does not exist anymore and apparently the system automatically assigns this system email.

That being said, it's not about authentication, it's about making the system to use [email protected] instead of [email protected]

Problem three:
Under WooCommerce - Settings - Approved download directories, there are two entries. 
One of them cannot be changed. Which is file:///home/servername/web/domain1.com/public_html/wp-content/uploads/woocommerce_uploads/

I changed the other one by simply replacing domain1.com with domain2.com, since domain1.com does not exist anymore. 

I tried to change domain1.com to domain2.com on the entry mentioned above and it says that was successfully changed, but it wasn't. I cleared the cache and refreshed the page. I saw an error saying that i do not have permissions to change that entry. Of course the first thing i did was to change the permissions in FTP. Every single folder and even the files in "Woocommerce_uploads" were checked. They have full permissions. There are two files there. An empty index.html file and a deny for all htaccess.

So this does not need additional tweaking.

What i did was, i entered phpMyAdmin and i started searching for the old domain and email address.
USE Servername_databasename; 
SELECT * FROM wp_options WHERE option_value LIKE '%old_domain_or_old_email_address%'; 

And i changed all the entries until i was left with nothing to change.

At this point i realized that this is an issue, for which, i have to ask for help from people who have more experience than me.

I hope you can help me.
Best regards,
Anthony



 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer