chatter icon indicating copy to clipboard operation
chatter copied to clipboard

ERROR: Trying to get property 'title' of non-object (View: C:\xampp\htdocs\voyager3\resources\views\page\show.blade.php)

Open adillamokhtar opened this issue 6 years ago • 9 comments

I am developing a website which i use voyager as admin panel. When im trying to edit the pages in nav bar it gives me an error when i want to open voyager. But the front-end is working.

image

adillamokhtar avatar Jun 06 '18 07:06 adillamokhtar

Could it be the period between '-' and $page?

On Jun 6, 2018 12:11 AM, "adillamokhtar" [email protected] wrote:

I am developing a website which i use voyager as admin panel. When im trying to edit the pages in nav bar it gives me an error when i want to open voyager. But the front-end is working.

[image: image] https://user-images.githubusercontent.com/33577143/41022340-d0765e2a-699b-11e8-9d81-e47cc93528dc.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/thedevdojo/chatter/issues/214, or mute the thread https://github.com/notifications/unsubscribe-auth/ATnZTkUkKKKITZ23XuxPw2coG56-mjUaks5t54COgaJpZM4UcGku .

DangerousTod avatar Jun 07 '18 00:06 DangerousTod

What should i do with that?

adillamokhtar avatar Jun 07 '18 01:06 adillamokhtar

Probably it should be a comma

On Jun 6, 2018 6:01 PM, "adillamokhtar" [email protected] wrote:

What should i do with that?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/thedevdojo/chatter/issues/214#issuecomment-395259996, or mute the thread https://github.com/notifications/unsubscribe-auth/ATnZTtqGl7kJ8QMRQTpOm2Tryrt2DNVdks5t6HuAgaJpZM4UcGku .

DangerousTod avatar Jun 07 '18 01:06 DangerousTod

$page isn't any specific page, it is the page that it is. (title) is the title of $page. $page is a regular expression that is already equal to this.title and many more things. So, (title) could just mean title of any page but specifically the current page. I am sure this will only create new issues. My php is not strong. I hope that I was somehow helpful.

On Jun 6, 2018 6:20 PM, "Jonathan Engwall" [email protected] wrote:

Probably it should be a comma

On Jun 6, 2018 6:01 PM, "adillamokhtar" [email protected] wrote:

What should i do with that?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/thedevdojo/chatter/issues/214#issuecomment-395259996, or mute the thread https://github.com/notifications/unsubscribe-auth/ATnZTtqGl7kJ8QMRQTpOm2Tryrt2DNVdks5t6HuAgaJpZM4UcGku .

DangerousTod avatar Jun 07 '18 14:06 DangerousTod

@else @if(Auth::user()->role->id == 1)

  • Dashboard
  • @endif @if(Auth::user()->role->id == 2)
  • Dashboard
  • @endif @endguest

    AR1292 avatar Sep 20 '18 07:09 AR1292

    @foreach (Cart::content() as $item)
    item
    {{ $item->model->name }}
    {{ $item->model->details }}

    am trying to upload a new picture but this error comes trying to get property 'slug' of a non object any help please i will appriciate because i have to go for my defence tomorrow thanks

    Ismail254 avatar Dec 26 '18 16:12 Ismail254

    Trying to get property 'meta_title' of non-object (View: /home3/dencegro/public_html/resources/views/web/home.blade.php)

    Please how how do I fix this?

    Chisonm avatar Apr 09 '19 19:04 Chisonm

    Trying to get property 'title' of non-object (View: /var/www/html/tryedit/resources/views/backend/dashboard.blade.php)

    when i open the dashboard after login its showing this error

    RICHAaaaa123 avatar Dec 06 '21 11:12 RICHAaaaa123

    I came across this problem a moment ago in my Laravel code, I think THE IMPORTANT THING TO NOTE is where your 'title' is coming from, check if there is nothing wrong with your controller and make sure the route name is used correctly.

    achur00 avatar Dec 28 '21 20:12 achur00