What are the Slack Archives?
It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hi guys, the symfony web profiler bundle from version 4.4.11 does not work in the current suite. The
Hi guys, the symfony web profiler bundle from version 4.4.11 does not work in the current suite. The reason for this is the following line: https://github.com/symfony/web-profiler-bundle/compare/v4.4.10...v4.4.11#diff-77fe531b58ebebb9b089a09099112ab7R425
Comments
-
Hi Daniel, is it about Zed?
0 -
Hi, on my system too.. but only Zed does not work more... Any solution from Spryker Devs?
0 -
For Zed I reported this issue internally a month ago. It's still in the queue for our docker team with a medium prio.
0 -
Ok.. thanks.. 🙂
0 -
it is about zed
0 -
A quick solution is to prepare the version constrain for symfony/web-profiler-bundle.
"symfony/web-profiler-bundle": "<=4.4.10"
0 -
The xhr request which is made by the symfony package is the problem.
For example:
Current url: http(s)://zed…/auth/login --> URL for xhr request http(s)://zed…/auth/_wdt?…The correct url for the xhr request must be http(s)://zed…/_wdt?…
0 -
@valerii.trots i hope this information help your dev team.
0 -
Thanks Daniel! I'll add this info into the ticket but the main concern here is the queue and resources that we don't have enough at the moment unfortunately.
0 -
The issue in `
Spryker\Zed\Gui\Communication\Plugin\Twig\UrlTwigPlugin
it overrides
url()
Twig function by custom one used in Zed UI everywhere.Quick and dirty fix from me (until it will be fixed properly 😉 )
namespace Spryker\Zed\Gui\Communication\Plugin\Twig; use Spryker\Service\Container\ContainerInterface; use Spryker\Service\UtilText\Model\Url\Url; use Spryker\Shared\TwigExtension\Dependency\Plugin\TwigPluginInterface; use Spryker\Zed\Kernel\Communication\AbstractPlugin; use Twig\Environment; use Twig\TwigFunction; /** * @method \Spryker\Zed\Gui\GuiConfig getConfig() * @method \Spryker\Zed\Gui\Communication\GuiCommunicationFactory getFactory() */ class UrlTwigPlugin extends AbstractPlugin implements TwigPluginInterface { public const FUNCTION_NAME_URL = 'url'; /** * {@inheritDoc} * - Extends twig with "url" function to parse and generate URLs based on URL parts. * * @api * * @param \Twig\Environment $twig * @param \Spryker\Service\Container\ContainerInterface $container * * @return \Twig\Environment */ public function extend(Environment $twig, ContainerInterface $container): Environment { $twig->addFunction($this->getUrlFunction($container)); return $twig; } /** * @return \Twig\TwigFunction */ protected function getUrlFunction(ContainerInterface $container): TwigFunction { return new TwigFunction(static::FUNCTION_NAME_URL, function (string $url, array $query = [], array $options = []) use ($container) { if ($url === '_wdt' || strpos($url, '_profile') !== false) { /** @var \Symfony\Cmf\Component\Routing\ChainRouter $globalUrlGenerator */ $globalUrlGenerator = $container->get('url_generator'); $url = $globalUrlGenerator->generate($url, $query); $charset = mb_internal_encoding() ?: 'UTF-8'; return htmlspecialchars($url, ENT_QUOTES | ENT_SUBSTITUTE, $charset); } $url = Url::generate($url, $query, $options); return $url->buildEscaped(); }, ['is_safe' => ['html']]); } }
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 75 Spryker News
- 924 Developer Corner
- 783 Spryker Development
- 88 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 25 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random