🔥CRMEB开源商城免费开源多语言商城系统,Tp6框架商城,系统可商用;包含小程序商城、H5商城、公众号商城、PC商城、App,支持分销、拼团、砍价、秒杀、优惠券、积分、会员等级、小程序直播、页面DIY,前后端分离,方便二开,更有详细使用文档、接口文档、数据字典、二开文档/视频教程,欢迎大家提出宝贵意见和建议
5.93k
stars
1.49k
forks
source link
致命错误: Call to undefined function think\captcha\imagettftext() #1
Closed
acekiller closed 2 years ago
**
php version: 7.1.23 * [0] ThrowableError in Captcha.php line 191 致命错误: Call to undefined function think\captcha\imagettftext() // 中文验证码 for ($i = 0; $i < $this->length; $i++) { $code[$i] = iconv_substr($this->zhSet, floor(mt_rand(0, mb_strlen($this->zhSet, 'utf-8') - 1)), 1, 'utf-8'); imagettftext($this->_image, $this->fontSize, mt_rand(-40, 40), $this->fontSize ($i + 1) 1.5, $this->fontSize + mt_rand(10, 20), $this->_color, $this->fontttf, $code[$i]); } } else { for ($i = 0; $i < $this->length; $i++) { $code[$i] = $this->codeSet[mt_rand(0, strlen($this->codeSet) - 1)]; $codeNX += mt_rand($this->fontSize 1.2, $this->fontSize 1.6); imagettftext($this->_image, $this->fontSize, mt_rand(-40, 40), $codeNX, $this->fontSize 1.6, $this->_color, $this->fontttf, $code[$i]); } }
Call Stack in Captcha.php line 191 at Captcha->entry() in Login.php line 62 at Login->captcha() at ReflectionMethod->invokeArgs(object(Login), []) in App.php line 343 at App::invokeMethod([object(Login), 'captcha'], []) in App.php line 611 at App::module(['admin', 'login', 'captcha'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456 at App::exec(['type' => 'module', 'module' => ['admin', 'login', 'captcha']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139 at App::run() in start.php line 19 at require('/Volumes/arm/blockch...') in index.php line 31 Environment Variables GET Data 1560672751000 POST Dataempty Filesempty Cookies _ga GA1.1.2088212418.1557614475 PHPSESSID eda0b40f6e4da22b274b3c35e8724e61 is_login 0 is_bg 1 Sessionempty Server/Request Data REDIRECT_STATUS 200 HTTP_HOST localhost HTTP_CONNECTION keep-alive HTTP_UPGRADE_INSECURE_REQUESTS 1 HTTP_USER_AGENT Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36 HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3 HTTP_ACCEPT_ENCODING gzip, deflate, br HTTP_ACCEPT_LANGUAGE zh-CN,zh;q=0.9,en;q=0.8 HTTP_COOKIE _ga=GA1.1.2088212418.1557614475; PHPSESSID=eda0b40f6e4da22b274b3c35e8724e61; is_login=0; is_bg=1 PATH /usr/bin:/bin:/usr/sbin:/sbin SERVER_SIGNATURE SERVER_SOFTWARE Apache/2.4.34 (Unix) PHP/7.1.23 SERVER_NAME localhost SERVER_ADDR ::1 SERVER_PORT 80 REMOTE_ADDR ::1 DOCUMENT_ROOT /Volumes/arm/blockchain/apache2Root REQUEST_SCHEME http CONTEXT_PREFIX CONTEXT_DOCUMENT_ROOT /Volumes/arm/blockchain/apache2Root SERVER_ADMIN you@example.com SCRIPT_FILENAME /Volumes/arm/blockchain/apache2Root/index.php REMOTE_PORT 58901 REDIRECT_URL /admin/login/captcha.html REDIRECT_QUERY_STRING 1560672751000 GATEWAY_INTERFACE CGI/1.1 SERVER_PROTOCOL HTTP/1.1 REQUEST_METHOD GET QUERY_STRING 1560672751000 REQUEST_URI /admin/login/captcha.html?1560672751000 SCRIPT_NAME /index.php PATH_INFO /admin/login/captcha.html PATH_TRANSLATED redirect:/index.php/admin/login/captcha.html/login/captcha.html PHP_SELF /index.php/admin/login/captcha.html REQUEST_TIME_FLOAT 1560672765.628 REQUEST_TIME 1560672765 argv [ "1560672751000" ] argc 1 Environment Variables PATH /usr/bin:/bin:/usr/sbin:/sbin XPC_SERVICE_NAME 0 XPC_FLAGS 0x80 OBJC_DISABLE_INITIALIZE_FORK_SAFETY YES XPC_SERVICES_UNAVAILABLE 1 ThinkPHP Constants APP_PATH /Volumes/arm/blockchain/apache2Root/application/ PUBILC_PATH /public/ UPLOAD_PATH public/uploads THINK_VERSION 5.0.24 THINK_START_TIME 1560672765.637 THINK_START_MEM 379936 EXT .php DS / THINK_PATH /Volumes/arm/blockchain/apache2Root/thinkphp/ LIB_PATH /Volumes/arm/blockchain/apache2Root/thinkphp/library/ CORE_PATH /Volumes/arm/blockchain/apache2Root/thinkphp/library/think/ TRAIT_PATH /Volumes/arm/blockchain/apache2Root/thinkphp/library/traits/ ROOT_PATH /Volumes/arm/blockchain/apache2Root/ EXTEND_PATH /Volumes/arm/blockchain/apache2Root/extend/ VENDOR_PATH /Volumes/arm/blockchain/apache2Root/vendor/ RUNTIME_PATH /Volumes/arm/blockchain/apache2Root/runtime/ LOG_PATH /Volumes/arm/blockchain/apache2Root/runtime/log/ CACHE_PATH /Volumes/arm/blockchain/apache2Root/runtime/cache/ TEMP_PATH /Volumes/arm/blockchain/apache2Root/runtime/temp/ CONF_PATH /Volumes/arm/blockchain/apache2Root/application/ CONF_EXT .php ENVPREFIX PHP IS_CLI false IS_WIN false