Drupal "Undefined property: stdClass::$json_content" error
I get the following errors. How can I solve the problem?
Thank you.
------
Notice: h5p_insert() (/var/www/beta/sites/all/modules/h5p/h5p.module dosyasının 402 satırı) içinde Undefined property: stdClass::$json_content.
Notice: h5p_insert() (/var/www/beta/sites/all/modules/h5p/h5p.module dosyasının 403 satırı) içinde Undefined property: stdClass::$embed_type.
Notice: h5p_insert() (/var/www/beta/sites/all/modules/h5p/h5p.module dosyasının 404 satırı) içinde Undefined property: stdClass::$disable.
Notice: h5p_insert() (/var/www/beta/sites/all/modules/h5p/h5p.module dosyasının 406 satırı) içinde Undefined property: stdClass::$main_library_id.
Warning: tincanapi_content_types_data_from_node() (/var/www/beta/sites/all/modules/tincanapi/modules/tincanapi_content_types/tincanapi_content_types.module dosyasının 70 satırı) içinde Missing argument 2 for tincanapi_content_types_data_from_node(), called in /var/www/beta/sites/all/modules/tincanapi/modules/tincanapi_content_types/tincanapi_content_types.module on line 56 and defined.
Notice: tincanapi_content_types_data_from_node() (/var/www/beta/sites/all/modules/tincanapi/modules/tincanapi_content_types/tincanapi_content_types.module dosyasının 84 satırı) içinde Undefined variable: view_mode.
Notice: h5p_insert() (/var/www/beta/sites/all/modules/h5p/h5p.module dosyasının 402 satırı) içinde Undefined property: stdClass::$json_content.
Notice: h5p_insert() (/var/www/beta/sites/all/modules/h5p/h5p.module dosyasının 403 satırı) içinde Undefined property: stdClass::$embed_type.
Notice: h5p_insert() (/var/www/beta/sites/all/modules/h5p/h5p.module dosyasının 404 satırı) içinde Undefined property: stdClass::$disable.
Notice: h5p_insert() (/var/www/beta/sites/all/modules/h5p/h5p.module dosyasının 406 satırı) içinde Undefined property: stdClass::$main_library_id.
------
WD node: PDOException: SQLSTATE[23000]: Integrity constraint [error]
violation: 1048 Column 'json_content' cannot be null: INSERT INTO
{h5p_nodes} (content_id, nid, json_content, embed_type,
main_library_id, disable, filtered, slug) VALUES
(:db_insert_placeholder_0, :db_insert_placeholder_1,
:db_insert_placeholder_2, :db_insert_placeholder_3,
:db_insert_placeholder_4, :db_insert_placeholder_5,
:db_insert_placeholder_6, :db_insert_placeholder_7); Array
(
[:db_insert_placeholder_0] => 381
[:db_insert_placeholder_1] => 358
[:db_insert_placeholder_2] =>
[:db_insert_placeholder_3] => div
[:db_insert_placeholder_4] =>
[:db_insert_placeholder_5] =>
[:db_insert_placeholder_6] =>
[:db_insert_placeholder_7] =>
)
in H5PDrupal->insertContent() (line 408 of
/var/www/beta/sites/all/modules/h5p/h5p.classes.inc).
WD menu: PDOException: SQLSTATE[23000]: Integrity constraint [error]
violation: 1048 Column 'json_content' cannot be null: INSERT INTO
{h5p_nodes} (content_id, nid, json_content, embed_type,
main_library_id, disable, filtered, slug) VALUES
(:db_insert_placeholder_0, :db_insert_placeholder_1,
:db_insert_placeholder_2, :db_insert_placeholder_3,
:db_insert_placeholder_4, :db_insert_placeholder_5,
:db_insert_placeholder_6, :db_insert_placeholder_7); Array
(
[:db_insert_placeholder_0] => 381
[:db_insert_placeholder_1] => 358
[:db_insert_placeholder_2] =>
[:db_insert_placeholder_3] => div
[:db_insert_placeholder_4] =>
[:db_insert_placeholder_5] =>
[:db_insert_placeholder_6] =>
[:db_insert_placeholder_7] =>
)
in H5PDrupal->insertContent() (line 408 of
/var/www/beta/sites/all/modules/h5p/h5p.classes.inc)
thomasmars
Tue, 03/22/2016 - 15:09
Permalink
Hi eozkeskin
It seems your server is trying to upload or save an empty H5P. Can you give some more information on what you were doing when you got this error, and the H5P you were trying to save or upload ?
If you are trying to upload an H5P it will help that you attach this H5P.
- Thomas
eozkeskin
Tue, 03/22/2016 - 15:50
Permalink
Hi thomasmars
indeed I'm not trying to save or upload any content. I'm just surfing the pages of the site.
fnoks
Wed, 03/23/2016 - 10:28
Permalink
The function beeing invoked
The function beeing invoked (h5p_insert) is the Drupal hook called when a new H5P node is created. I suspect there are something strange with your Drupal setup. In order to help you, could you please answer the following questions?
Thanks for reporting :)