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

Warnings and Notices in EE6

Development and Programming

Marketing Alliance, Inc.'s avatar
Marketing Alliance, Inc.
156 posts
4 years ago
Marketing Alliance, Inc.'s avatar Marketing Alliance, Inc.

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 only see this when editing a template or initiating a system change, like adjusting a member group. Everything still works, but these warning messages persist. One odd thing is that I don’t see the error messages when editing a snippet or a variable.

I’ve run the server wizard, and it did not flag anything other than the lack of URL Segment Support.

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. I’ve tried disabling all add-ons and extensions, but that didn’t work.

Currently running EE 6.0.6 with PHP 7.4.19

Any thoughts?

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

I have the same problem. The error appears to be related to multi-site settings. My site I had set as multi in the past, but now is a single site set-up, I wonder if that is the cause.

       
SiteWaves's avatar
SiteWaves
21 posts
one year ago
SiteWaves's avatar SiteWaves

I just updated a 5.2.2 site to 6.4.16 and I’m getting the same error, in templates and roles. I was wondering if you had found the issue in your case?

       
Marketing Alliance, Inc.'s avatar
Marketing Alliance, Inc.
156 posts
one year ago
Marketing Alliance, Inc.'s avatar Marketing Alliance, Inc.

No, no solution. I suspect it’s a hosting configuration issue, since this has been an isolated incident with separate hosting. We have upgraded many sites to EE6 and EE7 at this point, and I’ve never seen the issue again. For that one site, I wound up using the “MX CP CSS & JS” add-on to adjust the system CSS to hide the warnings. If you track down anything, please let us know.

       
SiteWaves's avatar
SiteWaves
21 posts
one year ago
SiteWaves's avatar SiteWaves

I had posted a ticket on GitHub and got a reply that helped resolve my issue. Within the exp_template_groups table in the db, there should only be “1” as site id for each record, assuming you do not run MSM. In my case I had a template group from an addon, mistakenly uploaded to above the default_site template group folder. That gave that group an id of 0 in the db table. Moving that group to within the default_site folder, and then changing the id of that group to 1 in the db has resolved the issue. Hope that helps in your case.

       

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.