Closed (fixed)
Project:
Ajax loader
Version:
2.1.4
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Jul 2026 at 14:38 UTC
Updated:
29 Jul 2026 at 07:35 UTC
Jump to comment: Most recent
After update from 2.1.2 to 2.1.4, I am having this error in my website:
TypeError: Cannot assign null to property Drupal\ajax_loader\ThrobberPluginBase::$cssFile of type string in Drupal\ajax_loader\ThrobberPluginBase->__construct() (line 60 of modules/contrib/ajax_loader/src/ThrobberPluginBase.php).
The property cssFile only support string now, but it can accept a null value. According to ajax_loade.module
if ($css_file = $throbber->getCssFile()) {
$libraries['ajax_loader.throbber']['css']['theme'][$css_file] = [];
}Accept NULL when the property is defined
protected ?string $cssFile;
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
dioni commentedComment #4
mvogel commentedThank you :)
Looks good to me; I didn't test it, but the changes to the code should be fine.
Comment #5
mvogel commentedReleased a new version 2.1.5
Comment #7
dioni commentedThanks! :)