WPML site reload to a different language at random - wordpress

We just had our Website revamped, and we used WordPress with the Multilingual Plugin to handle translations. Originally, we built the site on a different, staging, domain. Then we added translation, then moved the site on the main domain. Everything seems to go well, until I started to notice that, sometimes, randomly, when someone access a page, it will load and then the entire page will reload into a different language.
Anyone worked with WPML may know how I can diagnose this issue?
Thank you.

Related

Website is showing another website on non-existent website page

This is a peculiar one.
I work for an agency, and we develop WordPress and JAM Stack sites for our clients.
I have been contacted by the IT team for one of the clients (an NGO), and they flagged something that I have not seen before.
NOTE: I am going to be using example.org as the website, to protect the identity of the client.
Basically, we developed a WordPress site for them, which works great and all, but as it turn outs there is a page on the website which points to a totally different website
The example page is as follows
example.org/news/points-to-different-website/
The news page doesn't exist in anywhere on WordPress system, and neither does it exist as a custom post type.
And another thing, I noticed is when I removed the / at the end of the URL, it shows the custom 404 page developed for the website
example.org/news/points-to-different-website
But as soon as you add the /, it shows a totally different website.
I have checked all the Apache configuration files related to the site, and it is just the normal setup for any WordPress site.
So, I am wondering what could be causing this, and how can one prevent it?
That's a strange issue. Does example.org/news/points-to-different-website/ actually redirect to another full URL, i.e. differentwebsite.com, or is the different site actually at example.org/news/points-to-different-website/?
Try
emptying the trash for both pages and posts, as there could be a conflicting slug that is causing a redirect.
Reset permalinks.
Using PHPMyAdmin, search the database for the URL points-to-different-website and see if there is malware or some kind of a redirect, an iFrame, etc.
This can sometimes happen if the server hostname is not set up correctly.
What can happen is website on the server will show in place of a non-existent site or page from another website on the same server.
If you are using a reseller hosting/shared hosting, then the site could be from another account on the server, the site could also be from another server, for example:
There are 2 servers with the hostnames serverone.myserver.com and servertwo.myserver.com... A site on serverone might show in place of a site or page on servertwo.

Why is the www version of website not working properly?

I'm facing a problem with the following website: https://www.rhythmandstrums.ie/
When I open the "www" version of it: https://www.rhythmandstrums.ie/ I get a bugged website, failing to open stylesheets and possibly other file sources, whereas if I open the website without the "www", everything works as expected: https://rhythmandstrums.ie/
Some considerations:
This website is hosted in a Wordpress Multisite, so it shares the same configuration files as other websites, none of the other websites have this issue. So I was wondering if this could be a problem with redirection, although, again, none of the other websites have this problem and they share the same config files (including server block settings and such, it is in nginx).
I have checked the DNS values and nameservers and everything looks fine (I took base from all the other websites that were set up in the same way, I can post a screenshot if it might be of help).
This error also seems to happen in the Wordpress backend, with the admin dashboard not being able to load parts of plugins, it seems like it is looking where it doesn't exist.
I have replaced instances of the www version of the url in the database, as I do with other websites as well, but that didn't seem to fix the issue.
I have cleared cache a few times (both in the cache plugin and manually in the nginx server - manually deleting the contents of the cache folder), and since this has been going for a long time, I don't know if this is cache related, but any suggestion is highly appreciated. Again, all the configs, included the cache plugin settings are the same for all the other websites in the network, which none are having this issue.
If I inspect the console when I'm accessing both versions of the website, www and non-www it seems like it's trying to pull information from different locations, but I can't figure out why it's doing that.
Guys, I hope this was not confusing, but let me know if you you would like to see screenshots or other info that might be relevant. Thanks so much in advance, I really appreciate it.

Some links broken after Update of Wordpress Multidomain Site

I have build a Wordpress site which is running on multiple (sub-)domains using the Plugin: WordPress MU Domain Mapping.
I have been out of WP-Development but had to update those sites. On the main site everything went great. After a few seconds, the site was updated.
The 3 mapped sites however are having a few problems.
After digging into the code i figured that no CSS or JS is being loaded anymore (404 Not Found)?
I can't seem to find the problem that causes this. What has changed so drastic that all those links are being thrown off?
Anyone able to point me in the right direction?
I'm happy to provide functions.php, header.php or anything else that could help to locate the problem.
In the end it was WordPress MU Domain Mapping.
Although at some points it was deactivated it still set the primary domains and caused funny redirects.
Got all pages running in directories now and just need to solve the mapping to sub-domains without the plugin (which should be a core-feature) since 4.5

WP Homepage disappeared after host migration

I recently moved a wordpress website from one host to another and my homepage doesn't load. Its a standard homepage that shows my latest posts.
I tried disabling plugins and changing themes, but it still doesn't load up. Other pages on the website load up properly via direct link, but not the homepage.
Has anyone ever faced this? Any help would be appreciated.
Thanks
How are you trying to access the homepage?
Please make sure you have set the homepage as your front page under General -> Reading settings page.
See this image
Start troubleshooting from the very first thing go to setting and check whether the front static page is set with desired home page or not, secondly go to permalinks set it to default then reset to desired structure, third go to general setting double check the website new URL mention there is exactly same. After checking all these elements problem still existing so I must recommend you to re import the complete website all over again to avoid future hassles. There is nothing big rocket science behind migration you can use All-in-One WP Migration or follow the 3 steps WordPress migration guide. Sometime its happens when database or the core files are not import properly WordPress usually back fire many errors and exceptions.

Default Website Page error - While installing wordpress multisites on a subdomain

I have installed wordpress multisites in my directory, everything is working perfectly except the fact that the main page of the sister sites shows "Default Website Page" error and redirects me to "http://geek.thelazy.info/cgi-sys/defaultwebpage.cgi".
The error occurs only when I open geek.thelazy.info and at specific places (not on places far from here), and only when I open the main page. At all other pages say like geek.thelazy.info/devashish site works regardless of anything.
Any clues on how to solve this problem?
I think the solution is to wait for a day or two. This helped me. But, I am not sure what if there is any other workaround at the server side as well because it is not really trivial to put a live site down for 1-2 days.

Resources