CiatronicalCiatronical MemberComments: 25 Received thanks: 4 Member since: February 2017

Hey,

wenn ich auf "Zur Kasse" klicke erhalte ich folgende Symfony Exception (TypeError).

"Return value of Shopware\Storefront\Page\MetaInformation::getMetaTitle() must be of the type string, null returned"

TypeError
in vendor/shopware/storefront/Page/MetaInformation.php (line 51)
in vendor/twig/twig/src/Extension/CoreExtension.php -> getMetaTitle (line 1495)
in var/cache/dev_he672a50599da02e57bf334de57c40faa/twig/9c/9c8a35c13fc086a9a27707b720600ce1bab1b4f9c574612ee0fde728a7840b43.php twig_get_attribute (line 93)
in vendor/twig/twig/src/Template.php -> block_layout_head_inner (line 184)
in var/cache/dev_he672a50599da02e57bf334de57c40faa/twig/9c/9c8a35c13fc086a9a27707b720600ce1bab1b4f9c574612ee0fde728a7840b43.php -> displayBlock (line 64)
in vendor/twig/twig/src/Template.php -> doDisplay (line 407)
in vendor/twig/twig/src/Template.php -> displayWithErrorHandling (line 380)
in var/cache/dev_he672a50599da02e57bf334de57c40faa/twig/b6/b677033c1ffad421a8f3d1b4e7afca4d981f06a1b7929a1f6ed0290645ffb6bc.php -> display (line 163)
in vendor/twig/twig/src/Template.php -> block_base_head (line 184)
in var/cache/dev_he672a50599da02e57bf334de57c40faa/twig/b6/b677033c1ffad421a8f3d1b4e7afca4d981f06a1b7929a1f6ed0290645ffb6bc.php -> displayBlock (line 88)
in vendor/twig/twig/src/Template.php -> doDisplay (line 407)
in vendor/twig/twig/src/Template.php -> displayWithErrorHandling (line 380)
in var/cache/dev_he672a50599da02e57bf334de57c40faa/twig/f6/f6207b05bb62b4b6dac2fafa344e1a5d8507bd446d9de15ed5e925237d656233.php -> display (line 61)
in vendor/twig/twig/src/Template.php -> doDisplay (line 407)
in vendor/twig/twig/src/Template.php -> displayWithErrorHandling (line 380)
in var/cache/dev_he672a50599da02e57bf334de57c40faa/twig/48/48ae9a5ec536d0c129b1e988adb35f581fbca7350ef19b76c50f209b8fcbd06f.php -> display (line 64)
in vendor/twig/twig/src/Template.php -> doDisplay (line 407)
in vendor/twig/twig/src/Template.php -> displayWithErrorHandling (line 380)
in var/cache/dev_he672a50599da02e57bf334de57c40faa/twig/94/9436f6d579d4c62399c5115e6df27b985f2367879dadded158902fbfe38462b4.php -> display (line 48)
in vendor/twig/twig/src/Template.php -> doDisplay (line 407)
in vendor/twig/twig/src/Template.php -> displayWithErrorHandling (line 380)
in vendor/twig/twig/src/Template.php -> display (line 392)
in vendor/twig/twig/src/TemplateWrapper.php -> render (line 45)
in vendor/twig/twig/src/Environment.php -> render (line 318)
in vendor/symfony/framework-bundle/Controller/ControllerTrait.php -> render (line 234)
in vendor/shopware/storefront/Controller/StorefrontController.php -> render (line 34)
in vendor/shopware/storefront/Controller/RegisterController.php -> renderStorefront (line 133)
in vendor/symfony/http-kernel/HttpKernel.php -> checkoutRegisterPage (line 146)
in vendor/symfony/http-kernel/HttpKernel.php -> handleRaw (line 68)
in vendor/symfony/http-kernel/Kernel.php -> handle (line 201)
in vendor/shopware/core/HttpKernel.php -> handle (line 148)
in vendor/shopware/core/HttpKernel.php -> doHandle (line 77)
HttpKernel->handle(object(Request)) in public/index.php (line 75) 

Log (Error)

CRITICAL 16:13:49 	php 	Uncaught Error: Return value of Shopware\Storefront\Page\MetaInformation::getMetaTitle() must be of the type string, null returned

{
    "exception": {}
}

CRITICAL 16:13:49 	request 	Uncaught PHP Exception TypeError: "Return value of Shopware\Storefront\Page\MetaInformation::getMetaTitle() must be of the type string, null returned" at /var/www/clients/client1/web7/web/vendor/shopware/storefront/Page/MetaInformation.php line 51

{
    "exception": {}
}

Woran kann das liegen?

Gruß Ronny

Comments

  • CiatronicalCiatronical MemberComments: 25 Received thanks: 4 Member since: February 2017

    Um den Fehler zu beheben muss eine Typkonvertierung durchgeführt werden.

    In vendor/shopware/storefront/Page/MetaInformation.php Zeile 51

    return (string)$this->metaTitle;

Sign In or Register to comment.