Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
This is what I see when I open admin/reports/libraries:
The website encountered an unexpected error. Please try again later.
InvalidArgumentException: Library fontawesome does not exist in Drupal\system_stream_wrapper\StreamWrapper\LibraryStream->getOwnerName() (line 32 of modules/contrib/system_stream_wrapper/src/StreamWrapper/LibraryStream.php).
Drupal\system_stream_wrapper\StreamWrapper\LibraryStream->getDirectoryPath() (Line: 67)
Drupal\system_stream_wrapper\StreamWrapper\LocalStream->getLocalPath() (Line: 414)
Drupal\system_stream_wrapper\StreamWrapper\LocalStream->url_stat('library://fontawesome', 2)
file_exists('library://fontawesome') (Line: 17)
fontawesome_requirements('runtime')
call_user_func_array('fontawesome_requirements', Array) (Line: 402)
Drupal\Core\Extension\ModuleHandler->invokeAll('requirements', Array) (Line: 112)
Drupal\system\SystemManager->listRequirements() (Line: 49)
Drupal\system\Controller\SystemInfoController->status()
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 574)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
call_user_func_array(Object, Array) (Line: 144)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 64)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 99)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 652)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Comment | File | Size | Author |
---|---|---|---|
#5 | Selection_009.png | 60.23 KB | juampynr |
#5 | Selection_008.png | 25.4 KB | juampynr |
#5 | interdiff.txt | 1.01 KB | juampynr |
#5 | error_at_status_report-2863363-5.patch | 1.68 KB | juampynr |
#2 | error_at_status_report-2863363-2.patch | 1.77 KB | juampynr |
Comments
Comment #2
juampynr CreditAttribution: juampynr at Lullabot commentedFontawesome is set by default to use the CDN. This moves the file_exists() check down so it is called only when you don't want to use the CDN. It also catches the exception so when the CDN setting is deactivated, it shows a requirement warning instead of a PHP error.
Comment #3
Dave ReidNow that #2825005: Fix warning when loading a library is merged, we should not need the try/catch statement around the file_exists() call.
Comment #4
Dave ReidI'm though totally unclear on the status of the module dependencies as of http://cgit.drupalcode.org/fontawesome/commit/?h=8.x-1.x&id=3a5600e79099.... Because by using the library:// stream wrapper, we do need to depend on system_stream_wrapper (not currently in the dependencies), which would also require the libraries module to be a dependency.
Comment #5
juampynr CreditAttribution: juampynr at Lullabot commentedWhile this bug does not happen any more with the latest HEAD of system_stream_wrapper now that #2825005: Fix warning when loading a library has been fixed, I am still posting here an updated version of the patch where I simply make the wording clearer.
Currently, when the CDN version of Fontawesome is not being used, here is how the message at the Status Report looks like:
And here is how it looks using this patch:
Comment #6
devil2005 CreditAttribution: devil2005 commentedStill buggy for me, message in double now with patch #2 then #5 applied on the last version of the module
Error level is good (Fontawesome - Fontawesome library is installed.) but i have still this error :
Comment #7
devil2005 CreditAttribution: devil2005 commentedSolved by : https://www.drupal.org/node/2881431
Comment #8
Daniel.Moberly CreditAttribution: Daniel.Moberly commenteddevil2005 is right, fixed in #2881431: Unable to find the wrapper "library"