think-captcha icon indicating copy to clipboard operation
think-captcha copied to clipboard

Fatal error: Uncaught Error: Class 'Route' not found in vendor\topthink\think-captcha\src\helper.php on line 12

Open kenetkang opened this issue 3 years ago • 3 comments

//test.php in test folder require_once DIR.'/../vendor/autoload.php';

use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception;

$mail = new PHPMailer(true);
try {} catch (Exception $e) {}

kenetkang avatar May 30 '21 02:05 kenetkang

    "php": ">=5.6.0",
    "topthink/framework": "5.1.*",
    "topthink/think-captcha": "2.0.*",
    "phpmailer/phpmailer": "^6.4"

kenetkang avatar May 30 '21 02:05 kenetkang

这问题怎么解决的?只能升级TP到6?

seek-x2y avatar Sep 25 '21 02:09 seek-x2y

thinkphp 5.1 可以考虑卸载官方的验证码扩展,安装我这个版本来解决。 地址:https://github.com/jonesshen/think-captcha

jonesshen avatar Jan 07 '22 02:01 jonesshen