Forums

Error/Warning on Site w/ CFv5

tknott 17 May, 2016
I just started getting the following error on my site where I have CFv5 forms placed.

Warning: stripslashes() expects parameter 1 to be string, object given in /home/content/p3pnexwpnas01_data02/66/3016266/html/wp-content/plugins/chronoforms/cegcore/bootstrap.php on line 78

The error/warning shows up above my form placement. I can't figure out what is going on. Form entries still work correctly - i.e. they redirect to the correct page and get sent to the correct recipients, just this warning has appeared. Obviously I need to fix it, but the client wants it off of course right away. But we can't remove CFv5 or the form because they are lead generator for the website!

Any help is appreciated. I've attached a screenshot.

Thanks,
Troy
GreyHead 18 May, 2016
Hi Troy,

It's a PHP Warning, not an Error so the immediate fix would be to set the site error reporting not to show Warnings.There are some suggestions in this StackOverFlow answer

I suspect that the cause is that you have Magic Quotes enabled in the PHP configuration - disabling this will probably fix the underlying problem. I don't know what the current WordPress policy is on this - in PHP and in Joomla! it has been deprecated for some time - and removed from PHP 5.4 on.

Bob
tknott 18 May, 2016
Thanks Bob. Yep that was exactly it. Took a little finagling due to how that site is being hosted, but got it sorted out.

Best,
Troy
This topic is locked and no more replies can be posted.