Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove unused line in ElementSliderElement.php #49

Closed
magicsepp opened this issue Apr 2, 2022 · 1 comment
Closed

remove unused line in ElementSliderElement.php #49

magicsepp opened this issue Apr 2, 2022 · 1 comment
Assignees

Comments

@magicsepp
Copy link
Contributor

After update to 1.8.2 I got a new issue:

2022-04-01 16:06:12] request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\UndefinedFunctionError: "Attempted to call function "__unserialize" from namespace "ContaoThemesNet\ThemeComponentsBundle\Element"." at D:\laragon4\www\cto44\vendor\contao-themes-net\theme-components-bundle\src\Element\SliderElement.php line 63 {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\UndefinedFunctionError(code: 0): Attempted to call function \"__unserialize\" from namespace \"ContaoThemesNet\\ThemeComponentsBundle\\Element\". at D:\\laragon4\\www\\cto44\\vendor\\contao-themes-net\\theme-components-bundle\\src\\Element\\SliderElement.php:63)"} []

according to contao-themes-net/theme-components-bundle#4 please add
remove unused line in theme-components-bundle\src\ElementSliderElement.php

Solution

--- SliderElement_org.php	Sa Apr  2 18:07:41 2022
+++ SliderElement.php	Sa Apr  2 18:07:00 2022
@@ -63 +62,0 @@ class SliderElement extends \ContentElement
-        $this->Template->metaImg = unserialize(FilesModel::findByUuid($this->singleSRC)->meta);
@MDevster
Copy link
Contributor

MDevster commented Apr 4, 2022

fixed in version 1.3.10 of the theme components bundle

@MDevster MDevster closed this as completed Apr 4, 2022
@MDevster MDevster self-assigned this Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants