EE 5.1.2
When I go to add a new field, or a new channel, I get the following… like.. a lot of the same error (15 or so)
Invalid argument supplied for foreach() ee/EllisLab/ExpressionEngine/View/_shared/form/section.php, line 20
Opening the file, it looks like this:
<?php foreach ($settings as $setting) { $this->embed(‘ee:_shared/form/fieldset’, array(‘setting’ => $setting, ‘group’ => FALSE)); } ?>
Also, mixed in with those errors, I get 2 of these:
ob_end_clean(): failed to delete buffer. No buffer to delete ee/EllisLab/ExpressionEngine/Service/View/View.php, line 138
and that line looks like:
$buffer = ob_get_contents(); ob_end_clean();
return $buffer; }
Any idea how to fix this? I dont get this on a clean install, so it might be some addon I had added (maybe expresso store or freeform pro) but I figured since it was in the ellislab folder, maybe I can post here.
That’s not a fix, as any PHP errors in a view file are indicative of code further up the line not supplying expected values. Further, that will just get rewritten back to the default code when you update. Combined with the output buffer error, I suspect an installed add-on. You might var_dump()
the $settings
variable there, which could give a clue as to what’s going on, or run a debug_backtrace()
and just see directly what the cause is.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.