php problem

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
User avatar
davehappen
 
 
Posts: 239
Joined: Mon Apr 06, 2020 5:20 am

php problem

Post by davehappen »

hi all, i've tried to include a php page counter on a web site, i've changed the page to .php but when i publish the site again i get the 404 error message.
i publish all the files, what am i doing wrong?????
User avatar
crispy68
 
 
Posts: 3057
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: php problem

Post by crispy68 »

a 404 error means the page you are trying to access does not exist on the server. Are you sure you are publishing to the correct folder? Do you have a link to your site?
User avatar
davehappen
 
 
Posts: 239
Joined: Mon Apr 06, 2020 5:20 am

Re: php problem

Post by davehappen »

ive changed the page back to html now but im unsure how i can be publishing it to the wrong folder as im using the apps publisher app.
User avatar
crispy68
 
 
Posts: 3057
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: php problem

Post by crispy68 »

Where WB publishes is based on the info you provide it. Are you sure the info entered is the correct place on your server? Do you have a link to the page so we can see?
User avatar
davehappen
 
 
Posts: 239
Joined: Mon Apr 06, 2020 5:20 am

Re: php problem

Post by davehappen »

hi crispy, heres the web, i have a counter on there from a third party but would like to keep all in house as it where.

deckcleen.co.uk
User avatar
davehappen
 
 
Posts: 239
Joined: Mon Apr 06, 2020 5:20 am

Re: php problem

Post by davehappen »

hi all again, i have published a site with a form on one page with a .php extension (success and error page also .php) the site works but for the form page. what am i doing wrong??????
User avatar
davehappen
 
 
Posts: 239
Joined: Mon Apr 06, 2020 5:20 am

Re: php problem

Post by davehappen »

sorry the site is;
rctriders.co.uk
and the form page is only accesable for the home (index) page.
User avatar
Pablo
 
Posts: 23450
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: php problem

Post by Pablo »

Where on the website is the form?
And what exactly do I need to do to see the error?
User avatar
davehappen
 
 
Posts: 239
Joined: Mon Apr 06, 2020 5:20 am

Re: php problem

Post by davehappen »

the entry point to the form is the drop down menu rct riders shop shop enrolement
User avatar
Pablo
 
Posts: 23450
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: php problem

Post by Pablo »

Either the file is not on the server or there is a mistake in the settings.
To be able to help you, I need a demo project file so I can see all your settings.

Please see this related FAQ:
http://www.wysiwygwebbuilder.com/forum/ ... 10&t=82134
User avatar
davehappen
 
 
Posts: 239
Joined: Mon Apr 06, 2020 5:20 am

Re: php problem

Post by davehappen »

how do i give you access to the files
User avatar
Pablo
 
Posts: 23450
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: php problem

Post by Pablo »

User avatar
davehappen
 
 
Posts: 239
Joined: Mon Apr 06, 2020 5:20 am

Re: php problem

Post by davehappen »

User avatar
Pablo
 
Posts: 23450
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: php problem

Post by Pablo »

It looks like you have enabled 'MYSQL'?
Did you create the database table?
Are you sure all MySQL settings are correct?

Tip: if something does not work then first try to make a basic form work (without advanced options).
User avatar
davehappen
 
 
Posts: 239
Joined: Mon Apr 06, 2020 5:20 am

Re: php problem

Post by davehappen »

as youve gathered im new to all this and am struggling to take it all in, i thought if you did a form you needed a db behind it????
im unsure what you mean by advanced settings
WWBman
 
 
Posts: 913
Joined: Fri Jan 08, 2010 6:10 pm

Re: php problem

Post by WWBman »

davehappen wrote: Fri May 22, 2020 5:32 am hi all again, i have published a site with a form on one page with a .php extension (success and error page also .php) the site works but for the form page. what am i doing wrong??????
The success and error page should be .html not .php
User avatar
davehappen
 
 
Posts: 239
Joined: Mon Apr 06, 2020 5:20 am

Re: php problem

Post by davehappen »

Is it working for you??.
WWBman
 
 
Posts: 913
Joined: Fri Jan 08, 2010 6:10 pm

Re: php problem

Post by WWBman »

davehappen wrote: Fri May 22, 2020 10:08 am Is it working for you??.
Not sure what you are referring to?
User avatar
davehappen
 
 
Posts: 239
Joined: Mon Apr 06, 2020 5:20 am

Re: php problem

Post by davehappen »

The form page, if you look on the web site menu rct shopping, enrolment.
WWBman
 
 
Posts: 913
Joined: Fri Jan 08, 2010 6:10 pm

Re: php problem

Post by WWBman »

I get "404 - File or directory not found."
Did you publish all files?
User avatar
davehappen
 
 
Posts: 239
Joined: Mon Apr 06, 2020 5:20 am

Re: php problem

Post by davehappen »

Yes published the whole site
User avatar
Pablo
 
Posts: 23450
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: php problem

Post by Pablo »

as youve gathered im new to all this and am struggling to take it all in, i thought if you did a form you needed a db behind it????
Please uncheck MYSQL. Start with a basic form (email only).
User avatar
davehappen
 
 
Posts: 239
Joined: Mon Apr 06, 2020 5:20 am

Re: php problem

Post by davehappen »

The club I’m with would like a dB, it works in xampp, data base created I just need to get the pages showing.
User avatar
Pablo
 
Posts: 23450
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: php problem

Post by Pablo »

The reason why it does not work is because there is a configure problem.
To find out what is worn, I strongly recommend to do one thing at a time.
- First make the basic form work,
- once that works, move to the next step to enable the database
if you try to do too much at the same time then it's difficult to find out where the exact problem is.
User avatar
davehappen
 
 
Posts: 239
Joined: Mon Apr 06, 2020 5:20 am

Re: php problem

Post by davehappen »

The form works pablo, I have a table with data in it that I’ve inputted, the page is set .php but I get 404 error message, so I think the problem is not the dB. If you can remote assist I’ve no objections.
User avatar
Pablo
 
Posts: 23450
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: php problem

Post by Pablo »

How do you know that the form works, if the page does not show?

If the server does not show the page then this usually means that there is an error in the script.
I think there is a problem in the settings, most likely in MySQL.

Please enable reporting on the server so you can see where the exact error is.
User avatar
davehappen
 
 
Posts: 239
Joined: Mon Apr 06, 2020 5:20 am

Re: php problem

Post by davehappen »

It works on xampp, through localhost, I’ll screen shot you what I have
User avatar
davehappen
 
 
Posts: 239
Joined: Mon Apr 06, 2020 5:20 am

Re: php problem

Post by davehappen »

Image
User avatar
Pablo
 
Posts: 23450
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: php problem

Post by Pablo »

Does the form work online without MySQL?
User avatar
davehappen
 
 
Posts: 239
Joined: Mon Apr 06, 2020 5:20 am

Re: php problem

Post by davehappen »

Not sure what you mean??
User avatar
Pablo
 
Posts: 23450
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: php problem

Post by Pablo »

I am asking you to disable MYSQL in the properties of the form and test if the page loads in that case.

or else enable error reporting on the server, so it displays a useful message instead of a generic error
User avatar
davehappen
 
 
Posts: 239
Joined: Mon Apr 06, 2020 5:20 am

Re: php problem

Post by davehappen »

I take it, i uncheck the MySQL on the form, I’ve no idea how to enable error reporting,
User avatar
davehappen
 
 
Posts: 239
Joined: Mon Apr 06, 2020 5:20 am

Re: php problem

Post by davehappen »

Turned off MySQL, still get 404
User avatar
Pablo
 
Posts: 23450
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: php problem

Post by Pablo »

If you do not know how to enable error reporting on the server then please contact your webhost for assistance.

Note: if the form work locally, the it an only be a configuration issue.
But to be able to help you I need to know what the error.
User avatar
davehappen
 
 
Posts: 239
Joined: Mon Apr 06, 2020 5:20 am

Re: php problem

Post by davehappen »

Ok, thanks, I’ll speak to the web host on Monday and set that up, thanks for your assistance. Maybe I’m trying to run before I walk, but if there was a bridge to jump off I’d always be the first. Thank again.
User avatar
davehappen
 
 
Posts: 239
Joined: Mon Apr 06, 2020 5:20 am

Re: php problem

Post by davehappen »

hi pablo, it seems that my web host does not turn on php hosting automatically, it is now on and i can see the form, im unsure as to configure the form, i supose all details will be the same apart from the server, would that be domain name or ftp name or do ineeded to contact my hosting to find that out. also i have a script on a note pad page for error reporting but unsure where to put it for upload. :?: :?: :?:
User avatar
Pablo
 
Posts: 23450
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: php problem

Post by Pablo »

The settings of the advanced form configuration are different for each server. Only you host can tell you the correct values.
Post Reply