- Issue created by @pankaj1390
- Status changed to Fixed
about 1 year ago 11:10pm 29 May 2023 - πΊπΈUnited States cilefen
You did not provide the full output, which is:
Applying patches for drupal/menu_token https://www.drupal.org/files/issues/2022-07-18/ASGS-4866-php8-compatibility_3.patch (Passing null to parameter #2 ($subject) of type string is deprecated) Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2022-07-18/ASGS-4866-php8-compatibility_3.patch
That means exactly what it says: that patch file does not apply to drupal/menu_token. That is something you must investigate on your end.
@cilefen below error showing: when I run update.php
Deprecated function: preg_match_all(): Passing null to parameter #2 ($subject) of type string is deprecated in Drupal\Core\Utility\Token->scan() (line 295 of core/lib/Drupal/Core/Utility/Token.php).
Drupal\Core\Utility\Token->scan(NULL) (Line: 64)
Drupal\menu_token\Service\MenuTokenContextManager->prepareContextualLinks(Array, Array) (Line: 451)
menu_token_menu_links_discovered_alter(Array, NULL, NULL) (Line: 562)
Drupal\Core\Extension\ModuleHandler->alter('menu_links_discovered', Array) (Line: 166)
Drupal\Core\Menu\MenuLinkManager->getDefinitions() (Line: 189)
Drupal\Core\Menu\MenuLinkManager->rebuild() (Line: 82)
Drupal\Core\EventSubscriber\MenuRouterRebuildSubscriber->menuLinksRebuild() (Line: 70)
Drupal\Core\EventSubscriber\MenuRouterRebuildSubscriber->onRouterRebuild(Object, 'routing.route_finished', Object)
call_user_func(Array, Object, 'routing.route_finished', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'routing.route_finished') (Line: 197)
Drupal\Core\Routing\RouteBuilder->rebuild() (Line: 83)
Drupal\Core\ProxyClass\Routing\RouteBuilder->rebuild() (Line: 587)
drupal_flush_all_caches() (Line: 662)
Drupal\system\Controller\DbUpdateController::batchFinished(1, Array, Array, '6 sec') (Line: 456)
_batch_finished() (Line: 98)
_batch_page(Object) (Line: 186)
Drupal\system\Controller\DbUpdateController->handle('start', Object)
call_user_func_array(Array, Array) (Line: 115)
Drupal\Core\Update\UpdateKernel->handleRaw(Object) (Line: 76)
Drupal\Core\Update\UpdateKernel->handle(Object) (Line: 27)- πΊπΈUnited States cilefen
This is not a support forum. That is a new question. Menu Token is alpha quality software. You should ask there.
Automatically closed - issue fixed for 2 weeks with no activity.