Skip to content

Trying to get property 'site_name' of non-object warning when editing templates #1333

@tyssen

Description

@tyssen

When editing templates in the control panel on an EE 6.0.6 site, I get a series of warnings at the top of the page:

Trying to get property 'site_name' of non-object
ee/ExpressionEngine/Model/Template/TemplateGroup.php, line 174

and I also get all the folders from default_site except for _partials copied one folder up, i.e. directly into templates.

If I remove all the added folders and go to edit another template in the CP, they get recreated again.

This is happening both locally running PHP 7.4.12 under MAMP and on a Nexcess staging server running PHP 7.4.

The site has only recently been upgraded from EE 2.11.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions