With generate-content.php you can't create pages or stories because there is no longer a page.module or story.module so the test if (module_exist($type)) fails.

Patch attached uses node_get_types('types') to get a list of available content types.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

seandunaway’s picture

Status: Needs review » Reviewed & tested by the community

works beautifully against head, thanks.

seandunaway’s picture

Status: Reviewed & tested by the community » Closed (duplicate)

actually, webchick has rolled a similar patch which uses a more desirable module_exists() thanks!

http://drupal.org/node/80652

seandunaway’s picture

actually, i apologize! i am new to all of this but this one looks good and is working.

i only added an if check around delete from forum as i don't have that module installed and was getting error.

seandunaway’s picture

Status: Closed (duplicate) » Needs review
AjK’s picture

Whilst joining the effort to plough the critical queue, found I could create users and comments using the generate-comment script. However, the "50 nodes" were missing (this is on a fresh install from CVS of Drupal and contribs).

The patch in #3 cured my problems and the 50 nodes were generated fine. Thx!

+1

regards,
-- AjK

dww’s picture

Status: Needs review » Fixed

tested and reviewed patch from #3. works fine. applied to TRUNK in revision 1.14.
thanks, folks.
-derek

Anonymous’s picture

Status: Fixed » Closed (fixed)