Creating default object from empty value in node_build_content

Created on 10 March 2018, over 6 years ago
Updated 17 April 2024, 6 months ago

When I create a node of any content type (article, basic page), I encounter the following warning.

Warning: Creating default object from empty value in node_build_content() (line 1398 of /home/h51/data/www/site/modules/node/node.module).
Notice: Undefined property: stdClass::$nid in node_build_content() (line 1401 of /home/h51/data/www/site/modules/node/node.module).
Notice: Undefined property: stdClass::$type in _node_extract_type() (line 379 of /home/h51/data/www/site/modules/node/node.module).
Notice: Undefined property: stdClass::$nid in node_build_content() (line 1413 of /home/h51/data/www/site/modules/node/node.module).
EntityMalformedException: Missing bundle property on entity of type node. in entity_extract_ids() (line 7932 of /home/h51/data/www/site/includes/common.inc).

The error is displayed until I do not delete the node.

I'm using Drupal 7.57, MariaDB 5.5.5, Apache 2.2.22, and PHP 5.4.45.

🐛 Bug report
Status

Closed: duplicate

Version

7.0 ⚰️

Component
Node system 

Last updated about 17 hours ago

No maintainer
Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024