Topic RSS
4:16 pm
Hi,
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);
header("Content-type:image/jpeg");
@imagejpeg($im,"",100);
@imagedestroy($im);
die();With the wp_load required, this does not work, if I disable loading wp_load it works fine.
What's wrong?
2:50 pm
March 6, 2005
Offlineit 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.
Most Users Ever Online: 959
Currently Online:
105 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: 3550
Members: 1464
Moderators: 3
Admins: 1
Forum Stats:
Groups: 1
Forums: 4
Topics: 5158
Posts: 18389
Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass
Moderators: Paul (421), cnymike (8), sonika (95)
Administrators: Oliver (6398)
FAQs
Home
Add Reply
Add Topic
Quote











