My PHP problem ==> index.html or index.php?

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
mccs
 
 
Posts: 5
Joined: Sun Sep 20, 2020 1:15 pm

My PHP problem ==> index.html or index.php?

Post by mccs » Fri Nov 27, 2020 2:55 pm

The first page of the website looks like Club1.jpg. But it should look like Club2.jpg.

If you activate any other page from the menu and return to this Home page, the page looks like Club2.jpg.

In Wysiwyg Web Builder (V15) the page looks like in picture Club2.jpg. Apparently everything is created that way. However, a test run in Wysiwig does not update the extension counter and is therefore not very meaningful.

As already mentioned, extensions are built into this start page, namely a counter.

A Counter needs PHP to update the counter. Therefore I called the start page index.php and installed the extension there. Since the counter is now counting, the server apparently supports PHP.

I already tried index.html. Then the counter doesn't work and spits ugly error messages.

Does anyone have any idea what needs to be changed to be able to immediately see the page as in Club2.jpg?

Or: is there a way to run the extension counter on index.html?

Last idea: should you move the counter to another page e.g. called xxx.php?

Many thanks for your help!

Link to Club1.jpg & Club2.jpg: https://www.imagenetz.de/filesgroup/903 ... 0365d.html (15 Days)

User avatar
crispy68
 
 
Posts: 1271
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: My PHP problem ==> index.html or index.php?

Post by crispy68 » Fri Nov 27, 2020 3:05 pm

Why do you have both an index.html and an index.php uploaded? There should only be 1 index page. So in this case you need to remove the index.html page from the server.
If you activate any other page from the menu and return to this Home page, the page looks like Club2.jpg.
This is because all your links on the other pages are referencing the index.php in the links.

mccs
 
 
Posts: 5
Joined: Sun Sep 20, 2020 1:15 pm

Re: My PHP problem ==> index.html or index.php?

Post by mccs » Fri Nov 27, 2020 8:20 pm

Sorry. I expressed myself unclearly.
Of course I only have one index.php active because the counter then continues to count. An index.html is not included in the project.

But: I tried index.html as a test. Then the counter does not count and shows error messages. But otherwise the page is OK.

I read somewhere: if a PHP counter should work, the trick is index.php. That I did.
And yes: internally, all pages are linked to index.php.

If I use google to search for the page and then use the link found, the page appears as in Club1.jpg, but should look like Club2.jpg.

User avatar
crispy68
 
 
Posts: 1271
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: My PHP problem ==> index.html or index.php?

Post by crispy68 » Fri Nov 27, 2020 8:55 pm

Yes, if the counter needs .php to work properly then your page should end in .php.
So in this case you need to remove the index.html page from the server.
As I stated before, when I visit: http://www.fotoclub-singen.de/ it is showing the index.html page. You have both index.php and index.html on your server. You should not have 2 index pages. You need to remove the index.html from the server. If both are present, then the .html file will load first which is why you are seeing it.

User avatar
BaconFries
 
 
Posts: 5140
Joined: Thu Aug 16, 2007 7:32 pm

Re: My PHP problem ==> index.html or index.php?

Post by BaconFries » Fri Nov 27, 2020 9:05 pm

The page name should be as follows http://www.fotoclub-singen.de/index.php and not http://www.fotoclubsingen.de/index.html. Please remove the .html page from the server. Also what version of the program are you using? also note that (free) extensions are not supported and are provided "ASIS"

MGD4me
 
 
Posts: 190
Joined: Tue May 02, 2017 11:56 pm
Location: BC, Canada

Re: My PHP problem ==> index.html or index.php?

Post by MGD4me » Fri Nov 27, 2020 9:10 pm

If you have deleted index.html from your project, that does not automatically delete it from the web server. You need to manually delete that file yourself.

I just tried using the URL http://www.fotoclubsingen.de/index.html and this page loads, so this indicates it has not been deleted from your server.

mccs
 
 
Posts: 5
Joined: Sun Sep 20, 2020 1:15 pm

Re: My PHP problem ==> index.html or index.php?

Post by mccs » Sat Nov 28, 2020 11:16 am

I deleted the forgotten :shock: index.html on the server - everything works! You all are the greatest - and I'm still learning how to do it with the Internet.
Thank you!

Post Reply