Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Re: [Basshook] Need Some Help With Links2 Error

Quote Reply
Re: [Basshook] Need Some Help With Links2 Error In reply to
Andy,

I started over and verified that the "Add Confirm" mod works.

I then re-installed all the captcha mod code where it belongs and when I tried to add a new site to the links page I got this error:

Quote:
fatal error: GD::Image::copy: source is not of type GD::Image at admin/captcha/captcha.pl line 162


Here is what is at line 158-168 in captcha.pl and I underlined 162:

Quote:
# copy the character images into the code graphic
for($captcha_i=0; $captcha_i<$captcha_length; $captcha_i++){
$captcha_letter = substr($captcha_code,$captcha_i,1);
$captcha_source = new GD::Image("$captcha_imagesfolder/$captcha_letter.png");
$captcha_im->copy($captcha_source,$captcha_i*$captcha_width,0,0,0,$captcha_width,$captcha_height);
$captcha_a =int(rand (int($captcha_width/14)))+0;
$captcha_b =int(rand (int($captcha_height/12)))+0;
$captcha_c =int(rand (int($captcha_width/3)))-(int($captcha_width/5));
$captcha_d =int(rand (int($captcha_height/3)))-(int($captcha_height/5));
$captcha_im->copyResized($captcha_source,($captcha_i*$captcha_width)+$captcha_a,$captcha_b,0,0,$captcha_width+$captcha_c,$captcha_height+$captcha_d,$captcha_width,$captcha_height);


I checked my apache_error_log and mod security logs and there is nothing referencing the GD error.

I believe I am getting closer. I wonder if links2 captcha mod isn't compatible with the newer version of GD.pm?
Basshook

Last edited by:

Basshook: Apr 21, 2021, 5:16 PM
Subject Author Views Date
Thread Need Some Help With Links2 Error Basshook 4038 Apr 9, 2021, 4:04 PM
Thread Re: [Basshook] Need Some Help With Links2 Error
Andy 4025 Apr 10, 2021, 12:02 AM
Thread Re: [Andy] Need Some Help With Links2 Error
Basshook 3985 Apr 17, 2021, 10:00 AM
Thread Re: [Basshook] Need Some Help With Links2 Error
Basshook 3973 Apr 18, 2021, 8:54 PM
Thread Re: [Basshook] Need Some Help With Links2 Error
Andy 3953 Apr 20, 2021, 8:27 AM
Thread Re: [Andy] Need Some Help With Links2 Error
Basshook 3951 Apr 20, 2021, 9:36 AM
Thread Re: [Basshook] Need Some Help With Links2 Error
Andy 3946 Apr 20, 2021, 10:14 AM
Thread Re: [Andy] Need Some Help With Links2 Error
Basshook 3941 Apr 20, 2021, 11:20 AM
Thread Re: [Basshook] Need Some Help With Links2 Error
Andy 3924 Apr 20, 2021, 11:56 PM
Thread Re: [Andy] Need Some Help With Links2 Error
Basshook 3908 Apr 21, 2021, 10:15 AM
Thread Re: [Basshook] Need Some Help With Links2 Error
Basshook 3893 Apr 21, 2021, 5:06 PM
Thread Re: [Basshook] Need Some Help With Links2 Error
Basshook 3887 Apr 21, 2021, 6:29 PM
Thread Re: [Basshook] Need Some Help With Links2 Error
Andy 3882 Apr 21, 2021, 10:44 PM
Thread Re: [Andy] Need Some Help With Links2 Error
Basshook 3879 Apr 21, 2021, 11:03 PM
Thread Re: [Basshook] Need Some Help With Links2 Error
Andy 3875 Apr 21, 2021, 11:25 PM
Thread Re: [Andy] Need Some Help With Links2 Error
Basshook 3873 Apr 21, 2021, 11:34 PM
Thread Re: [Basshook] Need Some Help With Links2 Error
Andy 3870 Apr 21, 2021, 11:35 PM
Thread Re: [Andy] Need Some Help With Links2 Error
Basshook 3865 Apr 21, 2021, 11:45 PM
Thread Re: [Basshook] Need Some Help With Links2 Error
Basshook 3862 Apr 21, 2021, 11:52 PM
Thread Re: [Basshook] Need Some Help With Links2 Error
Andy 3858 Apr 21, 2021, 11:54 PM
Post Re: [Andy] Need Some Help With Links2 Error
Basshook 3812 Apr 23, 2021, 1:27 PM
Post Re: [Basshook] Need Some Help With Links2 Error
Andy 3854 Apr 21, 2021, 11:53 PM