web form loading error(s)

User 1475675 Photo


Registered User
14 posts

Tried to make/reload a web form that was working and stopped working (for some reason) and I get errors.
Here's the a simplified version of the form page (an older non-responsive HTML site) without the page menu or header that I removed trying to trouble shoot the problem.

https://jimbernardcustomhomes.com/contact_2.html

This is what the full page would look like that used to work.

https://jimbernardcustomhomes.com/contact.html

I've basically used the same CC web form format (with a layout changes) on this site and it works fine.

https://bigwaveguitars.com/contact.html

Heres a link to the CC .fb file

http://jimbernardcustomhomes.com/BernardContactForm.fb

Thanks, Mike

User 1475675 Photo


Registered User
14 posts

Well, I just screwed up the contact form for the site https://bigwaveguitars.com/contact.html

I saved down loaded the CC web form files from the site, and then deleted the php file from the root directory
to see if it would still work without it loaded on the server. Didn't work, so I reloaded the .php file and now it
doesn't work and gives the same error message shown in the other links.

Any help would be appreciated, Thanks, Mike
User 187934 Photo


Senior Advisor
20,193 posts

Hi James,
Your form looks fine here.
https://jimbernardcustomhomes.com/Berna … tForm.html
On your contact.html page try altering the iframe script .
Change this.
<script type="text/javascript">document.write(unescape("%3Ciframe id=\"fb_iframe\" src=\"BernardContactForm.php" + window.location.search + "\" width=\"602\" height=\"809\"allowtransparency=\"true\" scrolling=\"no\" frameborder=\"0\"%3E&lt;a href=\"BernardContactForm.php\" title=\"BernardContactForm\"&gt;Check out my CoffeeCup Form&lt;/a&gt;%3C/iframe%3E"));</script>
<noscript>
<iframe width="602" height="809" style="border:none; background:transparent; overflow:hidden;"
id="fb_iframe" src="BernardContactForm/BernardContactForm.html">
<a href="BernardContactForm.php" title="BernardContactForm">Check out my CoffeeCup Form</a>
</iframe>
</noscript>

to this
<iframe width="602" height="809" style="border:none; background:transparent; overflow:hidden;"
id="fb_iframe" src="BernardContactForm/BernardContactForm.html">
</iframe>


If this doesn't help contact your host as this server test on your host isn't working. I bet they made some updates to the host and it has broken your forms.
https://jimbernardcustomhomes.com/Berna … ertest.php
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 1475675 Photo


Registered User
14 posts

Thanks for taking a look at this.

I did change the "I-form" portion of the script as you suggested, same result.
I can paste/load the "BernardContactForm.html" in to an iframe sans the java script
and it displays, but when I fill it out and hit submit I get the same error. I guess It needs the "script" portion
to function properly, but you know that.

Sent a "webpage loading problem" query to the hosting site.....have to see what they say.

Any other ideas that pop in to you head as your driving down the road or walking on the beach :) would be much appreciated.
Hope this makes sense, a little above my paygrade :(

Thanks, James
User 1475675 Photo


Registered User
14 posts

Eric had replied trying to help (thank you).

CC form (form builder) not working/loading (error message) on 3 sites:

https://jimbernardcustomhomes.com/contact.html

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@jimbernardcustomhomes.com to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.


Eric suggested I contact the hosting company about the problem, which I did.
The Reply:
The issue you're encountering could be related to the way the script is generating the iframe source URL. It seems that you are using "JBCH_Form.php" and appending window.location.search to it. This may lead to unexpected results, especially if the query string contains characters that need to be properly encoded.

I notice the hosting account here is also set at PHP 8. Can you confirm if this PHP Form perhaps is PHP 8 compatible with the folks at Coffee Cup Software.


Read some of the other threads concerning PHP 8....is that the problem?

I can load the form builder page ( https://jimbernardcustomhomes.com/JBCH_ … _Form.html )
outside of the "script" that form builder generates, but when I try to fill it out and "submit" I get an error. which is to expected.

Rebuilt the form from scratch a couple of times to see if I made an error somewhere with the same results.

Is it possible this will get fixed? Will the latest version of Form builder work (I'm using version 2.5 build 5437)

.fb file: http://jimbernardcustomhomes.com/JBCH_Form.fb

Does any of this make sense?

Thanks, Mike (James)
User 187934 Photo


Senior Advisor
20,193 posts

I suspect that your using a version that's way to old. It looks to be at least 6 years old. I would upgrade as the newer versions do work in most scenarios.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2906089 Photo


Registered User
224 posts

The PHP version has been a problem in the recent past and I believe that it is not fixed yet. Official CC support says they are aware that PHP version 7.5 and earlier works fine. They are still working on support for version 8. Personally, I would suggest reaching out to CC to learn more information.
Learn something, Share something.
User 1475675 Photo


Registered User
14 posts

All's well, I think?

Working with the the techs at Maine Hosting Solutions things got resolved.

In the cPanel settings for each website there is a page called "select PHP version".
The default was version 8, the form works with version 7, not version 8.

Also, there is another set of settings in the cPanel called "File Manager" where
permissions for each Folder or File Had to be changed using different 4 digit codes
to allow or not allow access to the folders (see attached screen capture).
I have no idea how/when this all works butsome/all(?) had to be changed,
and the person I emailed back and forth with
said that Folders permissions should be set at 0755, and files at 0644.

After googling File and Folder cPanel changes I'm guessing it has to do with site security.
Hopefully the changes don't result in site compromises by hackers, The company was hacked many
years ago and they upgraded all their servers that had up to date security.

Thanks for the idea to get in touch with the hosting company, Eric, that led to the resolution.

Sally forth, amigos :)

Attachments:
User 187934 Photo


Senior Advisor
20,193 posts

You're welcome. I would grab the updated Form builder when the next one comes out. CC is working on it but I don't have a release date. I would think your host is going to force you to php V8 for security reasons.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

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.