tp5报错imagettftext(): Could not read font怎么解决?

PHPz
Release: 2020-09-05 09:40:18
Original
4063 people have browsed it

tp5报错imagettftext(): Could not read font怎么解决?

问题:

tp5 验证码刷新 时好时坏(即有时候有验证码有时候没有)?

报错:imagettftext(): Could not read font 可翻译为字体文件不可读

原因:可能上传的时候网速不好有丢失的情况

解决:可以重新上传一下字体文件或 用验证码正常显示时所用的那个文件(文件要一一调试,因为封装好的程序里是随机调用的)

1.png

更多相关知识,请访问 PHP中文网!!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template