Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-8292

getContentInfo() wrong return type

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 4.6.2
    • Content
    • None
    • Yes

    Description

      Steps to reproduce:

      • Install NovaeZSEOBundle
      • Setup "display_images_in_sitemap: true" in nova_ezseo.yml
      • Open /sitemap.xml

      Example of nova_ezseo.yml

      nova_ezseo:
        system:
          default:
            default_metas:
              author: ~
              copyright: ~
              generator: ~
              MSSmartTagsPreventParsing: ~
            fieldtype_metas_identifier: ~
            fieldtype_metas:
              title:
                label: ~
                default_pattern: ~
                required: true
              description:
                label: ~
                default_pattern: ~
                minLength: ~
                maxLength: ~
              keywords:
                label: ~
                default_pattern: ~
            limit_to_rootlocation: false
            display_images_in_sitemap: true
            sitemap_excludes: ~
            robots_disallow: ~

       

      TypeError exception:

      Ibexa\Core\Repository\Values\Content\VersionInfo::getContentInfo(): Return value must be of type Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo, null returned

       

      core/src/bundle/Core/Imagine/Cache/AliasGeneratorDecorator.php - getContentInfo (line 111): $versionInfo>getContentInfo()->id

       

      caused by:

      $variation = $this->imageVariationService->getVariation($field, new VersionInfo(), 'original');

      in NovaeZSEOBundle / SitemapController.php

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              810dad6d-359c-45cc-a33c-0b1a8bf239c9@accounts.ibexa.co Aleksey Razbakov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: