请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

阿里大鱼使用一直报错呢.

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

正在回答 回答被采纳积分+3

1回答

singwa 2018-11-21 01:54:39

Class ‘Aliyun\Core\Config’ not found 

您好。提示这个类找不到。具体排查下 这个类是否加载进去 了

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号