Hi @lifeofguenter,
I just tested a text field validated with your code above, and it would fail on random characters but I was able to successfully submit “https://www.test.com”.
Can you let me know what version of PHP, WordPress, ACF, and Validated Field you have? It may be something specific to your installation.
Thanks!
Justin
Hi,
Thanks for having a look at it:
PHP:
PHP 5.4.39 (cli) (built: Mar 28 2015 13:43:56)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
with XCache v3.2.0, Copyright (c) 2005-2014, by mOo
with the ionCube PHP Loader v4.6.1, Copyright (c) 2002-2014, by ionCube Ltd.
with XCache Cacher v3.2.0, Copyright (c) 2005-2014, by mOo
WordPress 4.1.1 – ACF and Validated Field are latest.
The code you provided works for me. Slightly different version of PHP at 5.4.37, and I’m not using XCache. I’m assuming you are on the latest of ACF 5?
Have you tried with other plugins disabled? Where exactly do you see the PHP error – the log or the AJAX request?
@lifeofguenter pinging you to see if you are still having issues. since i am not able to reproduce this issue with the latest version of the plugin, I will mark it resolved if I don’t hear back. Thanks!
closing: unable to reproduce.