JsDelivr plugin generate error when a request failed

Created on 27 February 2019, almost 6 years ago
Updated 13 September 2024, 4 months ago

As the project is in closed environement and cant access to external ressources
JsDeliver plugin generate fatal error :

[error]  Drush command terminated abnormally due to an unrecoverable error.
Error: Uncaught Error: Unsupported operand types in /var/www/html/drupal/themes/contrib/bootstrap/src/Plugin/Provider/JsDelivr.php:116
Stack trace:
#0 /var/www/html/drupal/themes/contrib/bootstrap/src/Plugin/ProviderManager.php(38): Drupal\bootstrap\Plugin\Provider\JsDelivr->processDefinition(Array, 'jsdelivr')
#1 /var/www/html/drupal/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php(286): Drupal\bootstrap\Plugin\ProviderManager->processDefinition(Array, 'jsdelivr')
#2 /var/www/html/drupal/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php(175): Drupal\Core\Plugin\DefaultPluginManager->findDefinitions()
#3 /var/www/html/drupal/themes/contrib/bootstrap/src/Plugin/PluginManager.php(101): Drupal\Core\Plugin\DefaultPluginManager->getDefinitions()
#4 /var/www/html/drupal/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryCachedTrait.php(22): Drupal\bootstrap\Plugin\PluginManager->getDefinitions()
#5 /var/www/html/drupal/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php(59): Drupal\Core\Plugin\DefaultPlu in /var/www/html/drupal/themes/contrib/bootstrap/src/Plugin/Provider/JsDelivr.php, line 116 

Even when bootstrap theme is param to "none", JsDelivr plugin is called

As bypass I handle the error in the linked patch

I think the issue could be more deeper then that as I cant see why this plugin is call even when CDN is set to none.

πŸ› Bug report
Status

Closed: won't fix

Version

3.0

Component

Plugin System

Created by

πŸ‡«πŸ‡·France OnOff

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024