Laravel检查员类未找到错误

时间:2014-02-04 16:00:19

标签: php class laravel-4

我在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中看到了错误

1 个答案:

答案 0 :(得分:0)

我找到了解决方案

改变

setlocale(LC_ALL, 'tr_TR');

setlocale(LC_TIME, 'tr_TR');

现在有效!