ErrorException (E_ERROR) Trying to get property of non-object

0

I tried to return the page using backup to solve the problem but I can not. I upload the page and it continues with the same error, I do not know how to resolve. If you have an easier way to get the server to recognize file updates for example, it might be easier to resolve. I would put the backup file of the problem page again. If anyone can also help me by giving a direction of where this problem might be coming from.

enter image description here

Next to this list appears:

  • ErrorException ... / app / storage / views / e4eb13e60cfc4ad016623c6d6306139d3
  • Illuminate \ View \ Engines \ CompilerEngine handleViewException ... / vendor / laravel / framework / src / Illuminate / View / Engines / PhpEngine.php41
  • Illuminate \ View \ Engines \ CompilerEngine handleViewException ... / vendor / laravel / framework / src / Illuminate / View / Engines / PhpEngine.php41
  • ErrorException ... / app / storage / views / e4eb13e60cfc4ad016623c6d6306139d3
  • Illuminate \ Exception \ Handler handleError ... / app / storage / views / e4eb13e60cfc4ad016623c6d6306139d3
  • include ... / vendor / laravel / framework / src / Illuminate / View / Engines / PhpEngine.php37
  • Illuminate \ View \ Engines \ PhpEngine evaluatePath ... / vendor / laravel / framework / src / Illuminate / View / Engines / CompilerEngine.php57
  • Illuminate \ View \ Engines \ CompilerEngine get ... / vendor / laravel / framework / src / Illuminate / View / View.php140
  • Illuminate \ View \ View getContents ... / vendor / laravel / framework / src / Illuminate / View / View.php109
  • Illuminate \ View \ View renderContents ... / vendor / laravel / framework / src / Illuminate / View / View.php78
  • Illuminate \ View \ View render ... / app / storage / views / 9acc7d9492d73fd202cf68f00687f052444
  • include ... / vendor / laravel / framework / src / Illuminate / View / Engines / PhpEngine.php37
  • Illuminate \ View \ Engines \ PhpEngine evaluatePath ... / vendor / laravel / framework / src / Illuminate / View / Engines / CompilerEngine.php57
  • Illuminate \ View \ Engines \ CompilerEngine get ... / vendor / laravel / framework / src / Illuminate / View / View.php140
  • Illuminate \ View \ View getContents ... / vendor / laravel / framework / src / Illuminate / View / View.php109
  • Illuminate \ View \ View renderContents ... / vendor / laravel / framework / src / Illuminate / View / View.php78
  • Illuminate \ View \ View render ... / vendor / laravel / framework / src / Illuminate / Http / Response.php43
  • Illuminate \ Http \ Response setContent ... / vendor / symfony / http-foundation / Response.php202
  • Symfony \ Component \ HttpFoundation \ Response __construct ... / vendor / laravel / framework / src / Illuminate / Routing / Router.php1501
  • Illuminate \ Routing \ Router prepareResponse ... / vendor / laravel / framework / src / Illuminate / Routing / Router.php1036
  • Illuminate \ Routing \ Router dispatchToRoute ... / vendor / laravel / framework / src / Illuminate / Routing / Router.php1001
  • Illuminate \ Routing \ Router dispatch ... / vendor / laravel / framework / src / Illuminate / Foundation / Application.php781
  • Illuminate \ Foundation \ Application dispatch ... / vendor / laravel / framework / src / Illuminate / Foundation / Application.php745
  • Illuminate \ Foundation \ Application handle ... / vendor / laravel / framework / src / Illuminate / Session / Middleware.php72
  • Illuminate \ Session \ Middleware handle ... / vendor / laravel / framework / src / Illuminate / Cookie / Queue.php47
  • Illuminate \ Cookie \ Queue handle ... / vendor / laravel / framework / src / Illuminate / Cookie / Guard.php51
  • Illuminate \ Cookie \ Guard handle ... / vendor / stack / builder / src / Stack / StackedHttpKernel.php23
  • Stack \ StackedHttpKernel handle ... / vendor / laravel / framework / src / Illuminate / Foundation / Application.php641
  • Illuminate \ Foundation \ Application run ... / public / index.php49
  • URL page error: link

     <?php
    $type = ($course_type == 1) ? 'pre': 'ead';
    $name = Str::slug(strtolower($course->name));
    $name = trim(str_replace('advocacia','',$name),'-..-');
    $event = $type.'_'.$name;
    ?>
    @if($course_type == 2)
    <div id="side-with-margin">
    <div class="pre-inscricao">
    	<a href="{{ route('site.registrations') }}" onclick="ga('send', 'event', 'botao', 'clique', '{{ $event }}');" >
    		<img src="{{ Image::url('layout/inscricao-verde.png') }}" alt="" class="img-responsive-center" border="0" />
    	</a>
    </div>
    @if( Route::getCurrentRoute()->getName() != 'site.how_it_works' )
    <div class="space-30"></div>
    <a href="{{ route('site.how_it_works') }}">
    	<img src="{{ Image::url('layout/como-funcionam.png') }}" alt="" class="img-responsive-center" border="0" />
    </a>
    @endif
    <div class="space-30"></div>
    <a href="{{ route('site.poles') }}">
    	<img src="{{ Image::url('layout/polos-ead.png') }}" alt="" class="img-responsive-center" border="0" />
    </a>
    <div class="space-30"></div>
    <div class="carousel_right">
    	@include('site.components.depoimentos',compact('testimonials'))
    </div>
    </div>
    @else
    <div class="pre-inscricao">
    <a href="{{ route('site.registrations') }}" onclick="ga('send', 'event', 'botao', 'clique', '{{ $event }}');" >
    	<img src="{{ Image::url('layout/inscricao-verde.png') }}" alt="" class="img-responsive-center" border="0" />
    </a>
    </div>
    <div class="space-30"></div>
    <div class="carousel_right">
    @include('site.components.depoimentos',compact('testimonials'))
    </div>
    @endif
        
    asked by anonymous 21.11.2018 / 08:21

    0 answers