Page 1 of 1

Website Looks fine when previewing, but not when live.

Posted: Fri Jun 26, 2020 4:38 pm
by WYSI RICH
Hi Folks,

Just finished my website, and everything looks good when I preview, but when I upload and make the site live, there is visible code at the top of every page (except for the 'contact us' page)

The website is: www.vintagevolksweddings.co.uk

I'll leave the site live for as long as possible, before changing it back to the old one...

Thanks in advance for any help!

Rich

Re: Website Looks fine when previewing, but not when live.

Posted: Fri Jun 26, 2020 4:42 pm
by WYSI RICH
Oh dear - Now I'm getting a message saying "Your connection isn't secure. The owner of the website has configured their website incorrectly.

Goodness knows what I'm doing wrong now!

Re: Website Looks fine when previewing, but not when live.

Posted: Fri Jun 26, 2020 4:43 pm
by crispy68
Typically it means 1 of 2 things:

1. You have a form on your page. In that case, the page extension should be set to .php rather than .html
2. You have manually added some code for something and there is an error in the code breaking the page which shows up.

Re: Website Looks fine when previewing, but not when live.

Posted: Fri Jun 26, 2020 4:49 pm
by WYSI RICH
HI crispy68,

The contact form is set to .php

I wouldn't dare add any code anywhere!

Not sure where I'm going wrong...

Re: Website Looks fine when previewing, but not when live.

Posted: Fri Jun 26, 2020 5:04 pm
by crispy68
Not the form but is the page extension set to .php? It looks like they are set to .html. You can change this in the page properties.

On the 'George' page, the url in the address bar is this:

http://www.vintagevolksweddings.co.uk/george.html

and it should be

http://www.vintagevolksweddings.co.uk/george.php

by the way, I dig the site and concept. :)

Re: Website Looks fine when previewing, but not when live.

Posted: Fri Jun 26, 2020 8:03 pm
by WYSI RICH
Ahhh, so all the pages have to be set to .php?!

I've only set the contact/form page to this.

I'll change all the other pages to .php and see if that works.
Thanks for this!

Also, thank you for the feedback on the site! :D
As you can imagine, the wedding industry has been hit hard with covid19, so I've kept myself busy trying to rebuild a RWD version

Re: Website Looks fine when previewing, but not when live.

Posted: Sat Jun 27, 2020 5:27 pm
by WYSI RICH
Update:

I changed the other pages to .php but they still have the strange code at the top.

I've reverted back to the old website for now.

I'll try unpicking some bits on each page and see how I get on...

Re: Website Looks fine when previewing, but not when live.

Posted: Sat Jun 27, 2020 5:30 pm
by Pablo
Usually this indicates that the server does not support PHP or there is a syntax error somewhere on the page.

Re: Website Looks fine when previewing, but not when live.

Posted: Sat Jun 27, 2020 8:37 pm
by WYSI RICH
Pablo wrote: Sat Jun 27, 2020 5:30 pm Usually this indicates that the server does not support PHP or there is a syntax error somewhere on the page.
Thank Pablo,

The previous website worked with PHP, so I know that's not the problem.

Might be a syntax error then... although I have no clue what that means :lol:

Re: Website Looks fine when previewing, but not when live.

Posted: Sat Jun 27, 2020 9:01 pm
by Pablo
The software has thousands of options and millions of possible combinations so to be able to help you, I need to know more details about what you have done.

Related FAQ:
http://www.wysiwygwebbuilder.com/forum/ ... 10&t=82134

Re: Website Looks fine when previewing, but not when live.

Posted: Sun Jun 28, 2020 12:03 am
by WYSI RICH
Hi Pablo,

Here is a link to the .wbs file.
(Hope I've done this correctly.)

https://1drv.ms/u/s!AtITHoM8v8pmgYUsqny7vmCOpTqd9w

The problem I have is visible code at the top of every page except for the 'contact' page
Website is here: vintagevolksweddings.co.uk

Thanks,

Rich

Re: Website Looks fine when previewing, but not when live.

Posted: Sun Jun 28, 2020 12:17 am
by WYSI RICH
Update:

On a PC/Laptop, the site appears okay at first, but clicking on any page (apart from contact) makes the visible code appear at the top of the page (just under the slim header strip.

On a mobile device, there is just a large black area under the header strip.

Thanks again,

Rich

Re: Website Looks fine when previewing, but not when live.

Posted: Sun Jun 28, 2020 2:19 am
by crispy68
I downloaded your project. None of your pages have the page extension set to .php. I know you mentioned you changed it and it didnt help; however, based on my testing that solved the issue.

Here is a link to your home page with simply changing the page extension to .php.

https://www.wizbangwebdesign.com/demo/vw/

As you can see there is no code at the top of the page. If published as .html the code will appear due to the form.

Also, there are many errors (28 alone on the index page), an overuse of grids (you have some in default and then hidden in breakpoints and vice versa...not sure why) and many of your images are not named correctly (meaning your images contain spaces or odd characters and should not). Please make sure to address all of these issues as these will cause other problems later.

Also, your default view is 970px but you have a 850px breakpoint. Why? That is only 120px difference and doesnt make a lot of sense. Cleaning a lot of this up will help make the overall code of the site better.

Re: Website Looks fine when previewing, but not when live.

Posted: Sun Jun 28, 2020 3:40 am
by BaconFries
Although I have hung up my keyboard and mouse for now after reading this I decided to answer. The code you are seeing belongs to a form and that is the one you have used on the contact page. I believe you may have simply cloned / copied and pasted this page for all pages or used a Master or embedded page to do so.

My thinking behind this is because on each page you have a Enquire now / Lets Talk! section that links to the contact page and it is present on each page showing the code. I would check this and all the other issues crispy has mentioned and hopefully this will fix this for you.

.

Re: Website Looks fine when previewing, but not when live.

Posted: Wed Jul 01, 2020 9:46 am
by WYSI RICH
Hi crispy68,

You were right! I changed all the pages to .php and this time it worked!

I added a 970 break point as I couldn't get one of the images to set right on a page. An the extra break point seemed to solve it.
I've since changed the image, and got ride of the 970 break point.

Working my way through the errors now, by changing the image names, and also the hidden grids. That'll keep me busy for a while!

Thanks so much for your help with this. You've been brilliant!

:-)

Re: Website Looks fine when previewing, but not when live.

Posted: Wed Jul 01, 2020 9:50 am
by WYSI RICH
Hi Bacon Fries,

Yes, you're right - I cloned the index page for every page, and added/deleted parts as I went along.

I feel kind of honored that you commented on this post, despite hanging your mouse up for a bit :-D

Thanks again!

Re: Website Looks fine when previewing, but not when live.

Posted: Sun Nov 22, 2020 2:33 pm
by Rish Amod
Hi all
I've been reading the replies to this post as i have a similar problem.
The website is www.inga-training.com
the preview is fine but the live is very distorted with overlapping texts.
After i created it I set each page to 800x600
I centred each page to vertical and horizontal.
Changes I made get published but the distortion is evident.
How can I fix it?
Any help will be appreciated. I'm happy to provide extra information if you need.
Thanks in advance.

Re: Website Looks fine when previewing, but not when live.

Posted: Sun Nov 22, 2020 3:35 pm
by alan_sh
Rish Amod wrote: Sun Nov 22, 2020 2:33 pm Hi all
I've been reading the replies to this post as i have a similar problem.
The website is www.inga-training.com
the preview is fine but the live is very distorted with overlapping texts.
After i created it I set each page to 800x600
I centred each page to vertical and horizontal.
Changes I made get published but the distortion is evident.
How can I fix it?
Any help will be appreciated. I'm happy to provide extra information if you need.
Thanks in advance.
There should be no difference assuming you published all files. Did you clear the cache of your browser? Did you try different browsers?

Can you create a very simple version with just one page, test that out in preview and publish. If still different, can you put the .WBS file (and any associated files) somewhere we can get at so we can see what you've done?

Alan

Re: Website Looks fine when previewing, but not when live.

Posted: Tue Nov 24, 2020 4:49 pm
by Rish Amod
Hi
Thank you for the reply.
I changed the page size. Resized all my data and Cleared the cache of the browser. then all worked perfectly.