IBM Support

Portal Site shows following message : "The website encountered an unexpected error. Please try again later."

Troubleshooting


Problem

Portal Site shows following message : "The website encountered an unexpected error. Please try again later." 

Symptom

From the pods/logs/portal/subin-port-site1-www-0_web.log logs:
[   php-fpm stderr]   687 transaction_id date-time WARNING: [pool www] child 1234 said into stderr: "WATCHDOG: [ERROR] [php] Drupal\Core\Asset\Exception\IncompleteLibraryDefinitionException: Incomplete library definition for definition 'my_library' in extension 'my_extension' in Drupal\Core\Asset\LibraryDiscoveryParser->buildByExtension() (line 131 of /web/platforms/devportal-9.x-10.0.5.2-20221129-1549/core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php). | user: anonymous | uri: https://subin.abc.ptl-portal-web.subin.abc/subin/subin/health | referer: ^M"
[   php-fpm stderr]   687 transaction_id date-time WARNING: [pool www] child 1234 said into stderr: "NOTICE: PHP message: Uncaught PHP Exception Drupal\Core\Asset\Exception\IncompleteLibraryDefinitionException: "Incomplete library definition for definition 'my_library' in extension 'my_extension'" at /web/platforms/devportal-9.x-10.0.5.2-20221129-1549/core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php line 131"
[     nginx stderr]   686 transaction_id date-time [error] 24764#24764: *3572 FastCGI sent in stderr: "PHP message: Uncaught PHP Exception Drupal\Core\Asset\Exception\IncompleteLibraryDefinitionException: "Incomplete library definition for definition 'my_library' in extension 'my_extension'" at /web/platforms/devportal-9.x-10.0.5.2-20221129-1549/core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php line 131" while reading response header from upstream, client: 127.0.0.1, server: ptl-portal-web.subin.abc, request: "GET /subin/subin/health HTTP/2.0", upstream: "fastcgi://unix:/var/run/pid/php7.4-fpm.sock:", host: "ptl-portal-web.subin.abc"

Cause

Exception Type: Drupal\Core\Asset\Exception\IncompleteLibraryDefinitionException suggests that Drupal has encountered a problem with an asset library's definition. 

Library Definition Issue: The message states "Incomplete library definition for definition 'my_library' in extension 'my_extension'." This means that within the extension (or module/theme) identified as 'my_extension', there is a library named 'my_library' that does not have a complete definition. A library definition might be incomplete if it's missing required information like a version, js/css files, dependencies, etc.

File and Line Number: The error occurs in LibraryDiscoveryParser.php at line 131. This file is part of Drupal's core library discovery system, which is responsible for parsing and understanding the definitions of libraries included in Drupal's extensions (modules, themes, etc.).

Resolving The Problem

Please reach out to the developer in your company / organization who created the extension my_extension.

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB67","label":"IT Automation \u0026 App Modernization"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSMNED","label":"IBM API Connect"},"ARM Category":[{"code":"a8m0z000000cvaRAAQ","label":"API Connect-\u003EDeveloper Portal (MM)-\u003ECustom Modules"}],"ARM Case Number":"TS015538220","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"10.0.5"}]

Document Information

Modified date:
05 March 2024

UID

ibm17129932