【问题标题】:Laravel inspector class not found errorLaravel 检查器类未找到错误
【发布时间】:2014-02-28 16:54:30
【问题描述】:

我在 Laravel 4 上遇到错误。

这是错误详情

PHP 致命错误:在第 95 行的 /home/igidonli/public_html/meeting/vendor/filp/whoops/src/Whoops/Run.php 中找不到类“Whoops\Exception\Inspector”

只有一个页面出现此错误,其他页面运行良好

我用谷歌搜索,但我找不到任何东西。

    public function showStep()
    {
        setlocale(LC_ALL, 'tr_TR');
        $this->initTimes();
        $this->calculateTotalMeetingCount();

        $time = $this->getStepByTime();
        if ($time['step']==1) return $this->step1($time);
        if ($time['step']==2) return $this->step2($time);
    }

    private function step1($time){

        $step = View::make('layout/step')
            ->with('meetingDate',strftime('%e %B %Y',$this->meetingDate))
            ->with('stepTime',strftime('%e %B %Y',$time['time']));

        $sectors = new Sectors;
        $sectorsList = $sectors->getSectors();

        $firms = new Firms;
        $involvedFirms = $firms->InvolvedList(Request::get('sektor'))->get();

        $requests = new Requests;
        $requestedFirms = $requests->RequestsByFirmID(Auth::user()->id);
        $requestCount = $requests->RequstCount(Auth::user()->id);

        $content = View::make('step'.$time['step'])
            ->with('firmsList',$involvedFirms)
            ->with('requests',$requestedFirms)
            ->with('totalMeeting',$this->meetingCount)
            ->with('sectorList',$sectorsList)
            ->with('reqCount',$requestCount);
        $step->content = $content;
        $this->layout->content = $content;
    }

布局/step.blade.php

<div class="jumbotron banner mini">
    <div class="container">
        <div class="welcome">
            <div class="row">
                <div class="col-lg-12">
                    <i><div><strong>{{ $stepTime }}</strong></div><div class="date-desc">tarihine kadar randevu listenizi düzenleyiniz.</div></i>
                </div>
                <div class="col-lg-7  hidden-sm hidden-xs text-center pull-right">
                </div>
                <div class="clearfix"></div>
            </div>
        </div>
    </div>
    <div class="tip">
        <div class="container">
            <div class="row">
                <div class="col-lg-12 date">
                    İGİD İkili Görüşmeler  - {{ $meetingDate }}
                </div>
                <div class="col-lg-12">
                    SWISSOTEL BUYUK EFES, IZMIR
                </div>
            </div>
        </div>
    </div>
</div>
{{ $content }}

Laravel 给出空白页。 我在 error.log 中看到了错误

【问题讨论】:

  • 什么是页面代码(控制器、型号等)?您必须为我们提供更多信息,而不仅仅是错误消息。
  • @MitchGlenn 我添加了代码块。在此块代码运行良好之前
  • 你只给了我一小块工作,你的路线是什么?我假设这是你的控制器。 layout/step 的视图怎么样?
  • 我不知道斜杠是否适用于模板目录,因为我没有尝试过,但. 可以
  • @MitchGlenn 我添加了代码。

标签: php class laravel-4


【解决方案1】:

我找到了解决办法

变化

setlocale(LC_ALL, 'tr_TR');

setlocale(LC_TIME, 'tr_TR');

现在可以了!

【讨论】:

    猜你喜欢
    • 2016-11-06
    • 1970-01-01
    • 2014-10-02
    • 2021-01-08
    • 1970-01-01
    • 1970-01-01
    • 2016-11-03
    • 2018-08-05
    • 1970-01-01
    相关资源
    最近更新 更多