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..
Hello. I'm new in Spryker (Frontend), is it possible to use the standard twig `{{ dump() }}` method
Hello. I'm new in Spryker (Frontend), is it possible to use the standard twig {{ dump() }}
method without getting the Fail Whale, anyway is it possible to disable the Fail Whale? Currently I use the docker/sdk logs, but it's a bit bad readable, so a debug (Stack Trace) or Twig dump would be very great 👍 I'm would be pleased to get some input 🙂 Thanks so far.
Comments
-
Hi Norman, what is the version of the demo shop your project started with?
0 -
version: "0.1" namespace: spryker_b2b_dev tag: 'dev' environment: docker image: spryker/php:7.2-alpine3.9
0 -
and with
spryker/docker-sdk.git -b 1.18.4
0 -
i've a look at the version from composer
0 -
This is not I'm asking about but ok, at least it seems that the project is older than latest v202009.0 of the demoshop.
In this case you'll need to apply the patch I attached.
0 -
And here are config entries responsible for rendering different types of error pages:
FailWhale
$config[ErrorHandlerConstants::ERROR_RENDERER] = WebHtmlErrorRenderer::class;
Exception
$config[ErrorHandlerConstants::DISPLAY_ERRORS] = true; $config[ErrorHandlerConstants::ERROR_RENDERER] = WebExceptionErrorRenderer::class;
0 -
As I wrote I'm new at the topic, maybe you can tell me how I find the version number you got?
And so far, thanks for the help I'll try your suggestions.
0 -
Just check your composer.lock file and search for something like
spryker-feature
. There you should be able to see what version of feature and therefore shop has been used.0 -
Ah! 😉 I see, big thanks! I haven't noticed it yet and it's currently at 202001.0, so you guessed right.
0 -
In case of 202001.0 that patch above should help you to be able to dump in twig.
It's fixed in the latest version already.0 -
Hi Valerii, i tried this patch in our project (because we use now a custom twig dump function) and i see that we have another problem..
(we did not released in our project 202009.0)!With ShopApplicationConstants::ENABLE_APPLICATION_DEBUG set to true then some extends in twig does not work more properly..
Our context now is the following:
• we have the default template from spryker original and up-to-date 202001 + some project level migration during composer update
• we have own el_default template
• in some components instead to overwrite the whole content we extends the default component (that extends the component from core level) with this extends command i.e.{% extends '@ShopUi/../default/components/molecules/quantity-counter/quantity-counter.twig' %}
• WithShopApplicationConstants::ENABLE_APPLICATION_DEBUG
set to true these extends does not work more properly --> for example the define data does not merge more the data from default and el_default but it see only the data from el_default.
Is there a possibility to get this working or we have to schedule in our project maybe to remove el_default and use only default template (after migration internally)? I dont want to have el_default components that are 99% just a copy from vendor and only mayve only one line changed/added/removed...Thanks in advance.
0 -
Hi Giovanni, sorry, it's hard to answer straight away, I\we need some time to investigate\clarify this input. And unfortunately we have some tickets in our queue. So could you please create a ticket so we won't lose it here?
Thanks!0 -
Ok, thanks!!!
0 -
Hi Valerii, some news about this problem or u did not get time to ask forward?
0 -
Hi Giovanni, I asked to create a support ticket:
So could you please create a ticket so we won't lose it here?
Someone will try to reproduce it.
0 -
Ops... u are right.. sorry..!!!! 😞 i will create it today...
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 930 Developer Corner
- 788 Spryker Development
- 89 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
- 26 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