cforms II User Forum

Registration is currently disabled.


Login form protected by Login LockDown.

Lost password?
Advanced Search

— Forum Scope —


— Match —


— Forum Options —


Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
No CAPTCHA image shown - here is why:
August 25, 2007
8:27 pm
Munich, Germany
Forum Posts: 6400
Member Since:
March 6, 2005

Since I've heard about this issue from various users, I thought this topic may warrant its own thread.

If your CAPTCHA image is not shown, it most likely has to do with the fact that the PHP SESSION  is being reset by a not so well coded plugin.

In particular WP-EMail, WP-Polls, WP-PostRatings are known to do that, so if you're running any of these (the latest versions anyway) CAPTCHA will not work for you and you may incur other issues down the road.

Unfortunately, there is nothing I can do fix this and the plugin author (of the above) doesn't care. Oh well.

September 28, 2007
6:54 pm

my CAPTCHA image was not being shown but i was sure it was nothing to do with the SESSION being reset so investigated further. i tracked the problem down to two lines of code in the cforms-captcha.php file:


i then read about this php bug.

the two lines of code above are only called if the variable $im_bg is set to 0. changing its value to 1 prevents the buggy code from being called and solves the problem.

to do this, look for the line of code at the top of cforms-captcha.php file in the contactforms plugin directory, and change it from:

$im_bg = 0;


$im_bg = 1;

i would recommend checking if the problem is to do with the SESSION being reset before attempting this solution.

hope this helps some of you! 

September 28, 2007
6:57 pm
Munich, Germany
Forum Posts: 6400
Member Since:
March 6, 2005

Thanks flashandburn for the heads-up!

November 6, 2007
4:34 am


I'm running XAMPP 1.6.4 with PHP 5.2.4 for WinXP. Added the captcha field to the form an it crashed Apache under both FireFox and IE6 on my local test server… "Windows has encountered a problem dialog" with no captcha image.

Changing $im_bg = 1;  fixed the crash and the captcha field works great.



Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
30 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3762

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5361

Posts: 18742

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)