Hello guys,
I have rebuilt my server stack to update and migrate my WordPress install to a new server and and have imported my WordPress data to my new site and have everything set-up, however when I repointed the server to the new URL, the front page totally stopped working.
http://staging.tech-mag.co.uk/
Wordpress 5.6.2
Newsmag 4.9.6
I have followed the instructions on WordPress’ and Bitnami’s site (I’m using their stack) to get my staging site running normally on a new URL here.
https://wordpress.org/support/article/changing-the-site-url/#relocate-method
https://docs.bitnami.com/installer/apps/wordpress/administration/configure-domain/
So after following this I can now access the wordpress admin panel.
So in the admin panel if I switch to the WordPress default theme, my website appears and I can see some content, however swtching back to the Newsmag theme, the site times out and just won’t connect.
I even tried this specific part of the WordPress guide which asks me to add in the update_option values to the theme functions.php file, which I have tried to no avail.
https://wordpress.org/support/article/changing-the-site-url/#edit-functions-php
The problem seems to be with the theme, but I’m not sure how to correct it.
Can you help?
Regards,
Michael
Hi,
So if you change the website url, you must resave the permalinks https://i.imgur.com/CixAXbK.png also please check the links from here https://i.imgur.com/h5jOkNz.png also the posts and pages must have the nu path link.
Hope this will help!
Hi Calin,
This was already done, but no luck.
Is it possible there are hardcoded references to the original IP/URL in the theme files somewhere?
As I say, the default Theme – Twenty Twenty One works, but if I switch to Newsmag, the site just won’t allow a browser to connect.
I have switched to the default theme so you can see it working.
Many thanks,
Michael
Hi,
Please make a test using only Newsmag theme and theme plugins, to make sure that you do not have a plugin conflict.
If the problem persists, make a full backup and contact us at contact@tagdiv.com and provide wp-admin and cPanel access to investigate this problem. Also include the link of this topic in email.
Thank you!
Hi Calin,
Thank you for this. A simple suggestion, but it worked!
It seemed that an out-of-date plugin was the cause of my problems.
I have the theme up and running now and have ported the site over to my main domain again. WordPress and my theme are now fully up-to-date and (almost) working!
I do seem to have a little problem remaining that I can’t figure out in that my main featured image seems to refuse to want to show.
* I have tried changing the featured image on the article.
* I also tried changing the main featured article, but the featured image just shows blank all the time.
* If I open the TAGDIV editor, I can see the image, however not if I browser to the site like a user would.
I’ve also tried opening the site in a few different browsers.
Screenshots here: https://imgur.com/a/WT55jkb
Can you help?
Michael
Hi,
I just checked your website and it looks that the images sources can not be found https://i.imgur.com/IZd00T0.png but if you enter in that post and after that you click on logo the image sources appear https://i.imgur.com/zVPZkbF.png
Most probably this is from some options from autotomize cache or maybe from CDN ( for CDN we recommend to set it like in our guide https://forum.tagdiv.com/cloudflare-cdn/).
Hope this will help!
Hi Calin,
Thanks agian for a quick reply. I managed to solve it!
I’m quite familiar with Cloudflare so thought this might be the answer.
The only thing I had set differently to the suggestions was that I had RocketLoader enabled. I disabled that and Purged the cache, but still getting the same result.
I actually enabled Dev mode within Cloudflare to test this too, as there seeems to have been a lot more options added to CF since your tutorial was written, so wanted to rule it out.
Development Mode
Temporarily bypass our cache allowing you to see changes to your origin server in realtime.
Note: Enabling this feature can significantly increase origin server load. Development mode does not purge the cache so files will need to be purged after development mode expires.
This setting was last changed a few seconds ago
Unfortunately even with Dev mode enabled within CF I still couldn’t get the image to show.
I eventually found the problem though…
Again an out-of-date plug-in is responsible.
https://en-gb.wordpress.org/plugins/bj-lazy-load/
I’ll contact the developer and see if he needs to push a change, but you pointing me in the right direction helped a lot!
Thank you again,
Michael