Getting Undefined array key...

Created on 14 September 2024, about 1 month ago
Updated 16 September 2024, about 1 month ago

Problem/Motivation

When trying to use jcarousel 6.0.0-alpha1 on Drupal 10.3.5 and PHP 8.3.10 I get several issues causing jcarousel to not have scrolling or working clickable navigation. The errors are:

"Warning: Undefined array key "swipe" in _jcarousel_generate_attributes() (line 648 of modules/contrib/jcarousel/jcarousel.module)."

Warning: Undefined array key "auto" in _jcarousel_generate_attributes() (line 657 of modules/contrib/jcarousel/jcarousel.module).

Warning: Undefined array key "responsive" in _jcarousel_generate_attributes() (line 667 of modules/contrib/jcarousel/jcarousel.module).

etc. several similar errors

I have applied all the patches to bypass dynamic properties in classes (3400293-jcarousel-php82-5.patch), and non-existent site-path issue (3380014.patch), but still same issue happening.

Steps to reproduce

1. Install jcarousel 6.0.0-alpha1 in Drupal 10.3.5 using PHP 8.3.10
2. Navigation buttons on jcarousel will be inactive (no scrolling) and auto-scroll will not work.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs review

Version

6.0

Component

Code

Created by

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024