I'm trying to use deploy on a lightning + blt distribution. I have setup two different drupal vm with two version of the same site. I would like to use deploy to sync the data between these two machines, But when i go to admin/structure/workspace i got an error that i think break the correct execution of the deploy.
The error is

Warning: rawurlencode() expects parameter 1 to be string, object given in Drupal\Component\Utility\UrlHelper::buildQuery() (line 61 of core/lib/Drupal/Component/Utility/UrlHelper.php).
Drupal\Component\Utility\UrlHelper::buildQuery(Array) (Line: 232)
Drupal\Core\Routing\UrlGenerator->doGenerate(Array, Array, Array, Array, Array, 'entity.workspace.edit_form') (Line: 261)
Drupal\Core\Routing\UrlGenerator->getInternalPathFromRoute('entity.workspace.edit_form', Object, Array, Array) (Line: 305)
Drupal\Core\Routing\UrlGenerator->generateFromRoute('entity.workspace.edit_form', Array, Array, 1) (Line: 105)
Drupal\Core\Render\MetadataBubblingUrlGenerator->generateFromRoute('entity.workspace.edit_form', Array, Array, 1) (Line: 735)
Drupal\Core\Url->toString(1) (Line: 162)
Drupal\Core\Utility\LinkGenerator->generate(Object, Object) (Line: 94)
Drupal\Core\Render\Element\Link::preRenderLink(Array)
call_user_func(Array, Array) (Line: 376)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195)
Drupal\Core\Render\Renderer->render(Array) (Line: 474)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 81)
__TwigTemplate_ece02f0c3df7b0086cd0ca8465f38308d76b527e9ac8a6b1025d4d084d54ae92->doDisplay(Array, Array) (Line: 432)
Twig_Template->displayWithErrorHandling(Array, Array) (Line: 403)
Twig_Template->display(Array) (Line: 411)
Twig_Template->render(Array) (Line: 64)
twig_render_template('core/themes/classy/templates/navigation/links.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('links__dropbutton__operations', Array) (Line: 435)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195)
Drupal\Core\Render\Renderer->render(Array) (Line: 474)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 183)
__TwigTemplate_98cf6ee9c325be56e5f6e2b50b209532e42534eaeb86ca76b1fbc0eee1a03602->doDisplay(Array, Array) (Line: 432)
Twig_Template->displayWithErrorHandling(Array, Array) (Line: 403)
Twig_Template->display(Array) (Line: 411)
Twig_Template->render(Array) (Line: 64)
twig_render_template('core/themes/classy/templates/dataset/table.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('table', Array) (Line: 435)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 448)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 226)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 574)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 227)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 117)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.view', Object) (Line: 149)
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)

How can i fix it?

The module is installed with lightning, so it would be better not to change the version, a patch would be better.

Comments

sanci created an issue. See original summary.

Grimreaper’s picture

Version: 8.x-1.0-alpha4 » 8.x-1.x-dev

Hello,

I also have the problem. Never took time to create an issue before.

I will try to provide a patch.

Grimreaper’s picture

sanci’s picture

I confirm patch #3 solved my issue. Thanks

Status: Needs review » Needs work

The last submitted patch, 3: workspace-links_warning-2842897-3.patch, failed testing.

jeqq’s picture

  • jeqq committed fee3ac3 on 8.x-1.x authored by Grimreaper
    Issue #2842897 by Grimreaper, jeqq, sanci: Rawurlencode() expects...
jeqq’s picture

Status: Needs review » Fixed

Thank you!

Grimreaper’s picture

Thanks for the commit.

Status: Fixed » Closed (fixed)

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