Page 1 of 1
php problem
Posted: Fri May 15, 2020 1:23 am
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?????
Re: php problem
Posted: Fri May 15, 2020 1:39 am
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?
Re: php problem
Posted: Fri May 15, 2020 1:59 am
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.
Re: php problem
Posted: Fri May 15, 2020 2:12 am
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?
Re: php problem
Posted: Fri May 15, 2020 2:35 am
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
Re: php problem
Posted: Fri May 22, 2020 5:32 am
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??????
Re: php problem
Posted: Fri May 22, 2020 5:33 am
by davehappen
sorry the site is;
rctriders.co.uk
and the form page is only accesable for the home (index) page.
Re: php problem
Posted: Fri May 22, 2020 6:15 am
by Pablo
Where on the website is the form?
And what exactly do I need to do to see the error?
Re: php problem
Posted: Fri May 22, 2020 7:11 am
by davehappen
the entry point to the form is the drop down menu rct riders shop shop enrolement
Re: php problem
Posted: Fri May 22, 2020 7:16 am
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
Re: php problem
Posted: Fri May 22, 2020 7:22 am
by davehappen
how do i give you access to the files
Re: php problem
Posted: Fri May 22, 2020 7:38 am
by Pablo
Re: php problem
Posted: Fri May 22, 2020 8:02 am
by davehappen
Re: php problem
Posted: Fri May 22, 2020 8:56 am
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).
Re: php problem
Posted: Fri May 22, 2020 9:57 am
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
Re: php problem
Posted: Fri May 22, 2020 10:06 am
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
Re: php problem
Posted: Fri May 22, 2020 10:08 am
by davehappen
Is it working for you??.
Re: php problem
Posted: Fri May 22, 2020 10:29 am
by WWBman
davehappen wrote: Fri May 22, 2020 10:08 am
Is it working for you??.
Not sure what you are referring to?
Re: php problem
Posted: Fri May 22, 2020 10:44 am
by davehappen
The form page, if you look on the web site menu rct shopping, enrolment.
Re: php problem
Posted: Fri May 22, 2020 10:53 am
by WWBman
I get "404 - File or directory not found."
Did you publish all files?
Re: php problem
Posted: Fri May 22, 2020 11:34 am
by davehappen
Yes published the whole site
Re: php problem
Posted: Fri May 22, 2020 11:50 am
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).
Re: php problem
Posted: Fri May 22, 2020 11:55 am
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.
Re: php problem
Posted: Fri May 22, 2020 12:46 pm
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.
Re: php problem
Posted: Fri May 22, 2020 12:52 pm
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.
Re: php problem
Posted: Fri May 22, 2020 1:01 pm
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.
Re: php problem
Posted: Fri May 22, 2020 1:03 pm
by davehappen
It works on xampp, through localhost, I’ll screen shot you what I have
Re: php problem
Posted: Fri May 22, 2020 1:09 pm
by davehappen
Re: php problem
Posted: Fri May 22, 2020 1:32 pm
by Pablo
Does the form work online without MySQL?
Re: php problem
Posted: Fri May 22, 2020 1:39 pm
by davehappen
Not sure what you mean??
Re: php problem
Posted: Fri May 22, 2020 1:46 pm
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
Re: php problem
Posted: Fri May 22, 2020 1:49 pm
by davehappen
I take it, i uncheck the MySQL on the form, I’ve no idea how to enable error reporting,
Re: php problem
Posted: Fri May 22, 2020 1:52 pm
by davehappen
Turned off MySQL, still get 404
Re: php problem
Posted: Fri May 22, 2020 2:03 pm
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.
Re: php problem
Posted: Fri May 22, 2020 2:06 pm
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.
Re: php problem
Posted: Mon May 25, 2020 12:22 pm
by davehappen
Re: php problem
Posted: Mon May 25, 2020 12:26 pm
by Pablo
The settings of the advanced form configuration are different for each server. Only you host can tell you the correct values.