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

Fatal error when creating content type without "names" attribute

    XMLWordPrintable

    Details

      Description

      Creating a content type through the API without defining the "names" attribute throws the following error:

      PHP Catchable fatal error:  Argument 1 passed to eZ\Publish\Core\Persistence\Legacy\Content\Language\MaskGenerator::generateLanguageMask() must be an array, null given, called in /var/www/ezp5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/Type/Gateway/EzcDatabase.php on line 398 and defined in /var/www/ezp5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/Language/MaskGenerator.php on line 43
      

      Script: https://gist.github.com/MarcosLoureiro/fcb217f5a1dfa31684f1

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              marcos.loureiro-obsolete@ez.no Marcos Loureiro (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 1 day, 6 hours, 40 minutes
                  1d 6h 40m