【问题标题】:Error occured while integrating Codeigniter with Sentry 2将 Codeigniter 与 Sentry 2 集成时发生错误
【发布时间】:2015-03-11 05:56:18
【问题描述】:

我只是按照以下链接的说明进行操作,但在将 Sentry 2 与 Codeigniter 3 集成时遇到此错误。

链接:https://cartalyst.com/manual/sentry/2.1#configuration

遇到了 PHP 错误

严重性:警告
消息:未找到“Cartalyst\Sentry\Facades\CI\Sentry”类
文件名:config/config.php
行号:513

回溯:

文件:C:\wamp\www\codeigniter2\application\config\config.php
线路:513
函数:class_alias

文件:C:\wamp\www\codeigniter2\index.php
线路:292
函数:require_once

【问题讨论】:

    标签: php codeigniter cartalyst-sentry


    【解决方案1】:

    如果有人仍在寻找解决方案,请尝试这样实施 - https://thephpx.wordpress.com/2018/04/25/setup-sentry-on-codeigniter-3-1/

    【讨论】:

      【解决方案2】:

      试试看

      将 autoload.php 添加到 Codeigniter 的 index.php 之前 require_once BASEPATH.'core/CodeIgniter.php';

      include_once './vendor/autoload.php';
      

      【讨论】:

        【解决方案3】:

        你必须运行

        composer dump-autoload 
        

        第一

        【讨论】:

          猜你喜欢
          • 2020-08-29
          • 2012-11-18
          • 1970-01-01
          • 2019-01-17
          • 2017-08-10
          • 1970-01-01
          • 1970-01-01
          • 2018-11-20
          • 1970-01-01
          相关资源
          最近更新 更多