0

This actually started when I was upgrading a site from EE2. I got it to EE5 and started seeing some odd notices and warnings. So I upgraded to EE6 hoping to fix the issue, but the warnings persist, and I can't pin down the cause.

Notice
Trying to get property 'site_name' of non-object

ee/ExpressionEngine/Model/Template/TemplateGroup.php, line 174

Notice
Trying to get property 'site_name' of non-object

ee/ExpressionEngine/Model/Template/TemplateGroup.php, line 174

Warning
Cannot modify header information - headers already sent by (output started at ee/legacy/core/Exceptions.php:120)

ee/ExpressionEngine/Boot/boot.common.php, line 477

I've tried adding a second Super Admin to see if it was an issue with the legacy member account, but that wasn't it. Any thoughts?

11
  • Can you try to clear caches and try again?
    – ZealousWeb
    Commented Jun 2, 2021 at 5:31
  • Do you check 'exp_sites' table have the entry for your 'site_id'?
    – ZealousWeb
    Commented Jun 2, 2021 at 5:37
  • Yes. Cleared caches. No change. site_id, site_label, and site_name all have something. site_description is null, but that's common. Commented Jun 2, 2021 at 13:42
  • 1
    Can you try disabling extensions and seeing you still get those warnings? $config['allow_extensions'] = 'n'; docs.expressionengine.com/latest/general/… If the warnings go away after that, then you can disable your extensions and add them back one by one until your find the culprit. Also for reference, what version of PHP are you running? Commented Jun 3, 2021 at 14:21
  • 1
    EE 6.0.6. At this point, I'm thinking it's a server misconfiguration somewhere, since no one else is seeing these errors. Commented Jun 14, 2021 at 15:43

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.