Reply to PHP Warning: imagestring() expects parameter 2 to be long, string given

PHP Warning: imagestring() expects parameter 2 to be long, string given new!
by Suraj, 7 years ago
This is my code..
$merge->image_text = 'TEST';
$merge->image_text_font = 'MyriadPro-Regular_0.otf';
$merge->image_text_size = 24;

I'm keep getting this error : PHP Warning: imagestring() expects parameter 2 to be long, string given : class.upload.php on line 4476

imagestring($filter,
            $this->image_text_font,
            ($this->image_text_alignment == 'l' ? 0 : (($t_width - strlen($v) * $char_width) / ($this->image_text_alignment == 'r' ? 1 : 2))),
            $k * ($line_height  + ($k > 0 && $k < (sizeof($text)) ? $this->image_text_line_spacing : 0)),
            $v,
            $text_color);
Reply

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important