Open stpaultim opened 2 years ago
I'm testing with one of my recipes and am pretty sure that the problem is the code being used to create nodes. I think this is the better way to create nodes and will not generate all those notices.
$faq = new Node(
array(
'title' => st('How do I download more Backdrop recipes?'),
'field_faq_answer' => array(
LANGUAGE_NONE => array(
array(
'value' => st('<p>Recipes can be downloaded from BackdropCMS.org. On the module page <a href="https://backdropcms.org/modules?s=recipes">search for recipes</a>.</p>'),
'format' => 'filtered_html',
),
),
),
'uid' => 1,
'status' => 1,
'promote' => 0,
'type' => 'faq',
)
);
$faq->save();
I will try to submit a PR soon to fix this.
Just confirmed that this was the problem in my recipe. Working on a PR to fix this.
Enabling the views boostrap demo module is generating a bunch of PHP notices.
Here are the details for the first five of them.
I first noticed this problem with the Recipe modules that I maintain. They are generating the same errors, which leads to the obvious conclusion that these notices are being generated during the creation of either content types or of demo nodes.
I don't recall getting these in the past, but I tested on version 1.21.0 of Backdrop CMS and got the same result. Not sure if this is a problem in core or if we need to improve the way we are creating content types or nodes.