The files in the repository are named jquery.treeTable.css and jquery.treeTable.js but token.libraries.yml refers to jquery.treetable.css and jquery.treetable.js which means they are not found when this module runs on an operating system that has a case sensitive file system (like linux).

CommentFileSizeAuthor
fix-capitalization.patch521 bytesAnonymous (not verified)

Comments

Anonymous’s picture

bangpound created an issue. See original summary.

hussainweb’s picture

I checked the repository on cgit and see that the files show up as lowercase. I tried on a local viewer and it is lowercase there too. To be extra sure, I cloned the repository fresh and the files were created with lowercase name.

Finally, I tried the package release on drupal.org and I see it is lowercase inside the tar file as well.

So, my guess is you are using the git repository and pull the changes. Since all fresh attempts to get the module give the lower case filename, I think we should keep it that way.

I'd suggest you to download a fresh tar file or clone it fresh depending on how you have set it up. +1 to mark this as "Closed (Works as designed)"

berdir’s picture

Status: Needs review » Closed (cannot reproduce)

Agreed, the files are lowercase for me. We changed that on june 1st in #2737889: Upgrade to latest jquery treetable

If I had to guess, I'd say you updated on a local OSX with non case sensitive file system and then uploaded to a linux server. You're certainly not the first to use linux for this but you're the first to encounter this problem it seems.

ultimike’s picture

I'm seeing something that that might be related to this.

I have an up-to-date Drupal 9 site and I get PHP warnings in watchdog that look like:

Warning: file_get_contents(modules/contrib/token/js/jquery.treetable.js): Failed to open stream: No such file or directory in Drupal\Core\Asset\JsOptimizer->optimize() (line 25 of /code/web/core/lib/Drupal/Core/Asset/JsOptimizer.php)

I can confirm that the file is correctly named with all lowercase:

$ ls -al web/modules/contrib/token/js/
total 32
drwxr-xr-x 2 michael dialout  4096 Jul  1  2022 .
drwxr-xr-x 8 michael dialout  4096 Aug  2  2022 ..
-rw-r--r-- 1 michael dialout 16611 Jul  1  2022 jquery.treetable.js
-rw-r--r-- 1 michael dialout  3733 Jul  1  2022 token.js

The PHP warnings only appear when I'm visiting the google_analytics module's configuration pages. I do not get any similar PHP warnings for any other files.

Not sure what is going on...

-mike