阿里大鱼使用一直报错呢.
来源:7-9 基于阿里短信服务发送第一个短信验证码demo
风行天下1
2018-11-20
sms文件:
ini_set(“display_errors”, “on”);
require_once APP_PATH . ‘…/extend/ali/vendor/autoload.php’;
use Aliyun\Core\Config;
use Aliyun\Core\Profile\DefaultProfile;
use Aliyun\Core\DefaultAcsClient;
use Aliyun\Api\Sms\Request\V20170525\SendSmsRequest;
use Aliyun\Api\Sms\Request\V20170525\SendBatchSmsRequest;
use Aliyun\Api\Sms\Request\V20170525\QuerySendDetailsRequest;
php htt
p_server.php
PHP Fatal error: Uncaught Error: Class ‘Aliyun\Core\Config’ not found in /www/my/tp5/application/common/lib/ali/Sms.php:15
Stack trace:
#0 /www/my/tp5/thinkphp/library/think/Loader.php(334): include()
#1 /www/my/tp5/thinkphp/library/think/Loader.php(81): think__include_file(’/www/my/tp5/ser…’)
#2 [internal function]: think\Loader::autoload(‘app\common\lib\…’)
#3 /www/my/tp5/application/index/controller/Index.php(23): spl_autoload_call(‘app\common\lib\…’)
#4 [internal function]: app\index\controller\Index->sms()
#5 /www/my/tp5/thinkphp/library/think/Container.php(186): ReflectionMethod->invokeArgs(Object(app\index\controller\Index), Array)
#6 /www/my/tp5/thinkphp/library/think/route/dispatch/Module.php(126): think\Container->invokeMethod(Array, Array)
#7 /www/my/tp5/thinkphp/library/think/route/dispatch/Url.php(26): think\route\dispatch\Module->run()
#8 /www/my/tp5/thinkphp/library/think/App.php(309): think\route\dispatch\Url->run()
#9 /www/my/tp5/server/http_server.php(67): think\App->run()
#10 {main}
thrown in /www/my/tp5/application/common/lib/ali/Sms.php on line 15
[think\exception\ErrorException]
Uncaught Error: Class ‘Aliyun\Core\Config’ not found in /www/my/tp5/application/common/lib/ali/Sms.php:15
Stack trace:
#0 /www/my/tp5/thinkphp/library/think/Loader.php(334): include()
#1 /www/my/tp5/thinkphp/library/think/Loader.php(81): think__include_file(’/www/my/tp5/ser…’)
#2 [internal function]: think\Loader::autoload(‘app\common\lib\…’)
#3 /www/my/tp5/application/index/controller/Index.php(23): spl_autoload_call(‘app\common\lib\…’)
#4 [internal function]: app\index\controller\Index->sms()
#5 /www/my/tp5/thinkphp/library/think/Container.php(186): ReflectionMethod->invokeArgs(Object(app\index\controller\Index), Array)
#6 /www/my/tp5/thinkphp/library/think/route/dispatch/Module.php(126): think\Container->invokeMethod(Array, Array)
#7 /www/my/tp5/thinkphp/library/think/route/dispatch/Url.php(26): think\route\dispatch\Module->run()
#8 /www/my/tp5/thinkphp/library/think/App.php(309): think\route\dispatch\Url->run()
#9 /www/my/tp5/server/http_server.php(67): think\App->run()
#10 {main}
thrown
Exception trace:
() at /www/my/tp5/application/common/lib/ali/Sms.php:15
think\Error::appShutdown() at n/a:n/a
/www/my/tp5/server/…/application/…extend/ali/vendor/autoload.php
Fatal error: Uncaught Error: Class ‘Aliyun\Core\Config’ not found in /www/my/tp5/application/common/lib/ali/Sms.php:15
Stack trace:
#0 /www/my/tp5/thinkphp/library/think/Loader.php(334): include()
#1 /www/my/tp5/thinkphp/library/think/Loader.php(81): think__include_file(’/www/my/tp5/ser…’)
#2 [internal function]: think\Loader::autoload(‘app\common\lib\…’)
#3 /www/my/tp5/application/index/controller/Index.php(23): spl_autoload_call(‘app\common\lib\…’)
#4 [internal function]: app\index\controller\Index->sms()
#5 /www/my/tp5/thinkphp/library/think/Container.php(186): ReflectionMethod->invokeArgs(Object(app\index\controller\Index), Array)
#6 /www/my/tp5/thinkphp/library/think/route/dispatch/Module.php(126): think\Container->invokeMethod(Array, Array)
#7 /www/my/tp5/thinkphp/library/think/route/dispatch/Url.php(26): think\route\dispatch\Module->run()
#8 /www/my/tp5/thinkphp/library/think/App.php(309): think\route\dispatch\Url->run()
#9 /www/my/tp5/server/http_server.php(67): think\App->run()
#10 {main}
thrown in /www/my/tp5/application/common/lib/ali/Sms.php on line 15
[2018-11-20 16:51:10 *5490.1] ERROR zm_deactivate_swoole (ERROR 503): Fatal error: Uncaught Error: Class ‘Aliyun\Core\Config’ not found in /www/my/tp5/application/common/lib/ali/Sms.php:15
Stack trace:
#0 /www/my/tp5/thinkphp/library/think/Loader.php(334): include()
#1 /www/my/tp5/thinkphp/library/think/Loader.php(81): think__include_file(’/www/my/tp5/ser…’)
#2 [internal function]: think\Loader::autoload(‘app\common\lib\…’)
#3 /www/my/tp5/application/index/controller/Index.php(23): spl_autoload_call(‘app\common\lib\…’)
#4 [internal function]: app\index\controller\Index->sms()
#5 /www/my/tp5/thinkphp/library/think/Container.php(186): ReflectionMethod->invokeArgs(Object(app\index\controller\Index), Array)
#6 /www/my/tp5/thinkphp/library/think/route/dispatch/Module.php(126): think\Container->invokeMethod(Array, Array)
#7 /www/my/tp5/thinkphp/library/think/route/dispatch/Url.php(26): think\route\dispatch\Module->run()
#8 /www/my/tp5/thinkphp/library/think/App.php(309): think\route\dispatch\Url->run(u@3w[2018-11-20 16:51:10 $5487.0] WARNING swManager_check_exit_status: worker#1 abnormal exit, status=255, signal=0
1回答
-
singwa
2018-11-21
Class ‘Aliyun\Core\Config’ not found
您好。提示这个类找不到。具体排查下 这个类是否加载进去 了
00
相似问题