thedevdojo / chatter

Chatter is a Simple Laravel Forum Package
https://devdojo.com/forums
MIT License
898 stars 294 forks source link

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

Open adillamokhtar opened 6 years ago

adillamokhtar commented 6 years ago

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

DangerousTod commented 6 years ago

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

On Jun 6, 2018 12:11 AM, "adillamokhtar" notifications@github.com 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 .

adillamokhtar commented 6 years ago

What should i do with that?

DangerousTod commented 6 years ago

Probably it should be a comma

On Jun 6, 2018 6:01 PM, "adillamokhtar" notifications@github.com 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 commented 6 years ago

$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" engwalljonathanthereal@gmail.com wrote:

Probably it should be a comma

On Jun 6, 2018 6:01 PM, "adillamokhtar" notifications@github.com 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 .

AR1292 commented 5 years ago

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

  • Dashboard
  •             @endif
                @if(Auth::user()->role->id == 2)
                    <li><a href="{{ route('author.dashboard') }}">Dashboard</a></li>
                @endif
            @endguest
    Ismail254 commented 5 years ago
    @foreach (Cart::content() as $item)
    item
    {{ $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
    Chisonm commented 5 years ago

    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?

    RICHAaaaa123 commented 2 years ago

    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

    achur00 commented 2 years ago

    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.