ERROR when submitting contact form -...

User 2147626 Photo


Ambassador
2,958 posts

There is a file that should be on your web site that I cannot find.
Try this...

rhemaguitars.com/YOURFORMNAME/fbapp/php/servertest.php
( I didn't want to make this a link so you'll have to add the http// )

Replace YOURFORMNAME with wherever you put your form.
I thought you uploaded to 'Contact Form' but I couldn't find the file, so, check for it and run it.
If everything on the servertest comes up good, there is a 'click here' at the bottom to check for 'sessions'. Click it and see what it says.

Come back and let us know...
Graphics for the web, email, blogs and more!
-------------------------------------
https://sadduck.com
User 2147626 Photo


Ambassador
2,958 posts

If you still have that SPACE in the filename you should really really get rid ot it! Spaces in filenames do cause problems on the internet, even if it isn't causing this one...
Graphics for the web, email, blogs and more!
-------------------------------------
https://sadduck.com
User 103173 Photo


VP of Software Development
0 posts

The file you need is in the storage folder and it is called fb_error.log.php Any MySQL errors will be written to that file.
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.
User 2586732 Photo


Registered User
17 posts

Thanks for continuing to work with me on this guys! Eric, yes that form is there. Gunsmoke, I got the 404 Not Found error when posting the URL you provided. Scott, I did find the error log you mentioned. I posted the contents of both error logs I found in my final post last night. I was discussing this with my hosting provider and she has an older version of this software where you provided an email only option for this form. Is there a specific reason this option is no longer available in the latest version? An oversight maybe? It sure would solve a lot of issues if it were since I seem to not be the only one who has encountered this issue.
User 103173 Photo


VP of Software Development
0 posts

Bill Hodge wrote:
Thanks for continuing to work with me on this guys! Eric, yes that form is there. Gunsmoke, I got the 404 Not Found error when posting the URL you provided. Scott, I did find the error log you mentioned. I posted the contents of both error logs I found in my final post last night. I was discussing this with my hosting provider and she has an older version of this software where you provided an email only option for this form. Is there a specific reason this option is no longer available in the latest version? An oversight maybe? It sure would solve a lot of issues if it were since I seem to not be the only one who has encountered this issue.

I see it now. My original observation is correct. If you look at the log, it says in a few places "Permission denied". That means the scripts cannot write to the storage folder. The permissions need to be adjusted accordingly to allow for read/write access to that folder and all folders under it.

she has an older version of this software where you provided an email only option for this form. Is there a specific reason this option is no longer available in the latest version? An oversight maybe?

I am not sure I understand what you are asking here. Form Builder has an email only option now. Just turn off MySQL and the information is sent over email.

You should still get rid of those spaces in your file name. Change Rhema%20Contact%20Form to rehema-contact-form instead. That may not have any impact on the issue here, but it is good to do never the less. ;)
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.
User 2586732 Photo


Registered User
17 posts

OK we're getting closer, I think. I did look at permissions last night just like you suggested. All of the associated folders (at least when I look at the ones you mentioned) were already set at the 755 which is what makes this problem so confusing. The error message says one thing, yet the folder permissions show me something else. Regarding the Email only, when I tried to leave the CSV and MySQL boxes both unchecked I got an error message requiring me to select one or the other. That was when I built the first form. I didn't try it when I built the new form since I had gotten the error on the first one. Instead, I selected the CSV option. In the older version these was an additional option to select that was EMAIL Only. Here's a screenshot of what I'm talking about.
Attachments:
User 103173 Photo


VP of Software Development
0 posts

Bill Hodge wrote:
OK we're getting closer, I think. I did look at permissions last night just like you suggested. All of the associated folders (at least when I look at the ones you mentioned) were already set at the 755 which is what makes this problem so confusing. The error message says one thing, yet the folder permissions show me something else. Regarding the Email only, when I tried to leave the CSV and MySQL boxes both unchecked I got an error message requiring me to select one or the other. That was when I built the first form. I didn't try it when I built the new form since I had gotten the error on the first one. Instead, I selected the CSV option. In the older version these was an additional option to select that was EMAIL Only. Here's a screenshot of what I'm talking about.

Click Settings > Email Notices and place your email address in the TO field. That is all have to do. That is almost the exact process as you are showing in the screenshot.

Using MySQL and CSV logging is completely optional unless you try to add a file upload button to your form and then check the box "Store in database". That would require you to use MySQL. Since you have no such button, MySQL is not really needed.

One thing to think about here is since you are logging to MySQL, how do you plan to extract and use the data in the database? If you are not sure as to the answer for that, MySQL probably is not anything you really should use. Simply send the results over email instead or log it to CSV file.
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.
User 2586732 Photo


Registered User
17 posts

Thanks, Scott. I'll try that and report back to you. I really don't want to store SQL or csv on my cPanel. Unless I was doing the initial settings with wrong understanding (which is likely) I thought it was requiring we to select one or the other of the two previously mentioned options. Thank you again for your time on this. I'll let you know shortly how it pans out. Probably just a major DUH on my part. :D
User 2586732 Photo


Registered User
17 posts

Well, I was really confident that your suggestion would work. However, it unfortunately did not eliminate the Error problem that occurs when the form is sent. It does email me the same as it did when I had CSV selected. Even with CSV and MySQL unchecked (and I did re-save under the manual option, removed the old and pasted the new script into my contact page, as well as going through all the FTP site update procedures) yet I still get that confounded error message! :/

Could it be due to the error logs already in the files in cPanel? If so, can those be safely removed?

I've attached an image of the Error that pops up so you can see it. In addition, instead of it redirecting to my Thank You page after the form is sent (this has been consistent), the form remains up with all the data that was entered with the addition of the error message at the top of the form. This is a problem, especially in the fact that the data remains present on the screen after sending the form. Not something that would be pleasing to my potential and existing clients.
Attachments:
User 103173 Photo


VP of Software Development
0 posts

Bill Hodge wrote:
Well, I was really confident that your suggestion would work. However, it unfortunately did not eliminate the Error problem that occurs when the form is sent. It does email me the same as it did when I had CSV selected. Even with CSV and MySQL unchecked (and I did re-save under the manual option, removed the old and pasted the new script into my contact page, as well as going through all the FTP site update procedures) yet I still get that confounded error message! :/

Could it be due to the error logs already in the files in cPanel? If so, can those be safely removed?

I've attached an image of the Error that pops up so you can see it. In addition, instead of it redirecting to my Thank You page after the form is sent (this has been consistent), the form remains up with all the data that was entered with the addition of the error message at the top of the form. This is a problem, especially in the fact that the data remains present on the screen after sending the form. Not something that would be pleasing to my potential and existing clients.


That is the same problem. You still have CSV and MySQL logging enabled but the permissions are not correct on the storage folder and nothing can be written into it. You need to disable both features in the software.

If you have done that, it is possible you are not uploading the changes to the server. Delete the form first and the upload again. The form will not work for those two features if the "permission defined" error occurs.

If you want us to help, open a support ticket and send us FTP access and your .fb file and I will help you put it into place. You can then see what I did to make it function.
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.