I started getting these errors when I try and update a template. Using EE v2.11.1 Can anyone shed some light on what is causing this?
A PHP Error was encountered
Severity: Notice
Message: Undefined index: template_notes
Filename: cp/design.php
Line Number: 2103
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/user/admin/codeigniter/system/core/Exceptions.php:170)
Filename: core/EE_Input.php
Line Number: 212
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/user/admin/codeigniter/system/core/Exceptions.php:170)
Filename: libraries/Functions.php
Line Number: 446
here is the code from cp/design.php
$this->db->query($this->db->update_string('exp_templates', array('template_data' => $_POST['template_data'], 'edit_date' => $this->localize->now, 'last_author_id' => $this->session->userdata['member_id'], 'save_template_file' => $save_template_file, 'template_notes' => $_POST['template_notes']), "template_id = '$template_id'"));
any kind person out there willing to offer some assistance? Just upgraded to EE 2.11.1 and still have the error
Having Save Template Revisions set to yes or no does not fix the issue Same with Save Templates as Files yes or no same issue
Yep- it’s a weird one. I’ll put a note in the troubleshooting docs to help folks who run into it in the future.
I think it’s a Suhosin filter setting, though I’m not 100% sure which one.
Grab your system admin/host, let them know that empty post data has the key dropped from $_POST and see if they can tweak the server security filters- most likely Suhosin- so that doesn’t happen.
You really don’t want it happening- I know in one of the other cases I ran into, it was causing a problem with a shopping cart too. So definitely could be unintended consequences if left as it is.
And if they tell you the exact setting that did the trick, I’d love to know. Reading the Suhosin config, I’m still not sure.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.