Unify Theme ERROR! on CAPTCHA form.

For the life of me, I couldn’t figure out why the Sky Forms CAPTCHA was showing ERROR! on my Unify Theme Bootstrap 3 deployment.

Turns out this was just a rookie mistake… I wasn’t looking closely enough at the “how it works” and I was missing some code from the demo-contacts.php sample file that was crucial to the operation of the CAPTCHA. This code generates the CAPTCHA itself and stores it in SESSION data. Since it was missing, the CAPTCHA system’s image.php was turning out an ERROR!

That $_SESSION[‘captcha_id’] is what the image.php file is looking for. If it doesn’t find it, ERROR!

Refresh, and we’re good to go!

-Robbie

5
Leave a Reply

avatar
3 Comment threads
2 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
2 Comment authors
Robbie Fergusonmark wiltshire Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
mark wiltshire
Guest
mark wiltshire

Thanks Robbie,

Couldn’t see the wood from the trees, all working fantastically now.
Thanks for your help, have a great day 🙂

mark wiltshire
Guest
mark wiltshire

Your a STAR Robbie, thanks

Mark WIltshire
Guest

Hi Bald Nerd,

I am having this exact trouble and its driving me nuts.

 

Scenario

-> have this working on my dev server (Session stored in files), captcha displays fine.

-> copied files to hosting company. I have 2 issues.

a) I seem to get 2 session files

b) The image.php doesn’t pick up the session (i have added debug statements)

Therefore I always get ERROR displayed.

I have checked permissions of directories. and files and all looks like a match to my local development server.  Any ideas what else I can try.

 

Many thanks for any help you could offer.
Mark