Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-24581

Creating a new content type failed with error: Failed to load '/contenttype/create/1'

    XMLWordPrintable

    Details

      Description

      Saving a content type with default identifier 'new_content_type' blocks content type creation, because the identifier is already taken, in this case it should be numbered like 'new_content_type_1' or 'new_content_type1'

      Below the log file error :

      request.CRITICAL: Uncaught PHP Exception eZ\Publish\Core\Base\Exceptions\InvalidArgumentException: "Argument 
      '$contentTypeCreateStruct' is invalid: Another ContentType with identifier 'new_content_type' exists" at 
      .../ezplatform/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/ContentTypeService.php line 786 {"exception":"[object] 
      (eZ\\Publish\\Core\\Base\\Exceptions\\InvalidArgumentException(code: 0): Argument '$contentTypeCreateStruct' is invalid: Another ContentType 
      with identifier 'new_content_type' exists at .../ezplatform/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/ContentTypeService.php:786)"} []
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              lazaro Lazaro Ferreira
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours, 21 minutes
                5h 21m