jQCloud plugin does not work.

Created on 27 December 2023, 6 months ago
Updated 10 January 2024, 6 months ago

Problem/Motivation

I am getting this ugly JS error when loading the Home Page after placing the block in the header

jqcloud.js?v=9.5.11:227 Uncaught TypeError: this.word_array.sort is not a function
    at jQCloud.drawWordCloud (jqcloud.js?v=9.5.11:227:25)
    at i (jquery.min.js?v=3.6.3:2:89201)
    at jQCloud.<anonymous> (jqcloud.js?v=9.5.11:177:13)
    at i (jquery.min.js?v=3.6.3:2:89201)

Steps to reproduce

Create the desired taxonomies, install the module, place the block in the desired area, and then load the page, open the "Developer Tools" in your browser, and look at the console window, you should see something like this:

Proposed resolution

According to the jQCloud documentation, when invoking the plugin:

$('#keywords').jQCloud(words);

The variable words should be an array of objects, instead, when invoking the plugin in the module at js/jqcloud.js line 31:

$el.jQCloud(data.terms, options);

the variable data.terms is an object that holds a collection of term objects, it should be an array of term objects.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada danrod

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024