Error for Bulma button using non-string types for properties url, icon_left, icon_right

Created on 24 June 2025, 4 days ago

Problem/Motivation

The Bulma dependency on ui_icons_font and ui_styles_block seemed to force an upgrade to Drupal 11, although i cannot be certain after six hours of upgrading various things to get to Drupal 11.

Anyway, at the end of all that i'm getting this:

Drupal\Core\Render\Component\Exception\InvalidComponentException: The component "bulma:button" uses non-string types for properties: url, icon_left, icon_right. in Drupal\Core\Theme\Component\ComponentValidator->validateDefinition() (line 99 of core/lib/Drupal/Core/Theme/Component/ComponentValidator.php).

Drupal\Core\Theme\ComponentPluginManager->isValidDefinition() (Line: 270)
Drupal\Core\Theme\ComponentPluginManager->Drupal\Core\Theme\{closure}() (Line: 43)
Drupal\Component\Assertion\Inspector::assertAll() (Line: 269)
Drupal\Core\Theme\ComponentPluginManager->alterDefinitions() (Line: 344)
Drupal\Core\Plugin\DefaultPluginManager->findDefinitions() (Line: 216)
Drupal\Core\Plugin\DefaultPluginManager->getDefinitions() (Line: 154)
Drupal\Core\Theme\ComponentPluginManager->getAllComponents() (Line: 487)
Drupal\Core\Asset\LibraryDiscoveryParser->librariesForComponents() (Line: 408)
Drupal\Core\Asset\LibraryDiscoveryParser->parseLibraryInfo() (Line: 153)
Drupal\Core\Asset\LibraryDiscoveryParser->buildByExtension() (Line: 87)
Drupal\Core\Asset\LibraryDiscoveryCollector->getLibraryDefinitions() (Line: 66)
Drupal\Core\Asset\LibraryDiscoveryCollector->resolveCacheMiss() (Line: 149)
Drupal\Core\Cache\CacheCollector->get() (Line: 166)
Drupal\Core\Asset\LibraryDiscoveryCollector->getLibrariesByExtension() (Line: 173)
Drupal\Core\Asset\LibraryDiscoveryCollector->getLibraryByName() (Line: 68)
Drupal\Core\Asset\LibraryDependencyResolver->doGetDependencies() (Line: 70)
Drupal\Core\Asset\LibraryDependencyResolver->doGetDependencies() (Line: 41)
Drupal\Core\Asset\LibraryDependencyResolver->getLibrariesWithDependencies() (Line: 132)
Drupal\Core\Asset\AssetResolver->getLibrariesToLoad() (Line: 191)
Drupal\Core\Asset\AssetResolver->getCssAssets() (Line: 288)
Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAssetLibraries() (Line: 132)
Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAttachments() (Line: 97)
Drupal\big_pipe\Render\BigPipeResponseAttachmentsProcessor->processAttachments() (Line: 45)
Drupal\Core\EventSubscriber\HtmlResponseSubscriber->onRespond() (Line: 246)
Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}() (Line: 206)
Symfony\Component\EventDispatcher\EventDispatcher->callListeners() (Line: 56)
Symfony\Component\EventDispatcher\EventDispatcher->dispatch() (Line: 216)
Symfony\Component\HttpKernel\HttpKernel->filterResponse() (Line: 204)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 54)
Drupal\simple_oauth\HttpMiddleware\BasicAuthSwap->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 116)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 90)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 53)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 715)
Drupal\Core\DrupalKernel->handle() (Line: 19)

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mlncn Minneapolis, MN, USA

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

Comments & Activities

  • Issue created by @mlncn
  • πŸ‡ΊπŸ‡ΈUnited States mlncn Minneapolis, MN, USA

    Found πŸ“Œ Unhelpful PHP error with NULL type property Needs review while looking for similar issues and realized that my Drupal 11 was not up to date; a bizarre interaction with Drupal lenient plugin and a patch had left it at a release candidate. Completing the upgrade to Drupal 11.2 resolved this problem.

Production build 0.71.5 2024