Community

Error creating content: EntityMalformedException

I am developing a new site w/ modules Ubercart, ctools, custom Search, entity, rules, token, and views. I haven't really done any module edits. When I went to create a new piece of content 'Basic Page', I got the following error:

Notice: Undefined property: stdClass::$type in _node_extract_type() (line 371 of /var/www/html/edworldexchange.com/modules/node/node.module).
Notice: Undefined property: stdClass::$nid in node_build_content() (line 1366 of /var/www/html/edworldexchange.com/modules/node/node.module).
EntityMalformedException: Missing bundle property on entity of type node. in entity_extract_ids() (line 7633 of /var/www/html/edworldexchange.com/includes/common.inc).

Which errors the entire site. I can create the content when it's not published with no problem, but as soon as it publishes I get the error. Does it have anything to do with the fact that the domain is a https instead of http? Been wrestling with this all morning, any help would be MUCH appreciated..

UPDATE: I can add a product successfully, but not basic page, article, or any other custom content type...

UPDATE: I can add a 'Basic Page' or 'Article' when I change the theme... but as soon as I go back to the other theme it errors again

Still can't figure this out...

Comments

bump - anyone?

bump - anyone?

I am getting quite a few notices in my error log similar to what you are experiencing ($node->nid undefined which leads to all kinds of other errors) ever since I upgraded core from 7.18 to 7.19.

I have yet to track down what exactly is causing the issue since it only happens occasionally (though frequently). No one uses the site currently, but the Feeds module constantly imports a new node or two every hour or so. After one such import, a string of these notices/errors occur, but not every time.

Very annoying!

I've had the exact same

I've had the exact same problem. After creating new content (type basic page), I received the same error. When changing theme the error disappeared (using Zen).

In the end I disabled a custom view I had made and that solved the problem for me. When viewing this custom view, the errormessage said there was a AJAX HTTP error. HTTP errorcode 500.

So the solution for me was to disable the custom view I made. Hope this is helpful for other users.