Problem/Motivation

On a site with D 9.5.10

[Tue Jul 25 09:10:14.202698 2023] [php:notice] [pid 960] [client 192.168.200.1:34065] Error: Class "Unicode" not found in /site/modules/contrib/superfish/superfish.module on line 232 #0 /site/modules/contrib/superfish/superfish.module(181): superfish_library_path()\n#1 [internal function]: superfish_library_info_build()\n#2 /site/core/lib/Drupal/Core/Extension/ModuleHandler.php(417): call_user_func_array()\n#3 /site/core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php(382): Drupal\\Core\\Extension\\ModuleHandler->invoke()\n#4 /site/core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php(138): Drupal\\Core\\Asset\\LibraryDiscoveryParser->parseLibraryInfo()\n#5 /site/core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php(87): Drupal\\Core\\Asset\\LibraryDiscoveryParser->buildByExtension()\n#6 /site/core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php(66): Drupal\\Core\\Asset\\LibraryDiscoveryCollector->getLibraryDefinitions()\n#7 /site/core/lib/Drupal/Core/Cache/CacheCollector.php(149): Drupal\\Core\\Asset\\LibraryDiscoveryCollector->resolveCacheMiss()\n#8 /site/core/lib/Drupal/Core/Asset/LibraryDiscovery.php(44): Drupal\\Core\\Cache\\CacheCollector->get()\n#9 /site/core/lib/Drupal/Core/Asset/LibraryDiscovery.php(58): Drupal\\Core\\Asset\\LibraryDiscovery->getLibrariesByExtension()\n#10 /site/core/lib/Drupal/Core/Asset/LibraryDependencyResolver.php(68): Drupal\\Core\\Asset\\LibraryDiscovery->getLibraryByName()\n#11 /site/core/lib/Drupal/Core/Asset/LibraryDependencyResolver.php(41): Drupal\\Core\\Asset\\LibraryDependencyResolver->doGetDependencies()\n#12 /site/core/lib/Drupal/Core/Asset/AssetResolver.php(104): Drupal\\Core\\Asset\\LibraryDependencyResolver->getLibrariesWithDependencies()\n#13 /site/core/lib/Drupal/Core/Asset/AssetResolver.php(116): Drupal\\Core\\Asset\\AssetResolver->getLibrariesToLoad()\n#14 /site/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php(311): Drupal\\Core\\Asset\\AssetResolver->getCssAssets()\n#15 /site/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php(157): Drupal\\Core\\Render\\HtmlResponseAttachmentsProcessor->processAssetLibraries()\n#16 /site/core/modules/big_pipe/src/Render/BigPipeResponseAttachmentsProcessor.php(94): Drupal\\Core\\Render\\HtmlResponseAttachmentsProcessor->processAttachments()\n#17 /site/core/lib/Drupal/Core/EventSubscriber/HtmlResponseSubscriber.php(45): Drupal\\big_pipe\\Render\\BigPipeResponseAttachmentsProcessor->processAttachments()\n#18 [internal function]: Drupal\\Core\\EventSubscriber\\HtmlResponseSubscriber->onRespond()\n#19 /site/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(142): call_user_func()\n#20 /site/vendor/symfony/http-kernel/HttpKernel.php(202): Drupal\\Component\\EventDispatcher\\ContainerAwareEventDispatcher->dispatch()\n#21 /site/vendor/symfony/http-kernel/HttpKernel.php(148): Symfony\\Component\\HttpKernel\\HttpKernel->filterResponse()\n#22 /site/vendor/symfony/http-kernel/HttpKernel.php(81): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw()\n#23 /site/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\\Component\\HttpKernel\\HttpKernel->handle()\n#24 /site/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\\Core\\StackMiddleware\\Session->handle()\n#25 /site/core/modules/ban/src/BanMiddleware.php(50): Drupal\\Core\\StackMiddleware\\KernelPreHandle->handle()\n#26 /site/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\\ban\\BanMiddleware->handle()\n#27 /site/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\\Core\\StackMiddleware\\ReverseProxyMiddleware->handle()\n#28 /site/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\\Core\\StackMiddleware\\NegotiationMiddleware->handle()\n#29 /site/core/lib/Drupal/Core/DrupalKernel.php(718): Stack\\StackedHttpKernel->handle()\n#30 /site/index.php(19): Drupal\\Core\\DrupalKernel->handle()\n#31 {main}

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork superfish-3376771

Command icon Show commands

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

maxilein created an issue. See original summary.

maxilein’s picture

while on a current D10.1 everything is fine.

maxilein’s picture

Title: rror: Class Unicode not found in superfish_library_path() line 232 » Error: Class Unicode not found in superfish_library_path() line 232
maxilein’s picture

Rolling back to superfish 1.4 - and everything is fine.

SmovS made their first commit to this issue’s fork.

smovs’s picture

Status: Active » Needs review

Added missed namespacing for Unicode class to the superfish.module.
Created MR.
Please review.

rahul17’s picture

Assigned: Unassigned » rahul17

Reviewing MR!5

rahul17’s picture

Assigned: rahul17 » Unassigned
Status: Needs review » Reviewed & tested by the community
StatusFileSize
new383 bytes

I have tested MR!5 in D10 and D9, issue is gone and module installed smoothly.

Moving this to RTBC.

Uploading patch file for MR!5.

jpro’s picture

Patch at #9 brought my Drupal 9.5.10 site back.

LOBsTerr made their first commit to this issue’s fork.

  • LOBsTerr committed ccf0bf81 on 8.x-1.x authored by SmovS
    Issue #3376771 by rahul17: Error: Class Unicode not found in...
lobsterr’s picture

Status: Reviewed & tested by the community » Fixed

Sorry guys, my fault! I will make another release

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.