# Fehler in Shopware Vendor-Plugin/Library ? / Value is not an integer or a number castable to integer

**URL:** <https://forum.shopware.com/t/fehler-in-shopware-vendor-plugin-library-value-is-not-an-integer-or-a-number-castable-to-integer/53664>\
**Category:** Programmierung\
**Created:** [22. Juni 2018 um 12:22 UTC](https://forum.shopware.com/t/fehler-in-shopware-vendor-plugin-library-value-is-not-an-integer-or-a-number-castable-to-integer/53664 "2018-06-22T12:22:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shopwareuser12345](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@shopwareuser12345](https://forum.shopware.com/u/shopwareuser12345)\
**Post date:** [22. Juni 2018 um 12:22 UTC](https://forum.shopware.com/t/fehler-in-shopware-vendor-plugin-library-value-is-not-an-integer-or-a-number-castable-to-integer/53664/1 "2018-06-22T12:22:26Z")

</div>

Hallo,

wer kann mir helfen, folgenden Fehler zu beheben, der seit dem Update auf 5.4.3 in meinen Error Logs aufläuft… bzw. wer kann mir sagen, was ich korrigieren muss um diesen Fehler abzustellen?

**Danke für jeden TIPP!**

&nbsp;

**StackTrace:**

```
Assert\InvalidArgumentException: Value "" is not an integer or a number castable to integer. in /html/shopware/vendor/beberlei/assert/lib/Assert/Assertion.php:218
Stack trace:
#0 /html/shopware/vendor/beberlei/assert/lib/Assert/Assertion.php(391): Assert\Assertion::createException('', 'Value "" is not...', 12, NULL)
#1 [internal function]: Assert\Assertion::integerish('')
#2 /html/shopware/vendor/beberlei/assert/lib/Assert/Assertion.php(1500): call_user_func_array(Array, Array)
#3 /html/shopware/engine/Shopware/Bundle/SearchBundle/Condition/CategoryCondition.php(47): Assert\Assertion::__callStatic('Integerish', Array)
#4 /html/shopware/engine/Shopware/Bundle/SearchBundle/CriteriaRequestHandler/CoreCriteriaRequestHandler.php(110): Shopware\Bundle\SearchBundle\Condition\CategoryCondition->__construct(Array)
#5 /html/shopware/engine/Shopware/Bundle/SearchBundle/CriteriaRequestHandler/CoreCriteriaRequestHandler.php(83): Shopware\Bundle\SearchBundle\CriteriaRequestHandler\CoreCriteriaRequestHandler->addCategoryCondition(Object(Enlight_Controller_Request_RequestHttp), Object(Shopware\Bundle\SearchBundle\Criteria))
#6 /html/shopware/engine/Shopware/Bundle/SearchBundle/StoreFrontCriteriaFactory.php(284): Shopware\Bundle\SearchBundle\CriteriaRequestHandler\CoreCriteriaRequestHandler->handleRequest(Object(Enlight_Controller_Request_RequestHttp), Object(Shopware\Bundle\SearchBundle\Criteria), Object(Shopware\Bundle\StoreFrontBundle\Struct\ShopContext))
#7 /html/shopware/engine/Shopware/Bundle/SearchBundle/StoreFrontCriteriaFactory.php(129): Shopware\Bundle\SearchBundle\StoreFrontCriteriaFactory->createCriteriaFromRequest(Object(Enlight_Controller_Request_RequestHttp), Object(Shopware\Bundle\StoreFrontBundle\Struct\ShopContext))
#8 /html/shopware/engine/Shopware/Controllers/Frontend/Listing.php(261): Shopware\Bundle\SearchBundle\StoreFrontCriteriaFactory->createListingCriteria(Object(Enlight_Controller_Request_RequestHttp), Object(Shopware\Bundle\StoreFrontBundle\Struct\ShopContext))
#9 /html/shopware/engine/Shopware/Controllers/Frontend/Listing.php(243): Shopware_Controllers_Frontend_Listing->hasProducts('', Object(Shopware\Bundle\StoreFrontBundle\Struct\ShopContext), NULL)
#10 /html/shopware/engine/Shopware/Controllers/Frontend/Listing.php(56): Shopware_Controllers_Frontend_Listing->getEmotionConfiguration('', false, NULL)
#11 /html/shopware/engine/Library/Enlight/Controller/Action.php(193): Shopware_Controllers_Frontend_Listing->indexAction()
#12 /html/shopware/engine/Library/Enlight/Controller/Dispatcher/Default.php(549): Enlight_Controller_Action->dispatch('indexAction')
#13 /html/shopware/engine/Library/Enlight/Controller/Front.php(222): Enlight_Controller_Dispatcher_Default->dispatch(Object(Enlight_Controller_Request_RequestHttp), Object(Enlight_Controller_Response_ResponseHttp))
#14 /html/shopware/engine/Shopware/Kernel.php(215): Enlight_Controller_Front->dispatch()
#15 /html/shopware/vendor/symfony/http-kernel/HttpCache/HttpCache.php(486): Shopware\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#16 /html/shopware/engine/Shopware/Components/HttpCache/AppCache.php(268): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL)
#17 /html/shopware/vendor/symfony/http-kernel/HttpCache/HttpCache.php(443): Shopware\Components\HttpCache\AppCache->forward(Object(Symfony\Component\HttpFoundation\Request), true)
#18 /html/shopware/vendor/symfony/http-kernel/HttpCache/HttpCache.php(339): Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch(Object(Symfony\Component\HttpFoundation\Request), true)
#19 /html/shopware/engine/Shopware/Components/HttpCache/AppCache.php(189): Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup(Object(Symfony\Component\HttpFoundation\Request), true)
#20 /html/shopware/vendor/symfony/http-kernel/HttpCache/HttpCache.php(205): Shopware\Components\HttpCache\AppCache->lookup(Object(Symfony\Component\HttpFoundation\Request), true)
#21 /html/shopware/engine/Shopware/Components/HttpCache/AppCache.php(116): Symfony\Component\HttpKernel\HttpCache\HttpCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#22 /html/shopware/shopware.php(122): Shopware\Components\HttpCache\AppCache->handle(Object(Symfony\Component\HttpFoundation\Request))
#23 {main}

```

&nbsp;

**Zugehöriger Request:**

```
 { "uri": "/cat/index/sCategory/", "method": "GET", "query": { "module": "frontend", "controller": "cat", "action": "index", "sCategory": "" }, "post": [] }
```

---

<div class="post-metadata">

**Author:** ![sofi-3](https://avatars.discourse-cdn.com/v4/letter/s/fbc32d/32.png) [@sofi-3](https://forum.shopware.com/u/sofi-3)\
**Post date:** [28. Juni 2018 um 07:07 UTC](https://forum.shopware.com/t/fehler-in-shopware-vendor-plugin-library-value-is-not-an-integer-or-a-number-castable-to-integer/53664/2 "2018-06-28T07:07:27Z")

</div>

Hallo,

ich möchte mich hier anschliessen, habe exakt den identischen Fehler in Version 5.4.4.  
Hat evtl. jemand einen Hinweis auf die Ursache?

Danke

---

<div class="post-metadata">

**Author:** ![h\_lohaus](https://avatars.discourse-cdn.com/v4/letter/h/a587f6/32.png) [@h\_lohaus](https://forum.shopware.com/u/h_lohaus)\
**Post date:** [28. Juni 2018 um 07:17 UTC](https://forum.shopware.com/t/fehler-in-shopware-vendor-plugin-library-value-is-not-an-integer-or-a-number-castable-to-integer/53664/3 "2018-06-28T07:17:52Z")

</div>

Hi,

wie sieht der Referrer dazu aus?

Laut der Fehlermeldung und wie ich es sehe, ist der Link defekt.

Es fehlt die ID.

Gruß Heiner
