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
Captcha image not work
Loading wp_load into cforms_captcha.php the Captcha does not generated!
October 8, 2012
4:16 pm


I have a Linux based server. In a domain, I have WordPress 3.4.2, with PHP as application FastCGI. Many functions, like timthumb.php works great generating images. My problem is with CFormsII, latest version, only for captcha image.

Looking into the code, I see this file require wp_load.php or wp_config.php, then get some options from database for generating image. The problem is when I generate the image, I get the error:

"…the image contains errors".

I have make this test:

$im_bg_url        = dirname(__FILE__) . '/captchabg/1.png';

$im = imagecreatefrompng($im_bg_url);

With the wp_load required, this does not work, if I disable loading wp_load it works fine.

What's wrong?

October 12, 2012
9:26 am

any idea?sf-embarassed

October 12, 2012
2:50 pm
Munich, Germany
Forum Posts: 6400
Member Since:
March 6, 2005

it sounds like some setting configured via the cforms admin panel causes issues creating the img,

if setting $cap to "" (nothing) and leaving wp_load in place, does the same trick then that's a clear indication and you should check your captcha setting under cforms global settings.

if it doesn't work, then there is some bigger issue.

June 18, 2013
10:41 am

this is what im doing,
after create abspath.php,
go to global setting, check force captcha display for logged in users.

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: 3763

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5359

Posts: 18742

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

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

Administrators: Oliver (6400), Nicky (3)