Errorexception (E_ERROR) Trying to get Property of non-object

Asked

Viewed 155 times

0

I tried to turn the page using backup to solve the problem but I can’t. I go up the page and she keeps on making the same mistake, I don’t know how to fix it. If there is some easier way for the server to recognize file updates, for example, it might be easier to resolve. Because it would put the backup file of the page with problem again. If anyone can also help me by giving a direction where this problem may be coming from.

enter image Description here

Next to appears this list:

  1. Errorexception .../-app/-Storage/-views/-e4eb13e60cfc4ad016623c6d6306139d3
  2. Illuminate View Engines Compilerengine handleViewException .../-vendor/-Laravel/-framework/-src/-Illuminate/-View/-Engines/-Phpengine.php41
  3. Illuminate View Engines Compilerengine handleViewException .../-vendor/-Laravel/-framework/-src/-Illuminate/-View/-Engines/-Phpengine.php41
  4. Errorexception .../-app/-Storage/-views/-e4eb13e60cfc4ad016623c6d6306139d3
  5. Illuminate Exception Handler handleError .../-app/-Storage/-views/-e4eb13e60cfc4ad016623c6d6306139d3
  6. include .../-vendor/-Laravel/-framework/-src/-Illuminate/-View/-Engines/-Phpengine.php37
  7. Illuminate View Engines Phpengine evaluatePath .../-vendor/-Laravel/-framework/-src/-Illuminate/-View/-Engines/-Compilerengine.php57
  8. Illuminate View Engines Compilerengine get .../-vendor/-Laravel/-framework/-src/-Illuminate/-View/-View.php140
  9. Illuminate View View getContents .../-vendor/-Laravel/-framework/-src/-Illuminate/-View/-View.php109
  10. Illuminate View View renderContents .../-vendor/-Laravel/-framework/-src/-Illuminate/-View/-View.php78
  11. Illuminate View Render .../-app/-Storage/-views/-9acc7d9492d73fd202cf68f00687f052444
  12. include .../-vendor/-Laravel/-framework/-src/-Illuminate/-View/-Engines/-Phpengine.php37
  13. Illuminate View Engines Phpengine evaluatePath .../-vendor/-Laravel/-framework/-src/-Illuminate/-View/-Engines/-Compilerengine.php57
  14. Illuminate View Engines Compilerengine get .../-vendor/-Laravel/-framework/-src/-Illuminate/-View/-View.php140
  15. Illuminate View View getContents .../-vendor/-Laravel/-framework/-src/-Illuminate/-View/-View.php109
  16. Illuminate View View renderContents .../-vendor/-Laravel/-framework/-src/-Illuminate/-View/-View.php78
  17. Illuminate View Render .../-vendor/-Laravel/-framework/-src/-Illuminate/-Http/-Response.php43
  18. Illuminate Http Response setContent .../-vendor/-symfony/-http-Foundation/-Response.php202
  19. Symfony Component Httpfoundation Response .../-vendor/-Laravel/-framework/-src/-Illuminate/-Routing/-Router.php1501
  20. Illuminate Routing Router prepareResponse .../-vendor/-Laravel/-framework/-src/-Illuminate/-Routing/-Router.php1036
  21. Illuminate Routing Router dispatchToRoute .../-vendor/-Laravel/-framework/-src/-Illuminate/-Routing/-Router.php1001
  22. Illuminate Routing Router Dispatch .../-vendor/-Laravel/-framework/-src/-Illuminate/-Foundation/-Application.php781
  23. Illuminate Foundation Application Dispatch .../-vendor/-Laravel/-framework/-src/-Illuminate/-Foundation/-Application.php745
  24. Illuminate Foundation Application Handle .../-vendor/-Laravel/-framework/-src/-Illuminate/-Session/-Middleware.php72
  25. Illuminate Session Middleware Handle .../-vendor/-Laravel/-framework/-src/-Illuminate/-Cookie/-Queue.php47
  26. Illuminate Cookie Queue Handle .../-vendor/-Laravel/-framework/-src/-Illuminate/-Cookie/-Guard.php51
  27. Illuminate Cookie Guard Handle .../-vendor/-stack/-Builder/-src/-Stack/-Stackedhttpkernel.php23
  28. Stack Stackedhttpkernel Handle .../-vendor/-Laravel/-framework/-src/-Illuminate/-Foundation/-Application.php641
  29. Illuminate Foundation Application run .../-public/-index.php49

URL page error: http://posmg.posesa.com.br/cursos/3

 <?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

  • is some search that is returning without data, see if you are not trying to pick up data from an empty return. see if this $Course->name has any data or is returning nothing

  • thanks Douglas I managed to solve

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.