Slick UI breaks getBreakpoints

Created on 19 July 2024, 5 months ago
Updated 25 August 2024, 4 months ago

Works: /admin/config/media/slick/ui
Problem: admin/config/media/slick

Core: 10.3.1
Slick Libs: Testet with 1.80 and 1.7.1


The website encountered an unexpected error. Try again later.

TypeError: Drupal\slick\Entity\Slick::getBreakpoints(): Return value must be of type int, null returned in Drupal\slick\Entity\Slick->getBreakpoints() (line 66 of modules/contrib/slick/src/Entity/Slick.php).
Drupal\slick_ui\Controller\SlickListBuilder->buildRow(Object) (Line: 163)
Drupal\Core\Config\Entity\DraggableListBuilder->buildForm(Array, Object)
call_user_func_array(Array, Array) (Line: 536)
Drupal\Core\Form\FormBuilder->retrieveForm('slick_list_form', Object) (Line: 284)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 224)
Drupal\Core\Form\FormBuilder->getForm(Object) (Line: 121)
Drupal\Core\Config\Entity\DraggableListBuilder->render() (Line: 153)
Drupal\slick_ui\Controller\SlickListBuilder->render() (Line: 23)
Drupal\Core\Entity\Controller\EntityListController->listing('slick')
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 638)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 53)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 741)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
🐛 Bug report
Status

Fixed

Version

3.0

Component

User interface

Created by

🇩🇪Germany stillworks

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @stillworks
  • 🇩🇪Germany stillworks

    Testet with libs 1.6.0 and downloaded the files with composer or manually in case there is/was some corrupted files. But the same.

  • Status changed to Postponed: needs info 5 months ago
  • 🇮🇩Indonesia gausarts

    Thank you.

    Could you save the form after reloading the error page? Might be just glitches between database and codebase sync.

    Or the error persistent?

    Not sure if related, but last changes in 3.x were mostly due to striving to listen to phpstan too much. Some might cause oversight fatal errors somewhere like seen at some phpstan fixes at Blazy noticeably. 2.x was a bit ignorant of phpstan, and so hardly fatal errors.

  • 🇩🇪Germany stillworks

    Can't access admin/config/media/slick at all. Can't save or edit anything there. No access to the optionsets.
    Other things directly on the field "Manage display" parts works normally.

  • 🇩🇪Germany stillworks

    Checked with these releases:

    3.0.2 - 17 May 2024
    3.0.1 - 28 April 2024
    3.0.0 - 6 April 2024
    3.0.x-dev - 19 September 2023

    same error.

    PHP 8.2.18
    Drupal 10.3.1
    Cache cleared multiple times.

  • 🇮🇩Indonesia gausarts

    The trick I normally do for fatal errors specific in a glitch state is not by pressing the reload circle icon, nor F5, nor CTRL/CMD + R, but by placing the mouse cursor in the browser bar, and hit enter.

    The previous 3 reloading is for cache clearing, the last will normalize glitch.

    If peristent, then we can be sure it is not a glitch.

    Until further fixes, hence reversions to old codes, you can use Devel module config editor, and change breakpoints value from null or empty to 0, and save. Clearing cache should bring your Slick UI back. Thus inputting 0 or any number should do the trick till the next fix.

  • 🇩🇪Germany stillworks

    Until further fixes, hence reversions to old codes, you can use Devel module config editor, and change breakpoints value from null or empty to 0, and save. Clearing cache should bring your Slick UI back. Thus inputting 0 or any number should do the trick till the next fix.

    Checked all configs for a breakpoint with "null" there was one and changing that to "0" worked for me.
    Reloading the page the way you recommended did't work. Thanks for the help!

    • gausarts committed 01565aa4 on 3.0.x
      Issue #3462668 by stillworks: Slick UI breaks getBreakpoints
      
  • Status changed to Fixed 5 months ago
  • 🇮🇩Indonesia gausarts

    Thank you for contribution.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024