TypeError on 10.2.7

Created on 10 June 2024, 17 days ago
Updated 12 June 2024, 14 days ago

Hi,

After upgrading to 1.0.2, I am seeing this error.

a:6:{s:5:"%type";s:9:"TypeError";s:8:"@message";s:230:"_hovercss_ui_attach_library(): Argument #2 ($config) must be of type array, Drupal\Core\Config\ImmutableConfig given, called in /var/www/html/XXXXX/web/modules/contrib/hovercss/hovercss_ui/hovercss_ui.module on line 207";s:9:"%function";s:29:"_hovercss_ui_attach_library()";s:5:"%file";s:90:"/var/www/html/XXXXX/web/modules/contrib/hovercss/hovercss_ui/hovercss_ui.module";s:5:"%line";i:333;s:17:"@backtrace_string";s:4295:"#0 /var/www/html/XXXXX/web/modules/contrib/hovercss/hovercss_ui/hovercss_ui.module(207): _hovercss_ui_attach_library()

Drupal 10.2.7
Web Server Apache/2.4.58
PHP 8.3.6
Database 10.11.7-MariaDB

Thanks.

Dan

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States duckydan

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

Comments & Activities

  • Issue created by @duckydan
  • Assigned to mahyarss
  • Status changed to Needs review 16 days ago
  • πŸ‡΅πŸ‡±Poland mahyarss

    Hi @duckydan,

    Thank you for reporting this issue and providing detailed information.

    I've created a patch to address the TypeError in the _hovercss_ui_attach_library() function. The patch ensures that the $config parameter is correctly treated as an object.

    Please apply the attached patch and let me know if it resolves the issue:

    patch -p1 < 3453556-fix-typeerror-hovercss_ui.patch

    Your feedback is greatly appreciated. Thank you again for your patience and assistance.

  • Status changed to RTBC 16 days ago
  • πŸ‡ΊπŸ‡ΈUnited States duckydan

    Fixed the error perfectly.

    Thank you so much for fixing this so quickly!

    Dan

  • Status changed to Fixed 16 days ago
  • πŸ‡΅πŸ‡±Poland mahyarss

    Hi Dan,

    Thank you for your quick feedback!

    I'm glad to hear that the patch fixed the error perfectly. Your detailed report made it much easier to address the issue promptly.

    If you encounter any further issues or have any suggestions, please feel free to reach out. I'm always here to help!

    Best regards,
    Mahyar

  • Status changed to Fixed 14 days ago
  • πŸ‡΅πŸ‡±Poland mahyarss

    Hi everyone,

    We have released a new version (1.0.3) of the Hover.css module which includes a fix for the TypeError in the `_hovercss_ui_attach_library()` function. This issue was reported by Dan and has been successfully resolved in this release.

    **Release notes for 1.0.3:**
    - Fixed a TypeError in the `_hovercss_ui_attach_library()` function by ensuring the `$config` parameter is correctly treated as an object.

    You can download the latest version from the [project page]( https://www.drupal.org/project/hovercss β†’ ) and follow the update instructions to apply the fix.

    Thank you for your patience and contributions. If you encounter any further issues, please feel free to open a new issue.

    Best regards,
    Mahyar SBT

Production build 0.69.0 2024