UrlSlug & Versions | Argument must be of type ?int, string given #17262
Unanswered
twin-elements
asked this question in
Q&A / Support
Replies: 1 comment 1 reply
-
I believe this could be converted to an issue. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
From the database, it gets values of string type instead of int.
An exception has been thrown during the rendering of a template ("Pimcore\Model\DataObject\Data\UrlSlug::__construct(): Argument #2 ($siteId) must be of type ?int, string given, called in /vendor/pimcore/pimcore/models/DataObject/Data/UrlSlug.php on line 184").
vendor/pimcore/pimcore/models/DataObject/Data/UrlSlug.php(184): Pimcore\Model\DataObject\Data\UrlSlug->__construct('/grochowska', '0') - site id is a string instead od int
The same thing happens when retrieving the last version of an object - $versionId- is a string
pimcore/models/Element/Traits/VersionDaoTrait.php
Line 30 in 19ccfdf
Can anyone know what the problem might be?
Database serwer MariaDb 10.6.17
Beta Was this translation helpful? Give feedback.
All reactions