Magento 2 homepage issue | CSS and Layout differ from any other pages - css

I have a really weird problem with my magento 2.1.8 website. Suddenly, the homepage started to look a look different from any other pages on my site.
The home page:
Any other page on my site:
As you can see the homepage loads a completely a different class to other pages on my website... What could cause this problem? Anyone came across this before?
UPDATE:
When I add session id to the homepage url /?SID=5d1ia2d0j92bn95qbc9g5jc7l3 it displays the site correctly...
UPDATE 2:
When I go to the browser and go to my website by typing domain.co.uk it redirects me and assigns a session ID to it. The website is then being displayed properly. However, when I type in www.domain.co.uk, it doesn't assign the session ID and the homepage look totally different.
UPDATE 3:
When I navigate to my website using http://domain.co.uk it redirects me to https://www.domain.co.uk/?SID=1m9tt10hmga4slep7sac8ur8v2 and everything is working fine. When I add https or add www to the URL it redirects me to https://www.domain.co.uk/ without a session ID where CSS is completely different to what it should be.

After dreadful investigation...
I have a server side scanner running every weekend. The scanner was sending alot of post requests and managed to send a request to change a theme in "panel tool".
It didn't have any effect on the website until Varnish cached this request and started displaying this cached version to customers.
After purging Varnish cache and disallowing the server side scanner of accessing "panel tool" the site went back to normal.

Related

WordPress Site - Site not sending any data on user login and checkout

I'm just wondering if anyone might of been had the same experience as me before? I have just migrated a WordPress site (running on an older version of WordPress) to a new dedicated server.
My website loads up perfectly fine, however, when my users are logging in or trying to access the WooCommerce Checkout page, there browsers are returning the "Site did not send any data".
The strangest thing is, some people can log-in, others can't. I've advised my users to try deleting there browser cache and I've setup a tempoary log-in link (Incase the old log-in link my users was seeing was being cached from when my site operated on my previous server)
I've disabled all caching plugins, but in the Network tab, I'm still seeing a few elements being cached, I'm not too sure if this could be WP CLI cache which is perhaps operating in the background?
Ultimately, I'm just trying to get my head around how to solve th "Website did not send any data" error - It's been around 4 days since the server migration completed and previously, users had no trouble at all logging in and navigating the website.
Here's what I've tried so far:
Reset the htaccess file
Disabled caching plugins (Third-party plugins)
Installed Really Simple SSL to ensure all my website paths are being redirected to HTTPS
Changed my PHP handler to SuExec
Disabled server-side cache
Reset permalinks (Changed my permalink setting from Post Name to Plain, and vice versa)
But quite a few of my users are still reporting the same error, whilst other users can access and navigate my website perfectly fine.
Has anyone experienced a similar issue before?
Thank you!

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.

Wordpress changed http to https but still not secure

I have updated every url to https in database and on cdns and image links everything but still the website is not secure. And when i keep clicking on the menu link of an page (at least 2 times ) then it becomes secure.. and only my homepage is not secure other pages are secure..
Please help thnx

wordpress Front page still showing up an old one

I changed the front page design and content, but the website is still showing the old one. Using Ctrl+F5 only gets me the new page. And it happens every time I enter the site. I tried other computers too and the same, an old version. It happens on other pages too.
The site:
Hi I think some server side cache are enabled for your site. While I test your url with caching checker then it says server level caches are enabled. please contact your server admin
There are two common causes for this issue. The first one is your browser cache. Sometimes your browser will show you a cached copy of your website instead of showing the new one. To resolve this issue, you need to simply hit CTRL + F5 (or Cmd + R in Mac) buttons on your keyboard to reload the page.
The second and most likely cause of this issue is poorly configured WordPress caching plugin. If you are using a cache plugin, then check it's settings and most of the plugin provide an option to exclude home page from caching. Please activate it.
more details can be available here
http://www.wpbeginner.com/wp-tutorials/how-to-fix-wordpress-website-not-updating-right-away/

Banner on Wordpress site has stopped working

I've taken over managing a Wordpress site with a custom theme based off Underscores.me. I haven't had too many problems with it but recently I added a page (something I've done before with no problem) and later I noticed the banner/slider went black. I did not change the code in the editor and even went back and checked it with a copy of the code I made but didn't see any changes. I'm not sure if this is a theme/plugin issue but I haven't added any plugins.
The site is integratedneurologyservices.com
integratedneurologyservices.com looks like it was just recently moved onto an https:// domain. There are still resources called on the site that have an http:// protocol, one of which is jQuery, in the footer. Most web browsers block insecure scripts being called on a secure domain.
If you change that jQuery http:// protocol to https://, the banner will work.

Resources