New Error on form - Post ID 295893

User 2818159 Photo


Registered User
60 posts

I didn't make any changes but now my form won't work - this is the error:

Your form could not be submitted for the following reason(s):
Error validating RegEx magic field: invalid range in character class at offset 4


Form is here: https://www.villageworkroom.com/contact.html

User 187934 Photo


Senior Advisor
20,186 posts

On line 827 of the validator.inc.php
return preg_match( '/^\(\d{3}\)\d{3}-\d{4}$/', $tmp ) ||

Try changing it to this and test.
return preg_match( '/^\(\d{3}\)\d{3}\-\d{4}$/', $tmp ) ||
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 2818159 Photo


Registered User
60 posts

On my editor that was on line 787, but either way, the change didn't work - I'm still getting the same error.
User 187934 Photo


Senior Advisor
20,186 posts

I would open a support topic.
https://www.coffeecup.com/help/myroom/
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 2818159 Photo


Registered User
60 posts

Apparently WFB 2.5 doesn't work with the newer PHP versions. Support's "solution" was to purchase WFB 2.10.

I ended up just using a FormMail script and modifying the existing form.

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.