***SOLVED***Published page different in preview and host directories

Issues related to previewing and publishing your web site.
Post Reply
User avatar
donjohnson24
 
 
Posts: 119
Joined: Thu Sep 27, 2012 9:32 pm
Location: Bridgwater, Somerset, UK
Contact:

***SOLVED***Published page different in preview and host directories

Post by donjohnson24 »

I appreciate that I will probably have to provide more info and files, but I've been at this for several hours and need to go to bed, so leave this query in case I've missed something obvious and someone can help.
I amended a ver 16 page using ver 17 just to add another Layout grid with text in one box, and a picture in the other.
When published they did not appear side by side, but one on top of the other
After trying various things, I've ended with the text becoming attached to the text in the Layout Grid above, and changing to its colour, and the picture still in the middle :
Image

When I do a Preview, the page displays correctly:

Image

And another weird thing is that if I publish to public_html/test2 instead ofpublic_html that file shows OK like pic 2
BUT if I copy the (correct?) html file from public_html/test 2 to public_html, it THEN looks like pic 1 ???
I'm just baffled
User avatar
crispy68
 
 
Posts: 2913
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: Published page different in preview and host directories

Post by crispy68 »

There is no difference between preview and publish. If it looks correct when you preview it but not when you publish it, then it usually means you have not uploaded all the files that were changed which can include .js and .css files. Make sure you are uploading all the files.
User avatar
donjohnson24
 
 
Posts: 119
Joined: Thu Sep 27, 2012 9:32 pm
Location: Bridgwater, Somerset, UK
Contact:

Re: Published page different in preview and host directories

Post by donjohnson24 »

Thanks for the response cripy68, but I did publish ALL - and I've tried copying the css files from the public_html/test2 to public_html to no avail

I can't see any .js files in public_html/test2

I tried to search for something relating to updating .js files globally but could not find suitabe search terms to get a result.
User avatar
crispy68
 
 
Posts: 2913
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: Published page different in preview and host directories

Post by crispy68 »

After you copied the files did you do a browser hard refresh (control F5)? Do you have a link to the pages?
User avatar
donjohnson24
 
 
Posts: 119
Joined: Thu Sep 27, 2012 9:32 pm
Location: Bridgwater, Somerset, UK
Contact:

Re: Published page different in preview and host directories

Post by donjohnson24 »

crispy68 wrote: Sun Nov 07, 2021 1:14 am After you copied the files did you do a browser hard refresh (control F5)? Do you have a link to the pages?
I always do a page refresh after uploading.

Links: http://www.donjohnson24.co.uk/racenite.html and http://www.donjohnson24.co.uk/test2/racenite.html

Well, after entering these links, I tried them on my Surface Pro (uses Firefox) and an Ipad, and they both appeared correctly!!!!

I also tried using Microsoft Edge on my PC and again the display is OK.

So, it has to be something to do with my PC, the monitor I'm using - which is 48 inch TV - and probably Firefox.

I had a similar problem recently - viewtopic.php?f=5&t=93340&p=466186#p466186 - which was solved by a new installation of Firefox .

However, this time it was solved by clearing the cache of 'Cached Web content'

But I still wonder why this occurs when pages normally update fine.

So it seems I have again been too keen to post a problem here :oops:
Last edited by donjohnson24 on Sun Nov 07, 2021 12:17 pm, edited 1 time in total.
User avatar
BaconFries
 
 
Posts: 5653
Joined: Thu Aug 16, 2007 7:32 pm

Re: Published page different in preview and host directories

Post by BaconFries »

So it seems I have again been too keen to post a problem here :oops:
This is what the forum is for to ask for help anyway good to see you have it solved. I will mark it as so.
alan_sh
 
 
Posts: 1756
Joined: Tue Jan 01, 2019 5:50 pm

Re: ***SOLVED***Published page different in preview and host directories

Post by alan_sh »

Firefox does seem to have an issue with updating caches. I seem to have made mine better (most of the time) by doing this:

viewtopic.php?f=26&t=93320

Alan
User avatar
donjohnson24
 
 
Posts: 119
Joined: Thu Sep 27, 2012 9:32 pm
Location: Bridgwater, Somerset, UK
Contact:

Re: ***SOLVED***Published page different in preview and host directories

Post by donjohnson24 »

alan_sh wrote: Sun Nov 07, 2021 12:43 pm Firefox does seem to have an issue with updating caches. I seem to have made mine better (most of the time) by doing this:

viewtopic.php?f=26&t=93320

Alan
Alan, thanks for the tip, and the reassurance that others have had problems with Firefox.
However, I think I shall go back to using Chrome. I possibly think I changed because at the time music files played by default when a page was accessed.
Post Reply