We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Getting Fatalerror: Call to a member function getFrontendClass() on a non-object in /legacy/libraries/Template.php line 1513

How Do I?

lukeparkinson's avatar
lukeparkinson
4 posts
9 years ago
lukeparkinson's avatar lukeparkinson

I was doing an update from 3.1.0 to 3.1.2 and received this error on the frontend. Backend still works as expected.

Posting here as advised on Twitter. Many thanks, Luke

       
Derek Jones's avatar
Derek Jones
7,561 posts
9 years ago
Derek Jones's avatar Derek Jones

Just before that line, can you add:

if ( ! is_object($addon))
{
    print_r($this->tag_data[$i]['class']);exit;
}

And cut and paste the output here? I suspect there is an add-on installed in the database that you may not have in your user folder.

       
lukeparkinson's avatar
lukeparkinson
4 posts
9 years ago
lukeparkinson's avatar lukeparkinson

Thanks for the heads up, it was an addon related issue.

       
IC360 (Oliver Cannell)'s avatar
IC360 (Oliver Cannell)
241 posts
about 4 years ago
IC360 (Oliver Cannell)'s avatar IC360 (Oliver Cannell)

I’ve just experienced this same error when updating an MSM site from EE5 to EE6. For me it turned out to be a missing Add-On which the Template was trying to call. I could see from the tags in the Template which Add-On was causing the problem. But I could also see the same issue highlighted in the new “Template Debug Tags” section in EE6.

Tools > Template Debug Tags
/cp/utilities/debug-tools/debug-tags

Hope this helps.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.