That's not enough information. The error says you're trying to get a property of non-object. This is usually because you have a loop where you're calling a property on an expected object, however the loop contains a value that is not an object.
Paste the view.
Hi Jason,
This is the full error:
Unhandled Exception Message:
Error rendering view: [user::profile.profile]
Trying to get property of non-object
Location:
/home/public_html/mydomain.com/storage/views/4e9f15230944744c6b0c41ee343182c6 on line 1251
Stack Trace:
#0 /home/public_html/mydomain.com/laravel/laravel.php(42): Laravel\Error::native(8, 'Trying to get p...', '/home/public_html/...', 1251) #1 /home/public_html/mydomain.com/laravel/view.php(386) : eval()'d code(1251): Laravel{closure}(8, 'Trying to get p...', '/home/public_html/...', 1251, Array) #2 /home/public_html/mydomain.com/laravel/view.php(386): eval() #3 /home/public_html/mydomain.com/laravel/blade.php(71): Laravel\View->get() #4 [internal function]: Laravel{closure}(Object(Laravel\View)) #5 /home/public_html/mydomain.com/laravel/event.php(199): call_user_func_array(Object(Closure), Array) #6 /home/public_html/mydomain.com/laravel/event.php(138): Laravel\Event::fire('laravel.view.en...', Array, true) #7 /home/public_html/mydomain.com/laravel/view.php(348): Laravel\Event::until('laravel.view.en...', Array) #8 /home/public_html/mydomain.com/laravel/view.php(590): Laravel\View->render() #9 /home/public_html/mydomain.com/laravel/response.php(268): Laravel\View->__toString() #10 /home/public_html/mydomain.com/laravel/laravel.php(180): Laravel\Response->render() #11 /home/public_html/mydomain.com/index.php(34): require('/home/public_html/...') #12 {main}
and it appear each time that I try to see a offline profile.
Thank you very much for your help
Hi, the code of this file is too long to paste here, I send you the file here so you can see: https://mega.co.nz/#!wFxgxY7C!j_jKjs5D9kUsQ61XZI-vDJePCVBhUPiBX7oiMVdzrJ4
Thank you very much
Hi again,
Here is the code of this line: <?php if($profile->user->id == Auth::user()->id): ?>
Thank you very much
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community