Updated URL of a PRO site and the theme seems to have the old site address hardcoded into the theme?

Hi guys, I love your theme, and I have been using X and PRO for many years now.

I recently changed the domain of an existing site on an existing host, and I am having issues getting a bunch of the resources usually loaded into the head to load properly, many of them are the supported plugins that come bundled with the theme:

##The console:

##how it looks broken:

I have reached out to my managed host provider (flywheel) and they say that it appears like the old address is hardcoded into the theme and that I should reach out to you guys and see if you guys can give me some insights into what happened. (I know that you guys don’t hardcode my url into anything, but I figured that you would know what could be happening better than me)

###Other Stuff:

  • You can see the breakage live on the website here: https://diegoluce.ro/
  • Old domain is https://diego-lucero.com/
  • used flywheel’s ‘Primary Domain’ feature to change the wpurl and siteurl
  • used velvet blues url updater plugin to change urls in the database from diego-lucero.com to diegoluce.ro
  • I am not using caching of any sort on the site
  • All themes, plugins are up to date
  • Same initial problem as this other forum post.

Hi Diego,

Thanks for reaching out.

I checked and a lot of URLs are still not replaced. Please install better search replace plugin and replace this

diego-lucero.com/wp-content with diegoluce.ro/wp-content

That’s without http or https protocol. Then make sure to clear the cache before testing it again https://getflywheel.com/wordpress-support/how-do-i-clear-my-cache/

Thanks!

Hi there, I have completed this (no updates made because a search with better search replace did not find anything to change) and it is still an issue.

Hi Diego,

May I know the admin login credentials? I like to check it directly and please provide them in the secure note.

Thanks!

here they are:

Hello Diego,

Thanks for updating the thread.

I tired to replace the URL’s but the problem is still there. I checked the website and in dev tools I see following error message Failed to load resource: net::ERR_CERT_COMMON_NAME_INVALID. Please take a look at following resource for some help.

https://premium.wpmudev.org/forums/topic/ssl-certificate-error

If it’s does not help, please share FTP details in secure note to take a further look at the setup.

Thanks

Caching Issue?

Hi @Prasant,

I pitched it back over to my managed host and they said that they fixed a few things, however, they also claim that PRO Theme was/is caching the old URL links and they needed to manually clear that out so it could reset that data.

The full detail in his response, here [emphasis added]:

Hi Diego,

The main problem was due to the switch from one domain to the other domain name and assets still loading over the other domain, with that the theme was also caching the old URL links also so we had to clear this out so it could collect the links from the new URL! and reset the domain name settings within the Flywheel dashboard.

Regards,

Derrick Bailey
Flywheel

Is that how PRO Theme works? Does it cache the URL?

ALSO: PRO Theme is still not loading files from the correct URL

Also, there are still a few resources that are loading from the old URL, and they are in the PRO Builder itself. See here:

Here is the image URL PRO Theme is calling:

Why would the Theme be holding onto the old URL like that?

Hi Diego,

No, the theme does not cache the URL.

I did the Dry Run in Better Search and Replace and it found 1 diego-lucero.com in there, and its the one inside the wp_options table (that table should be the first one to be updated). Please do the Better Search and Replace find diego-lucero.com and replace with diegoluce.ro



Another thing, there is a URL manipulation function on your child theme, if the Better Search and Replace did not work, try removing that custom function or switch to parent Pro theme.

Let us know how it goes,
Cheers!

Hi there, I commented out the URL manipulation and it seems to have allowed for the URLS to change with Better Search Replace. however, I seem to still have the same issue with the icons in PRO Builder not showing up (and possibly other things not linking properly).

Hi Diego,

The commented URL code is for CDN, but your site’s URL are still coming from old on.

Would you mind providing your FTP login credentials as well?

Thanks!

Hi Rad, Flywheel does not provide FTP, as that is maintained completely by Flywheel

Hey @diego,

This is not an issue with our theme. If you visit Appearance > Themes, you’ll get the same error message as when you visit any theme pages Failed to load resource: net::ERR_CERT_COMMON_NAME_INVALID

Please forward that screenshot to your web host and ask them if our theme is causing the issue, “Why are the resources of other WordPress themes and the rest of the plugins affected as well?”. This is clearly is a hosting related issue.

That error is the same all throughout your site including the front-end.

This should be fixed by your web host first. Once the said error is gone and the issue persists only in Pro, please ask your web host to provide us with instructions to access the files in your server and the database.

Thanks.

hello, I think you are seeing a cached version of the site. I am seeing this:

This is the console for the same page:

Hi again Diego,

In that case, your host should clear all caches on their side because even if I view your site with browser cache cleared, I still see it broken with the error. It’s the same in incognito and also other browsers.

I’m sorry but we can do nothing on our end if that issue persists.

Thanks.

Hello there, I have cleared all caches. let me know if that changed anything for you

Hi Diego,

I’m sorry but the old domain is still being served on my end. I even used a different computer connected to a VPN.

Your host might be able to help you solve this issue.

Thanks.

I’m online with my host now. the cache is completely cleared. Maybe try https://diegoluce.ro/?bypass-cache

Hi again Diego,

I’m sorry but still no go.

ok thank you. I will notify them. thank you for your time

You’re welcome, Diego.