Title: CAPTCHA NOT WORKING WITH PHP7
Last modified: August 31, 2016

---

# CAPTCHA NOT WORKING WITH PHP7

 *  [ricmkt](https://wordpress.org/support/users/ricmkt/)
 * (@ricmkt)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/captcha-not-working-with-php7/)
 * I just realized that CAPTCHA images are not being shown when running Fast Secure
   Contact Form on a version 7.x PHP Server.
 * [https://wordpress.org/plugins/si-contact-form/](https://wordpress.org/plugins/si-contact-form/)

Viewing 11 replies - 1 through 11 (of 11 total)

 *  [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/captcha-not-working-with-php7/#post-7015698)
 * Hi try the following [instructions ](http://www.fastsecurecontactform.com/problem-captcha-image)
   see if they help you.
 *  Thread Starter [ricmkt](https://wordpress.org/support/users/ricmkt/)
 * (@ricmkt)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/captcha-not-working-with-php7/#post-7015724)
 * Hello and thank you for your reply.
    I’ve already tried that. Just to let you
   know, I’m receiving a “this image cannot be displayed because it contains errors”
   message when trying to access just the captcha image. And, after some tests, 
   realized that it’s because PHP (7) version.
 *  Thread Starter [ricmkt](https://wordpress.org/support/users/ricmkt/)
 * (@ricmkt)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/captcha-not-working-with-php7/#post-7015726)
 * By the way, there isn’t anything about it in server logs.
 *  [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/captcha-not-working-with-php7/#post-7015730)
 * Hi, thank you for reporting back. I will submit a ticket to the plugin developer.
 * Thank you
 *  [Mike Challis](https://wordpress.org/support/users/mikechallis/)
 * (@mikechallis)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/captcha-not-working-with-php7/#post-7015940)
 * I just installed PHP 7.0.3 on my CentOS 7 development server.
 * The CAPTCHA works.
    Make sure your PHP7 has the GD Library installed, because
   at first it did not work, then I had to add the PHP7 GD Library package. After
   installing that, the CAPTCHA worked.
 *  [Mike Challis](https://wordpress.org/support/users/mikechallis/)
 * (@mikechallis)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/captcha-not-working-with-php7/#post-7015959)
 * I have found some code to fix for better php 7 compatibility. It is in the captcha
   image class. It will only cause a problem if your server is set to display errors
   that are just warnings. I will release an update soon
 *  [Mike Challis](https://wordpress.org/support/users/mikechallis/)
 * (@mikechallis)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/captcha-not-working-with-php7/#post-7015963)
 * I just uploaded the new version. Is it fixed now?
 *  [TeroSalminen](https://wordpress.org/support/users/terosalminen/)
 * (@terosalminen)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/captcha-not-working-with-php7/#post-7015964)
 * Breaks captcha on PHP 5.4.45-0+deb7u2 giving the false url of /contact/#FSContact1
   instead of correct thank-you page redirect after submitting form.
 * Logs reveals an error
    `PHP Fatal error: Class 'securimage_ctf' not found in /
   var/www/blog/wp-content/plugins/si-contact-form/includes/class-fscf-process.php
   on line 977`
 * The line in is class-fscf-process.php (captcha with PHP sessions)
    `$img = new
   Securimage_ctf();`
 * Worked before the update, nbothing else is changed.
 *  [TeroSalminen](https://wordpress.org/support/users/terosalminen/)
 * (@terosalminen)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/captcha-not-working-with-php7/#post-7015965)
 * The line 976
 * `$img = new Securimage_ctf();`
 * in plugins/si-contact-form/includes/class-fscf-process.php should be
 * `$img = new Securimage_Captcha_ctf();`
 * since the class Securimage_ctf doen not exist anymore in captcha/securimage.php,
   it is replaced with class Securimage_Captcha_ctf
 * Got it fixed 🙂
 *  [Mike Challis](https://wordpress.org/support/users/mikechallis/)
 * (@mikechallis)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/captcha-not-working-with-php7/#post-7015966)
 * Sorry for the inconvenience, I will fix that ASAP
 *  [Mike Challis](https://wordpress.org/support/users/mikechallis/)
 * (@mikechallis)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/captcha-not-working-with-php7/#post-7015967)
 * Should be fixed in version 4.0.41

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘CAPTCHA NOT WORKING WITH PHP7’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/si-contact-form_dde2be.svg)
 * [Fast Secure Contact Form](https://wordpress.org/plugins/si-contact-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/si-contact-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/si-contact-form/)
 * [Active Topics](https://wordpress.org/support/plugin/si-contact-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/si-contact-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/si-contact-form/reviews/)

## Tags

 * [PHP7](https://wordpress.org/support/topic-tag/php7/)

 * 11 replies
 * 4 participants
 * Last reply from: [Mike Challis](https://wordpress.org/support/users/mikechallis/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/captcha-not-working-with-php7/#post-7015967)
 * Status: not resolved