Error when FontAwesome field exists

Created on 30 September 2024, about 2 months ago

Problem/Motivation

I'm using the FontAwesome module and Link Checker is causing errors in the logs.

Error: Class "Drupal\fontawesome\Plugin\Field\FieldType\FontAwesomeIcon" not found in Drupal\Core\Field\FieldConfigStorageBase->mapFromStorageRecords() (line 33 of core/lib/Drupal/Core/Field/FieldConfigStorageBase.php) [4e2f6abe-a76e-40d9-aae5-1ce90a9d3d5f]

#0 /var/training/cochrane-d10/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php(186): Drupal\Core\Field\FieldConfigStorageBase->mapFromStorageRecords()
#1 /var/training/cochrane-d10/core/lib/Drupal/Core/Entity/EntityStorageBase.php(312): Drupal\Core\Config\Entity\ConfigEntityStorage->doLoadMultiple()
#2 /var/training/cochrane-d10/modules/contrib/linkchecker/src/LinkExtractorBatch.php(61): Drupal\Core\Entity\EntityStorageBase->loadMultiple()
#3 /var/training/cochrane-d10/modules/contrib/linkchecker/src/LinkExtractorBatch.php(94): Drupal\linkchecker\LinkExtractorBatch->getEntityTypesToProcess()
#4 /var/training/cochrane-d10/modules/contrib/linkchecker/linkchecker.module(145): Drupal\linkchecker\LinkExtractorBatch->processEntities()
#5 /var/training/cochrane-d10/core/lib/Drupal/Core/Cron.php(335): linkchecker_cron()
#6 /var/training/cochrane-d10/core/lib/Drupal/Core/Extension/ModuleHandler.php(388): Drupal\Core\Cron->Drupal\Core\{closure}()
#7 /var/training/cochrane-d10/core/lib/Drupal/Core/Cron.php(343): Drupal\Core\Extension\ModuleHandler->invokeAllWith()
#8 /var/training/cochrane-d10/core/lib/Drupal/Core/Cron.php(159): Drupal\Core\Cron->invokeCronHandlers()
#9 /var/training/cochrane-d10/core/lib/Drupal/Core/ProxyClass/Cron.php(75): Drupal\Core\Cron->run()
#10 /var/training/cochrane-d10/vendor/drush/drush/src/Drupal/Commands/core/DrupalCommands.php(69): Drupal\Core\ProxyClass\Cron->run()
#11 [internal function]: Drush\Drupal\Commands\core\DrupalCommands->cron()
#12 /var/training/cochrane-d10/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array()
#13 /var/training/cochrane-d10/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback()
#14 /var/training/cochrane-d10/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter()
#15 /var/training/cochrane-d10/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(391): Consolidation\AnnotatedCommand\CommandProcessor->process()
#16 /var/training/cochrane-d10/vendor/symfony/console/Command/Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute()
#17 /var/training/cochrane-d10/vendor/symfony/console/Application.php(1081): Symfony\Component\Console\Command\Command->run()
#18 /var/training/cochrane-d10/vendor/symfony/console/Application.php(320): Symfony\Component\Console\Application->doRunCommand()
#19 /var/training/cochrane-d10/vendor/symfony/console/Application.php(174): Symfony\Component\Console\Application->doRun()
#20 /var/training/cochrane-d10/vendor/drush/drush/src/Runtime/Runtime.php(124): Symfony\Component\Console\Application->run()
#21 /var/training/cochrane-d10/vendor/drush/drush/src/Runtime/Runtime.php(51): Drush\Runtime\Runtime->doRun()
#22 /var/training/cochrane-d10/vendor/drush/drush/drush.php(79): Drush\Runtime\Runtime->run()
#23 /var/training/cochrane-d10/vendor/drush/drush/drush(4): require('...')
#24 /var/training/cochrane-d10/vendor/bin/drush(120): include('...')
#25 {main}

Steps to reproduce

Install linkchecker 2.0 or 2.1.
Install fontawesome 2.26
Add a fontawesome field to a node content type and create a node with an icon.
During cron, the error above happens.

The class "Drupal\fontawesome\Plugin\Field\FieldType\FontAwesomeIcon" is there, so I can't say why this error is happening.
Not sure if this is a problem with fontawesome or linkchecker.

🐛 Bug report
Status

Active

Version

2.1

Component

Code

Created by

🇩🇪Germany m-p-j

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

Comments & Activities

Production build 0.71.5 2024