Crud: Call to undefined method Backpack\CRUD\CrudPanel::getHeading()

Created on 23 Nov 2018  路  4Comments  路  Source: Laravel-Backpack/CRUD

Bug report

Cannot find method getHeading when setting custom list view

What I did:

Added this line of code on the CRUD controller:
$this->crud->setListView('vendor.crud.list');

Add a new file on my directory views/vendor/crud/list.blade.php where the list.blade.php file is from https://github.com/Laravel-Backpack/CRUD/blob/master/src/resources/views/list.blade.php

What I expected to happen:

Should show the list but rendered the custom file.

What happened:

Error: Call to undefined method Backpack\CRUD\CrudPanel::getHeading() (View: {my-directory-here}\inventory\resources\views\vendor\crudlist.blade.php)

What I've already tried to fix it:

NONE

Backpack, Laravel, PHP, DB version:

"php": "^7.1.3",
"backpack/crud": "^3.4",
"backpack/permissionmanager": "^3.12",
"fideloper/proxy": "^4.0",
"laravel/framework": "5.7.*",
"laravel/tinker": "^1.0"

triage

Most helpful comment

If you retrograded from 3.5 to 3.4, run : php artisan view:clear (got the same error today)

All 4 comments

Hello there! Thanks for opening your first issue on this repo!

Just a heads-up: Here at Backpack we use Github Issues only for tracking bugs. Talk about new features is also acceptable. This helps _a lot_ in keeping our focus on improving Backpack. If you issue is not a bug/feature, please help us out by closing the issue yourself and posting in the appropriate medium (see below). If you're not sure where it fits, it's ok, a community member will probably reply to help you with that.

Backpack communication mediums:

  • Bug Reports, Feature Requests - Github Issues (here);
  • Quick help (_How do I do X_) - Gitter Chatroom;
  • Long questions (_I have done X and Y and it won't do Z wtf_) - Stackoverflow, using the backpack-for-laravel tag;

Please keep in mind Backpack offers no official / paid support. Whatever help you receive here, on Gitter, Slack or Stackoverflow is thanks to our awesome _awesome_ community members, who give up some of their time to help their peers. If you want to join our community, just start pitching in. We take pride in being a welcoming bunch.

Thank you!

--
Justin Case
The Backpack Robot

I think getHeading() was introduced in 3.5 and you are using 3.4 with a list.blade.php from 3.5 version.

Let me know if that's the problem.

BINGO @pxpm ! :-)) I think so too. @neilodiaz let us know if it wasn't that and we'll reopen this. Cheers! Thank you @pxpm !

If you retrograded from 3.5 to 3.4, run : php artisan view:clear (got the same error today)

Was this page helpful?
0 / 5 - 0 ratings