Dear Oonie,
Thank you for contacting us and bringing this issue to our attention. In order to conduct a thorough inspection and troubleshooting process, we require further clarification and transparency to gain a better understanding of the situation.
Meanwhile, providing us with admin access to the staging site of your website would greatly facilitate our investigation. If you are hesitant to share this access here, please feel free to contact us via the support email helpdesk@wisdmlabs.com.
We appreciate your understanding and cooperation.
Thread Starter
oonie
(@oonie)
hi took me a few months but i’ve added you. i’ve disabled themes, plugins, wp-rocket, cloudflare and had to enable them again. But this keeps coming up:
Pattern attribute value ^[A-Za-z ‘-]{2,}$ is not a valid regular expression: Uncaught SyntaxError: Invalid regular expression: /^[A-Za-z ‘-]{2,}$/v: Invalid character in character class
Thread Starter
oonie
(@oonie)
Hi there, any joy with this issue? Our hosting provider won’t let us revert back to PHP 7.4 – where the plugin worked seamlessly. We have just renewed the subscription but am worried we are going to have to find another plugin? Please advise asap
Hi Lindsay,
Thanks for sharing the detailed steps you’ve already tried – that’s really helpful. From the error message you mentioned, it looks like the issue might be related to a regex pattern that isn’t being handled well with PHP 8.0.
So in order to help you out, could you please do one of the following so we can better investigate:
- Share a short video (screen recording) of the steps you take and the error that appears.
- Or, reach out to us directly via our helpdesk at helpdesk@wisdmlabs.com with the details.
That way, our team can take a closer look and guide you with a fix so you can continue using the plugin smoothly on PHP 8+.
Looking forward to your update so we can resolve this quickly for you.
Thread Starter
oonie
(@oonie)
hi so i spent alot of time with chatgpt to try to problem solve but no joy. Here is the error…its the pattern for field name. The rest is noise
canopy-bed-tassa/:251 Uncaught SyntaxError: Invalid or unexpected token (at canopy-bed-tassa/:251:3278)Understand this error
canopy-bed-tassa/:1 Pattern attribute value ^[A-Za-z ‘-]{2,}$ is not a valid regular expression: Uncaught SyntaxError: Invalid regular expression: /^[A-Za-z ‘-]{2,}$/v: Invalid character in character classUnderstand this error
canopy-bed-tassa/:1923 Uncaught TypeError: Cannot read properties of undefined (reading ‘match’)
at HTMLFormElement.<anonymous> (canopy-bed-tassa/:1923:47)
at HTMLFormElement.dispatch (jquery.min.js?ver=3.7.1:2:40035)
at v.handle (jquery.min.js?ver=3.7.1:2:38006)
Thread Starter
oonie
(@oonie)
hi thought i would update you. So in our form – the name field gives this error:
Pattern attribute value ^([^0-9@#$%^&()+{}:;\//”<>,.?~]*)$ is not a valid regular expression: Uncaught SyntaxError: Invalid regular expression: /^([^0-9@#$%^&*()+{}:;\//"<>,.?*~]*)$/v: Invalid character in character class
And when I put phone number in it gives this error:
jquery.validate.min.js?ver=1755785331:4 Uncaught TypeError: Cannot read properties of undefined (reading ‘isValidNumber’). Exception occurred when checking element field_Phone_1599135488499, check the ‘validatePhone’ method.
at a.validator. (mattresses/:3407:45)
at a.validator.check (jquery.validate.min.js?ver=1755785331:4:11010)
at a.validator.element (jquery.validate.min.js?ver=1755785331:4:7286)
at a.validator.onfocusout (jquery.validate.min.js?ver=1755785331:4:3533)
at HTMLInputElement.b (jquery.validate.min.js?ver=1755785331:4:5362)
at HTMLFormElement.dispatch (jquery.min.js?ver=3.7.1:2:40035)
at v.handle (jquery.min.js?ver=3.7.1:2:38006)
at Object.trigger (jquery.min.js?ver=3.7.1:2:70124)
at Object.simulate (jquery.min.js?ver=3.7.1:2:70632)
at HTMLDocument.o (jquery.min.js?ver=3.7.1:2:43230)
Chatgpt suggested a temp fix:
public function offsetGet(mixed $offset): mixed
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
But it didn’t work. The form still “submits” and is redirected to our thank you page. BUT there is no product info now being recorded in the enquiry (0 item) – same if I use your default form.
We need to get this sorted out quite urgently and I have sent you access. Would really appreciate it if you could fix it as soon as you can 🙂
Thanks so much