Content type names can contain underscores, but not hyphens. However, in content_types.inc, underscores are converted into hyphens when constructing the URL of create content pages?! After replacing underscores in content names with hyphens:

ec_product.module line 398

      $type_url_str = str_replace('_', '-', $type);
      $out = '<dt>'. l($name, "node/add/$type_url_str/$ptype", array('title' => t('Add a !s.',
        array('!s' => $name)))) .'</dt>';

links at /node/add/$type/listing for content type names with underscores work as expected.

Comments

gordon’s picture

Status: Active » Fixed

Thanks for pointing this out. Your solution only fixed the first occurance. I have gone through the product and product types to fix this issue.

Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.