santhosh@21 โ made their first commit to this issueโs fork.
Thank you @sadamafridi and @rodrigoaguilera for reviewing the issue and updating the comments
I have reviewed the documentation for the both methods and those are different from the ones returned by the other method and now it totally makes distinct and can avoid conflicts.
I have updated the spellcheck and the pipeline is failing in different functional tests related to the Umami and that doesn't suits for this document return type issue.
I am working on this issue
I am working on this issue
This issue exists after drupal upgrade to 10.3.1 from 10.2.7
Patch 6 works for me
Hi sarwan_verma
The MR looks good and no issues.
santhosh@21 โ created an issue.
santhosh@21 โ created an issue.
The same issue I got when using Layout Paragraphs and Paragraphs module as the preprocess paragraph is changing the default id values to "pargraph-id" and it is affecting the Layout Paragraphs and losing the editing controls of layout paragraphs.
The below code fixed the issue for Layout editing
Also Attached the patch for someone who is looking for
function ptoc_preprocess_paragraph(&$variables) {
// Check if the ID attribute is already set.
if (!isset($variables['attributes']['id'])) {
// Generate a new ID only for paragraphs in the default view mode.
if ('default' == $variables['elements']['#view_mode']) {
$variables['attributes']['id'] = 'paragraph-' . $variables['paragraph']->id();
}
}
if (Drupal::config('ptoc.settings')->get('debug')) {
$variables['attributes']['class'][] = 'ptoc-debug';
$variables['#attached']['library'][] = 'ptoc/ptoc-debug';
}
}
I have got the same issue when i visit the Logging & Errors page
TypeError: implode(): Argument #1 ($pieces) must be of type array, string given in implode() (line 118 of/filelog/filelog.module
After adding the update hook it resolved the issue.
With Entity browser still there is an below error
"\nAn AJAX HTTP error occurred.\nHTTP Result Code: 500\nDebugging information follows.\nPath: /layout_builder/update/block/overrides/node.232/0/second/6097a8ed-fd54-4a5e-b859-d17c3f6a9a1d?destination=/node/232/layout&_wrapper_format=drupal_dialog&ajax_form=1\nStatusText: error\nResponseText: The website encountered an unexpected error. Please try again later.TypeError: key(): Argument #1 ($array) must be of type array, null given in key() (line 424 of modules/contrib/entity_browser/src/Plugin/Field/FieldWidget/EntityReferenceBrowserWidget.php). Drupal\\entity_browser\\Plugin\\Field\\FieldWidget\\EntityReferenceBrowserWidget::processEntityBrowser(Array, Object, Array)\ncall_user_func_array(Array, Array) (Line: 1012)\nDrupal\\Core\\Form\\FormBuilder->doBuildForm('layout_builder_update_block', Array, Object) (Line: 1075)\nDrupal\\Core\\Form\\FormBuilder->doBuildForm('layout_builder_update_block', Array, Object) (Line: 1075)\nDrupal\\Core\\Form\\FormBuilder->doBuildForm('layout_builder_update_block', Array, Object) (Line: 1075)\nDrupal\\Core\\Form\\FormBuilder->doBuildForm('layout_builder_update_block', Array, Object) (Line: 1075)\nDrupal\\Core\\Form\\FormBuilder->doBuildForm('layout_builder_update_block', Array, Object) (Line: 1075)\nDrupal\\Core\\Form\\FormBuilder->doBuildForm('layout_builder_update_block', Array, Object) (Line: 449)\nDrupal\\Core\\Form\\FormBuilder->rebuildForm('layout_builder_update_block', Object, Array) (Line: 633)\nDrupal\\Core\\Form\\FormBuilder->processForm('layout_builder_update_block', Array, Object) (Line: 325)\nDrupal\\Core\\Form\\FormBuilder->buildForm(Object, Object) (Line: 73)\nDrupal\\Core\\Controller\\FormController->getContentResult(Object, Object)\ncall_user_func_array(Array, Array) (Line: 123)\nDrupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->Drupal\\Core\\EventSubscriber\\{closure}() (Line: 592)\nDrupal\\Core\\Render\\Renderer->executeInRenderContext(Object, Object) (Line: 124)\nDrupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)\nDrupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->Drupal\\Core\\EventSubscriber\\{closure}() (Line: 181)\nSymfony\\Component\\HttpKernel\\HttpKernel->handleRaw(Object, 1) (Line: 76)\nSymfony\\Component\\HttpKernel\\HttpKernel->handle(Object, 1, 1) (Line: 58)\nDrupal\\Core\\StackMiddleware\\Session->handle(Object, 1, 1) (Line: 48)\nDrupal\\Core\\StackMiddleware\\KernelPreHandle->handle(Object, 1, 1) (Line: 106)\nDrupal\\page_cache\\StackMiddleware\\PageCache->pass(Object, 1, 1) (Line: 85)\nDrupal\\page_cache\\StackMiddleware\\PageCache->handle(Object, 1, 1) (Line: 48)\nDrupal\\Core\\StackMiddleware\\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)\nDrupal\\Core\\StackMiddleware\\NegotiationMiddleware->handle(Object, 1, 1) (Line: 49)\nDrupal\\remove_http_headers\\StackMiddleware\\RemoveHttpHeadersMiddleware->handle(Object, 1, 1) (Line: 51)\nDrupal\\Core\\StackMiddleware\\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)\nDrupal\\Core\\DrupalKernel->handle(Object) (Line: 19)\n"
I also has the same issue in my site
Did anyone got solution ?
https://www.drupal.org/project/filelog/issues/3416342 ๐ Circular reference detected for service Fixed
I have used this patch for circular refrence issue when doing drush cim and the module is already installed in another environment
After patch applied then deployed to AWS ECS (where it has been deployed) and it breaks the admin with the error for dependency.
santhosh@21 โ created an issue.
The patch works fine
Drupal - 10.2.1
webform_submissions_delete - 8.x-1.1
The reviewed patch also works for me
php - 8.2
drupal - 10.2
auto_username - 1.3
santhosh@21 โ created an issue.
drush cr -y fixed the issue for "Drupal\Core\Render\Renderer::doTrustedCallback()"
#2 works for me with php 8.2 and drupal 10.1.3
My PHP version in AWS is 8.1.23
When I upgrade from 9.5.1 to Drupal 10.1 I am getting the same error only in my AWS hosting and not in my local site
"[Mon, 09/11/2023 - 12:04] [Error] [php] [client: 10.80.35.171, Anonymous] TypeError: Drupal\Core\Render\Renderer::doTrustedCallback(): Argument #1 ($callback) must be of type callable, array given, called in /opt/drupal/web/web/core/lib/Drupal/Core/Render/Renderer.php on line 788 in Drupal\Core\Render\Renderer->doTrustedCallback() (line 57 of /opt/drupal/web/web/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php)."
I have enabled the default olivero theme but still its giving the same issue.
Someone please suggest solution if you have anything.
Updated the steps to reproduce @cilefen
santhosh@21 โ created an issue.
santhosh@21 โ created an issue.
Hi
I have also got the same error when upgrading from drupal 9.5.5 to 9.5.9
To Reproduce this
create a custom login page with new URL from the admin role login settings and try to login with that URL and will get the below error and with the /user/login there is no any error.
TypeError: rawurlencode(): Argument #1 ($string) must be of type string, stdClass given in rawurlencode() (line 58 of /var/www/html/web/core/lib/Drupal/Component/Utility/UrlHelper.php)
#0 /var/www/html/web/core/lib/Drupal/Component/Utility/UrlHelper.php(58): rawurlencode(Object(stdClass))
#1 /var/www/html/web/core/lib/Drupal/Core/Menu/MenuTreeStorage.php(691): Drupal\Component\Utility\UrlHelper::buildQuery(Array)
#2 /var/www/html/web/core/lib/Drupal/Core/Menu/MenuLinkManager.php(336): Drupal\Core\Menu\MenuTreeStorage->loadByRoute('role_login_page...', Array, 'main')
#3 /var/www/html/web/core/lib/Drupal/Core/Menu/MenuActiveTrail.php(134): Drupal\Core\Menu\MenuLinkManager->loadLinksByRoute('role_login_page...', Array, 'main')
#4 /var/www/html/web/core/lib/Drupal/Core/Menu/MenuActiveTrail.php(105): Drupal\Core\Menu\MenuActiveTrail->getActiveLink('main')
#5 /var/www/html/web/core/lib/Drupal/Core/Menu/MenuActiveTrail.php(71): Drupal\Core\Menu\MenuActiveTrail->doGetActiveTrailIds('main')
#6 /var/www/html/web/core/lib/Drupal/Core/Cache/CacheCollector.php(149): Drupal\Core\Menu\MenuActiveTrail->resolveCacheMiss('main')
#7 /var/www/html/web/core/lib/Drupal/Core/Menu/MenuActiveTrail.php(92): Drupal\Core\Cache\CacheCollector->get('main')
#8 /var/www/html/web/core/lib/Drupal/Core/Cache/Context/MenuActiveTrailsCacheContext.php(35): Drupal\Core\Menu\MenuActiveTrail->getActiveTrailIds('main')
#9 /var/www/html/web/core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php(123): Drupal\Core\Cache\Context\MenuActiveTrailsCacheContext->getContext('main')
#10 /var/www/html/web/core/lib/Drupal/Core/Render/RenderCache.php(317): Drupal\Core\Cache\Context\CacheContextsManager->convertTokensToKeys(Array)
#11 /var/www/html/web/core/lib/Drupal/Core/Render/RenderCache.php(66): Drupal\Core\Render\RenderCache->createCacheID(Array)
#12 /var/www/html/web/core/lib/Drupal/Core/Render/PlaceholderingRenderCache.php(109): Drupal\Core\Render\RenderCache->get(Array)
#13 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(273): Drupal\Core\Render\PlaceholderingRenderCache->get(Array)
#14 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(446): Drupal\Core\Render\Renderer->doRender(Array)
#15 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(204): Drupal\Core\Render\Renderer->doRender(Array, false)
#16 /var/www/html/web/core/lib/Drupal/Core/Template/TwigExtension.php(479): Drupal\Core\Render\Renderer->render(Array)
#17 /var/www/html/vendor/twig/twig/src/Environment.php(418) : eval()'d code(89): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true)
#18 /var/www/html/vendor/twig/twig/src/Template.php(405): __TwigTemplate_a9e1968f17d9d89688d2875d12d085b13f31096ca7895db1816e65c3d7555475->doDisplay(Array, Array)
#19 /var/www/html/vendor/twig/twig/src/Template.php(378): Twig\Template->displayWithErrorHandling(Array, Array)
#20 /var/www/html/vendor/twig/twig/src/Template.php(390): Twig\Template->display(Array)
#21 /var/www/html/web/core/themes/engines/twig/twig.engine(55): Twig\Template->render(Array)
#22 /var/www/html/web/core/lib/Drupal/Core/Theme/ThemeManager.php(384): twig_render_template('themes/contrib/...', Array)
#23 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(433): Drupal\Core\Theme\ThemeManager->render('page', Array)
#24 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(204): Drupal\Core\Render\Renderer->doRender(Array, false)
#25 /var/www/html/web/core/lib/Drupal/Core/Template/TwigExtension.php(479): Drupal\Core\Render\Renderer->render(Array)
#26 /var/www/html/vendor/twig/twig/src/Environment.php(418) : eval()'d code(89): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true)
#27 /var/www/html/vendor/twig/twig/src/Template.php(405): __TwigTemplate_5a90ed366ab8fdc5b2a151567349f1a8c5c5dba7bb3f352f887e23f6d7e28cc9->doDisplay(Array, Array)
#28 /var/www/html/vendor/twig/twig/src/Template.php(378): Twig\Template->displayWithErrorHandling(Array, Array)
#29 /var/www/html/vendor/twig/twig/src/Template.php(390): Twig\Template->display(Array)
#30 /var/www/html/web/core/themes/engines/twig/twig.engine(55): Twig\Template->render(Array)
#31 /var/www/html/web/core/lib/Drupal/Core/Theme/ThemeManager.php(384): twig_render_template('themes/contrib/...', Array)
#32 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(433): Drupal\Core\Theme\ThemeManager->render('html', Array)
#33 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(204): Drupal\Core\Render\Renderer->doRender(Array, false)
#34 /var/www/html/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(162): Drupal\Core\Render\Renderer->render(Array)
#35 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(580): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}()
#36 /var/www/html/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(163): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#37 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch))
#38 [internal function]: Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#39 /var/www/html/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(142): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#40 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(174): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view')
#41 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(81): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#42 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#43 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#44 /var/www/html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(191): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#45 /var/www/html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(128): Drupal\page_cache\StackMiddleware\PageCache->fetch(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#46 /var/www/html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(82): Drupal\page_cache\StackMiddleware\PageCache->lookup(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#47 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#48 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#49 /var/www/html/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#50 /var/www/html/web/core/lib/Drupal/Core/DrupalKernel.php(718): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#51 /var/www/html/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#52 {main}