0
I have a somewhat old captcha system that started having problems.
Sometimes it works, other times the image is not generated and these errors occur:
[13-Sep-2019 23:48:05 America/Sao_Paulo] PHP Warning: imagettftext(): Could not read font in /home/user/public_html/captchac_code.php on line 230
[13-Sep-2019 23:48:05 America/Sao_Paulo] PHP Warning: imagettfbbox(): Could not read font in /home/user/public_html/captchac_code.php on line 71
[13-Sep-2019 23:48:03 America/Sao_Paulo] PHP Warning: imagefilledrectangle() expects parameter 6 to be long, string given in /home/user/public_html/captchac_code.php on line 200
Below, I provide the file code:
Filing cabinet: captchac_config.php: https://pastebin.com/kck0FKY1
Filing cabinet: captchac_lib.php: https://pastebin.com/Hzd8R65R
Filing cabinet: captchac_code.php: https://pastebin.com/0wTgVkva
Any light? rsrs