When I try to generate some articles (so I've only selected the 'article' content type when generating) with devel generate, I get the following error:

Notice: Undefined index: und in ns_article_node_presave() (line 15 of /home5/hehenkam/public_html/ns2/profiles/nodestream/modules/ns_core/features/ns_article/ns_article.module).
Notice: Undefined index: und in ns_article_node_presave() (line 16 of /home5/hehenkam/public_html/ns2/profiles/nodestream/modules/ns_core/features/ns_article/ns_article.module).
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'field_ns_article_media_display' cannot be null: INSERT INTO {field_data_field_ns_article_media} (entity_type, entity_id, revision_id, bundle, delta, language, field_ns_article_media_fid, field_ns_article_media_display, field_ns_article_media_description) 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, :db_insert_placeholder_8); Array ( [:db_insert_placeholder_0] => node [:db_insert_placeholder_1] => 34 [:db_insert_placeholder_2] => 37 [:db_insert_placeholder_3] => ns_article [:db_insert_placeholder_4] => 0 [:db_insert_placeholder_5] => und [:db_insert_placeholder_6] => 22 [:db_insert_placeholder_7] => [:db_insert_placeholder_8] => ) in field_sql_storage_field_storage_write() (line 448 of /home5/hehenkam/public_html/ns2/modules/field/modules/field_sql_storage/field_sql_storage.module).

Is this a known problem? It's quite some work to fill up a website when you need to demo it for a client, so devel generate is a huge time-saver. Any alternative modules if devel generate doesn't work for this?

Comments

fabsor’s picture

Category: support » bug

I consider this a bug. We actually made some code for devel generate that should generate articles a bit prettier, but that can apparantly go wrong.

mixhael’s picture

Ok, thanks for that.

I have been looking for an alternative for 'devel generate' though without luck. Are you aware of one that does not enable you to bulk generate new nodes, but makes it possible to -when you are in a create new node screen, any of them- to click a button next text and images fields to automatically generate dummy text and images? So a module that enables you to very quickly publish a single node with slightly more controll?

fabsor’s picture

I tried devel out and I had no problems with it, so I have to ask you a few questions:

* Which NodeStream features are on?
* Do you use multiple languages? if so, which ones and how many?

mixhael’s picture

Version 7.x-2.0-alpha11

Two languages: english and kinyarwanda