douyueju2912 2017-06-22 14:20
浏览 76
已采纳

致命错误:未捕获错误:在C:\ Users \ Thibault \ Downloads everbounce-client-master ever.php中找不到类'NeverBounce \ API \ NB_Auth':15

I try to use NeverBounce API-PHP. But when i want to launch my Php file i had this error :

Fatal error: Uncaught Error: Class 'NeverBounce\API\NB_Auth' not found in C:\Users\Thibault\Downloads everbounce-client-master ever.php:15 Stack trace: #0 {main} thrown in C:\Users\Thibault\Downloads everbounce-client-master ever.php on line 15

Line 15 : NB_Auth::auth($apisecret, $apikey);

The file that contains all the API classes is in the file, where is my class never.php.

  • 写回答

1条回答 默认 最新

  • dongwu5743 2017-06-23 12:55
    关注

    Try the following items:

    1. Check if the file with your class was included (equire() or include()), especially if there is no autoloader in your project?
    2. Check if there are no problems with namespaces in you class?
    3. If you use composer autoloader – try to run composer dump-autoload to update your autoloader
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 微信会员卡等级和折扣规则
  • ¥15 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表
  • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分