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 12771 Apr 9, 2021, 4:04 PM
Thread Re: [Basshook] Need Some Help With Links2 Error
Andy 12662 Apr 10, 2021, 12:02 AM
Thread Re: [Andy] Need Some Help With Links2 Error
Basshook 12622 Apr 17, 2021, 10:00 AM
Thread Re: [Basshook] Need Some Help With Links2 Error
Basshook 12616 Apr 18, 2021, 8:54 PM
Thread Re: [Basshook] Need Some Help With Links2 Error
Andy 12593 Apr 20, 2021, 8:27 AM
Thread Re: [Andy] Need Some Help With Links2 Error
Basshook 12587 Apr 20, 2021, 9:36 AM
Thread Re: [Basshook] Need Some Help With Links2 Error
Andy 12588 Apr 20, 2021, 10:14 AM
Thread Re: [Andy] Need Some Help With Links2 Error
Basshook 12573 Apr 20, 2021, 11:20 AM
Thread Re: [Basshook] Need Some Help With Links2 Error
Andy 12573 Apr 20, 2021, 11:56 PM
Thread Re: [Andy] Need Some Help With Links2 Error
Basshook 12569 Apr 21, 2021, 10:15 AM
Thread Re: [Basshook] Need Some Help With Links2 Error
Basshook 12531 Apr 21, 2021, 5:06 PM
Thread Re: [Basshook] Need Some Help With Links2 Error
Basshook 12521 Apr 21, 2021, 6:29 PM
Thread Re: [Basshook] Need Some Help With Links2 Error
Andy 12517 Apr 21, 2021, 10:44 PM
Thread Re: [Andy] Need Some Help With Links2 Error
Basshook 12520 Apr 21, 2021, 11:03 PM
Thread Re: [Basshook] Need Some Help With Links2 Error
Andy 12550 Apr 21, 2021, 11:25 PM
Thread Re: [Andy] Need Some Help With Links2 Error
Basshook 12514 Apr 21, 2021, 11:34 PM
Thread Re: [Basshook] Need Some Help With Links2 Error
Andy 12512 Apr 21, 2021, 11:35 PM
Thread Re: [Andy] Need Some Help With Links2 Error
Basshook 12503 Apr 21, 2021, 11:45 PM
Thread Re: [Basshook] Need Some Help With Links2 Error
Basshook 12499 Apr 21, 2021, 11:52 PM
Thread Re: [Basshook] Need Some Help With Links2 Error
Andy 12500 Apr 21, 2021, 11:54 PM
Post Re: [Andy] Need Some Help With Links2 Error
Basshook 12442 Apr 23, 2021, 1:27 PM
Post Re: [Basshook] Need Some Help With Links2 Error
Andy 12483 Apr 21, 2021, 11:53 PM