- Issue created by @astutonet
- π§π·Brazil astutonet Sao Paulo, SP
I still have this issue and haven't gotten any answers yet. I'll try to be more objective in my explanations and questions and if anyone can help by just answering whether it's possible to upgrade from a smaller version to a larger one, that would help a lot. Let's go:
I am upgrading a website from Drupal 9.5.11 to Drupal 10.1.5.
Version D9 has the Owl Carousel 8.x-1.0-beta1 module installed and functional. The first version compatible with D9 and D10 is Owl Carousel 8.x-2.0.
I understand that, to upgrade between Drupal versions, it would initially be necessary to upgrade the D9 version, from Owl Carousel 8.x-1.0-beta1 to Owl Carousel 8.x-2.0, and then migrate the site for the larger version of Drupal
I already tried to update Owl Carousel 8.x-1.0-beta1 to Owl Carousel 8.x-2.0 by simply running the Composer commands, but after the update, the pages where the carousels are displayed were broken and are not displayed .
Therefore, I need to know: Is it possible to update between versions of the Owl Carousel module? Is there any literature or tutorials on this subject? Can anyone help?
Thanks!
- π§π·Brazil astutonet Sao Paulo, SP
I just did some tests to upgrade from version 8.x-1.0-beta1 to something else compatible with Drupal 10 and the results were as follows:
From: 8.x-1.0-beta1 To: 8.x-1.x-dev - Error
From: 8.x-1.0-beta1 To: 8.x-2.0 - Error
From: 8.x-1.0-beta1 To: 8.x-2.x-dev - Error
From: 8.x-1.0-beta1 To: 3.0.1 - Error
From: 8.x-1.0-beta1 To: 3.0.x-dev - ErrorThe "Error" reported above means that pages containing carousels were broken after the update. At the end of the work, I reverted to version 8.x-1.0-beta1 and the pages with carousels started working again.
This is the dblog bug report for version 3.0.1:
Error: Cannot use a scalar value as an array in _owlcarousel_format_settings() (line 113 of C:\wamp64\www\nine\modules\contrib\owlcarousel\owlcarousel.module) #0 C:\wamp64\www\nine\modules\contrib\owlcarousel\owlcarousel.module(82): _owlcarousel_format_settings(Array) #1 [internal function]: template_preprocess_owlcarousel_views(Array, 'owlcarousel_vie...', Array) #2 C:\wamp64\www\nine\core\lib\Drupal\Core\Theme\ThemeManager.php(287): call_user_func_array('template_prepro...', Array) #3 C:\wamp64\www\nine\core\lib\Drupal\Core\Render\Renderer.php(433): Drupal\Core\Theme\ThemeManager->render('owlcarousel_vie...', Array) #4 C:\wamp64\www\nine\core\lib\Drupal\Core\Render\Renderer.php(446): Drupal\Core\Render\Renderer->doRender(Array) #5 C:\wamp64\www\nine\core\lib\Drupal\Core\Render\Renderer.php(204): Drupal\Core\Render\Renderer->doRender(Array, false) #6 C:\wamp64\www\nine\core\lib\Drupal\Core\Template\TwigExtension.php(479): Drupal\Core\Render\Renderer->render(Array) #7 C:\wamp64\www\nine\sites\default\files\php\twig\6536e0592211d_views-view.html.twig_qAhA5-fNViV6OO6Yglw6ZPz1x\mDth7fr55f7IOQVRFtDf7act7FhKIG3d-yuaMNcyGkA.php(110): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true) #8 C:\wamp64\www\nine\vendor\twig\twig\src\Template.php(405): __TwigTemplate_6bab40e519c296e8f0e118ad16056273->doDisplay(Array, Array) #9 C:\wamp64\www\nine\vendor\twig\twig\src\Template.php(378): Twig\Template->displayWithErrorHandling(Array, Array) #10 C:\wamp64\www\nine\vendor\twig\twig\src\Template.php(390): Twig\Template->display(Array) #11 C:\wamp64\www\nine\core\themes\engines\twig\twig.engine(55): Twig\Template->render(Array) #12 C:\wamp64\www\nine\core\lib\Drupal\Core\Theme\ThemeManager.php(384): twig_render_template('themes/contrib/...', Array) #13 C:\wamp64\www\nine\core\lib\Drupal\Core\Render\Renderer.php(433): Drupal\Core\Theme\ThemeManager->render('views_view', Array) #14 C:\wamp64\www\nine\core\lib\Drupal\Core\Render\Renderer.php(446): Drupal\Core\Render\Renderer->doRender(Array) #15 C:\wamp64\www\nine\core\lib\Drupal\Core\Render\Renderer.php(204): Drupal\Core\Render\Renderer->doRender(Array, false) #16 C:\wamp64\www\nine\core\lib\Drupal\Core\Template\TwigExtension.php(479): Drupal\Core\Render\Renderer->render(Array) #17 C:\wamp64\www\nine\sites\default\files\php\twig\6536e0592211d_block.html.twig_uMakzRQ6X9ypqhBPR5gF2MJ-R\EZKKRWKGJ3-WETr7_af7MRjAH643SMXO5vH4XF5wi88.php(82): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true) #18 C:\wamp64\www\nine\vendor\twig\twig\src\Template.php(182): __TwigTemplate_352b028e7742cc6ac04770e396036c0a->block_content(Array, Array) #19 C:\wamp64\www\nine\sites\default\files\php\twig\6536e0592211d_block.html.twig_uMakzRQ6X9ypqhBPR5gF2MJ-R\EZKKRWKGJ3-WETr7_af7MRjAH643SMXO5vH4XF5wi88.php(69): Twig\Template->displayBlock('content', Array, Array) #20 C:\wamp64\www\nine\vendor\twig\twig\src\Template.php(405): __TwigTemplate_352b028e7742cc6ac04770e396036c0a->doDisplay(Array, Array) #21 C:\wamp64\www\nine\vendor\twig\twig\src\Template.php(378): Twig\Template->displayWithErrorHandling(Array, Array) #22 C:\wamp64\www\nine\vendor\twig\twig\src\Template.php(390): Twig\Template->display(Array) #23 C:\wamp64\www\nine\core\themes\engines\twig\twig.engine(55): Twig\Template->render(Array) #24 C:\wamp64\www\nine\core\lib\Drupal\Core\Theme\ThemeManager.php(384): twig_render_template('themes/contrib/...', Array) #25 C:\wamp64\www\nine\core\lib\Drupal\Core\Render\Renderer.php(433): Drupal\Core\Theme\ThemeManager->render('block', Array) #26 C:\wamp64\www\nine\core\lib\Drupal\Core\Render\Renderer.php(446): Drupal\Core\Render\Renderer->doRender(Array) #27 C:\wamp64\www\nine\core\lib\Drupal\Core\Render\Renderer.php(204): Drupal\Core\Render\Renderer->doRender(Array, false) #28 C:\wamp64\www\nine\core\lib\Drupal\Core\Template\TwigExtension.php(479): Drupal\Core\Render\Renderer->render(Array) #29 C:\wamp64\www\nine\sites\default\files\php\twig\6536e0592211d_blb-section.html.twig_5G8_BnXjTXzU7BeMrMiS7vdkW\eEWMrLMaD1ZFFzkTA7bqrjYdYms8o7uJmIQzz3ZvbhU.php(71): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true) #30 C:\wamp64\www\nine\vendor\twig\twig\src\Template.php(405): __TwigTemplate_f5d281bd812f78a40c694e3b6f37bd25->doDisplay(Array, Array) #31 C:\wamp64\www\nine\vendor\twig\twig\src\Template.php(378): Twig\Template->displayWithErrorHandling(Array, Array) #32 C:\wamp64\www\nine\vendor\twig\twig\src\Template.php(390): Twig\Template->display(Array) #33 C:\wamp64\www\nine\core\themes\engines\twig\twig.engine(55): Twig\Template->render(Array) #34 C:\wamp64\www\nine\core\lib\Drupal\Core\Theme\ThemeManager.php(384): twig_render_template('modules/contrib...', Array) #35 C:\wamp64\www\nine\core\lib\Drupal\Core\Render\Renderer.php(433): Drupal\Core\Theme\ThemeManager->render('blb_section', Array) #36 C:\wamp64\www\nine\core\lib\Drupal\Core\Render\Renderer.php(446): Drupal\Core\Render\Renderer->doRender(Array) #37 C:\wamp64\www\nine\core\lib\Drupal\Core\Render\Renderer.php(446): Drupal\Core\Render\Renderer->doRender(Array) #38 C:\wamp64\www\nine\core\lib\Drupal\Core\Render\Renderer.php(204): Drupal\Core\Render\Renderer->doRender(Array, false) #39 C:\wamp64\www\nine\core\lib\Drupal\Core\Template\TwigExtension.php(479): Drupal\Core\Render\Renderer->render(Array) #40 C:\wamp64\www\nine\sites\default\files\php\twig\6536e0592211d_node.html.twig_uiQlZB8goTiETDhFTVSl7UE_9\NKRmiDpdGOTtyG2Sf4RFaFGNJqkWfJN96nz2FU8yhP0.php(111): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true) #41 C:\wamp64\www\nine\vendor\twig\twig\src\Template.php(405): __TwigTemplate_8d1413e44e75b8c7cd8d7d296ca8d3fb->doDisplay(Array, Array) #42 C:\wamp64\www\nine\vendor\twig\twig\src\Template.php(378): Twig\Template->displayWithErrorHandling(Array, Array) #43 C:\wamp64\www\nine\vendor\twig\twig\src\Template.php(390): Twig\Template->display(Array) #44 C:\wamp64\www\nine\core\themes\engines\twig\twig.engine(55): Twig\Template->render(Array) #45 C:\wamp64\www\nine\core\lib\Drupal\Core\Theme\ThemeManager.php(384): twig_render_template('themes/contrib/...', Array) #46 C:\wamp64\www\nine\core\lib\Drupal\Core\Render\Renderer.php(433): Drupal\Core\Theme\ThemeManager->render('node', Array) #47 C:\wamp64\www\nine\core\lib\Drupal\Core\Render\Renderer.php(204): Drupal\Core\Render\Renderer->doRender(Array, false) #48 C:\wamp64\www\nine\core\lib\Drupal\Core\Render\MainContent\HtmlRenderer.php(242): Drupal\Core\Render\Renderer->render(Array, false) #49 C:\wamp64\www\nine\core\lib\Drupal\Core\Render\Renderer.php(580): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() #50 C:\wamp64\www\nine\core\lib\Drupal\Core\Render\MainContent\HtmlRenderer.php(235): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #51 C:\wamp64\www\nine\core\lib\Drupal\Core\Render\MainContent\HtmlRenderer.php(132): Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch)) #52 C:\wamp64\www\nine\core\lib\Drupal\Core\EventSubscriber\MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch)) #53 [internal function]: Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #54 C:\wamp64\www\nine\core\lib\Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher.php(142): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #55 C:\wamp64\www\nine\vendor\symfony\http-kernel\HttpKernel.php(174): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view') #56 C:\wamp64\www\nine\vendor\symfony\http-kernel\HttpKernel.php(81): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #57 C:\wamp64\www\nine\core\lib\Drupal\Core\StackMiddleware\Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #58 C:\wamp64\www\nine\core\lib\Drupal\Core\StackMiddleware\KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #59 C:\wamp64\www\nine\core\modules\page_cache\src\StackMiddleware\PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #60 C:\wamp64\www\nine\core\modules\page_cache\src\StackMiddleware\PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #61 C:\wamp64\www\nine\core\modules\ban\src\BanMiddleware.php(50): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #62 C:\wamp64\www\nine\core\lib\Drupal\Core\StackMiddleware\ReverseProxyMiddleware.php(48): Drupal\ban\BanMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #63 C:\wamp64\www\nine\core\lib\Drupal\Core\StackMiddleware\NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #64 C:\wamp64\www\nine\vendor\stack\builder\src\Stack\StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #65 C:\wamp64\www\nine\core\lib\Drupal\Core\DrupalKernel.php(718): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #66 C:\wamp64\www\nine\index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #67 {main} .
From what I've seen in other modules, at least one version offers support for upgrading to higher versions of its modules, even if it's through a development version.
Therefore, if there is no possibility of updating to a higher version, I must conclude that I have been orphaned and that I must delete all existing carousels on the site that I want to update, and then update to D10, and only then implement the carousels again.
I am right?
Does anyone have any ideas?
- πΊπΈUnited States mihaic
Hi @astutonet have you seen this related issue here: https://www.drupal.org/project/owlcarousel/issues/3382506 π Error: Cannot use a scalar value as an array in _owlcarousel_format_settings() Needs review ?
Please apply the patch to get rid of that error. - π§π·Brazil astutonet Sao Paulo, SP
Hi @mihaic, thanks for your response. I saw issue #3382506 π Error: Cannot use a scalar value as an array in _owlcarousel_format_settings() Needs review and applied the patch, managing to update from version 8.x-1.0-beta1 to version 8.x-2.x-dev, so the patch works.
Can you tell me if after this update, it is possible to update to version 3.0.1 or if there is a related issue?