https://www.spryker.com logo
Join Slack
Powered by
# help
  • m

    melodic-machine-2956

    06/16/2020, 6:32 AM
    Hi guys, does anybody know if this is the latest documentation for integration of payone into spryker? https://documentation.spryker.com/docs/payone-v1-1 it seems a little bit outdated (Pages have been renamed from Checkout to CheckoutPage meanwhile etc) and our developers are facing some issues while integration this into the checkout process.
    c
    • 2
    • 4
  • a

    ancient-apartment-59274

    06/16/2020, 7:51 AM
    Good Morning, does somebody knows a way to restrict a user in a more general way? We see, there is a customer access module which can register user permission via plugins. These permissions are then queried when it comes to the specific action on the frontend. This happens via the permissions client. In the templates the specific permission gets queried to hide/show the corresponding part like the “Add to cart” button etc ... But as far as i can see , implementing new restrictions (e.g. for glue) would also mean to introduce new permission checks on each certain resource … What we want to achieve is to protect actions like “Add to cart” etc. in a more centralized way e.g. on the business level to have NO separated logic for Yves and Glue. Are there maybe any other permission mechanisms to hook in? Any ideas? Any similar situations in the past? Thanks a lot!
  • f

    full-motorcycle-97796

    06/16/2020, 9:21 AM
    Hi guys, i found a bug in the module spryker/checkout (>=4.0.0). Usually the method placeOrder returns an object with an invalid value for “is_success”. This will happen when a plugin in the middle of the pre condition stack failed. Here my PR: https://github.com/spryker/spryker/pull/7238
    a
    m
    • 3
    • 4
  • l

    loud-rainbow-44827

    06/17/2020, 3:28 PM
    hello. I need to install module from private repository. And I need to add public ssh key to the CLI docker container. How can I do it? How can add this key when entering CLI container using
    docker/sdk cli
    ? thanks.
    a
    • 2
    • 11
  • l

    loud-rainbow-44827

    06/17/2020, 6:21 PM
    Guys do you test your functionality before releasing it? Seems no. It is impossible to work with your product! I updated module
    spryker/navigation-gui (2.5.0 => 2.6.0)
    and now all ZED is broken because you changed
    vendor/spryker/navigation-gui/src/Spryker/Zed/NavigationGui/Communication/navigation.xml
    and we have error. Please fix this ASAP.
    a
    h
    +2
    • 5
    • 21
  • p

    purple-coat-90835

    06/18/2020, 2:01 PM
    Hi there, according to the spryker/router migration guide at https://documentation.spryker.com/v4/docs/migration-guide-router we should add a
    Copy code
    Spryker\Zed\Router\Communication\Plugin\EventDispatcher\RequestAttributesEventDispatcherPlugin
    to our
    EventDispatcherDependencyProvider
    . This Plugin does not exist and it looks like this is causing
    \Spryker\Zed\Auth\Communication\Plugin\EventDispatcher\AuthorizationEventDispatcherPlugin::onKernelRequest
    to fail with endless redirects. Any chance to provide the plugin source directly until the module is fixed?
    a
    a
    • 3
    • 15
  • a

    acoustic-businessperson-27970

    06/19/2020, 7:48 AM
    Hi all, I want to upgrade Kernel from 3.41.1 to 3.50.0 While looking for changes I found two interesting things : 1. New console command for cache building
    ResolvableClassCacheConsole
    2. ENV variable SPRYKER_CODE_BUCKET The question is, does this mean that I have to register the new command and create the new ENV variable ? is it mandatory for the app to work? Can someone please elaborate on this ? thanks
    f
    • 2
    • 2
  • l

    loud-rainbow-44827

    06/19/2020, 11:04 AM
    Hello guys. Again a problem. Now I can't add product to the cart. I updated module
    spryker-shop/cart-page (3.16.0 => 3.18.2)
    and I see that you've changed the
    \SprykerShop\Yves\CartPage\Controller\CartController::addAction
    functionality. You've added this lines
    Copy code
    $form = $this->getFactory()->createCartPageFormFactory()->getAddToCartForm()->handleRequest($request);
    
    if (!$form->isSubmitted() || !$form->isValid()) {
        $this->addErrorMessage(static::MESSAGE_FORM_CSRF_VALIDATION_ERROR);
    
        return $this->redirectResponseInternal(CartControllerProvider::ROUTE_CART);
    }
    When in goes to
    \Symfony\Component\Form\Extension\HttpFoundation\HttpFoundationRequestHandler::handleRequest
    it checks if the form name
    add_to_cart_form
    is present in
    \Symfony\Component\HttpFoundation\InputBag::$parameters
    property. But it doesn't. Therefore method
    \Symfony\Component\Form\Form::isSubmitted
    always returns
    false
    and it shows error message. Am I doing smth wrong? Or is it a bug again?
    a
    • 2
    • 10
  • a

    aloof-electrician-43662

    06/19/2020, 11:34 AM
    hello, how to pass arguments from subscriber to listener, my code
    Copy code
    Subscriber:
    $eventCollection->addListenerQueued(ProductEvents::PRODUCT_ABSTRACT_AFTER_CREATE, new KacperListener('my argument'));
    Listener:
    public function __construct($URL_TO_API) {
            $this->URL_TO_API = $URL_TO_API;
    }
    give me an error:
    Too few arguments to function Pyz\Zed\....\KacperListener::__construct(), 0 passed in
    p
    • 2
    • 14
  • l

    loud-rainbow-44827

    06/19/2020, 12:55 PM
    Is there any way to extend the default state machine?
    DummyPayment01.xml
    i mean. I need to add only few commands to events. I don't need the new OMS
    m
    c
    +3
    • 6
    • 31
  • a

    ancient-apartment-59274

    06/19/2020, 7:11 PM
    Hello, does somebody knows how to generate a test coverage report from spryker docker/sdk testing? I tried from a fresh b2c-demo
    Copy code
    docker/sdk testing codecept -x run -c codeception.functional.yml --coverage
    But i always get an error for the PyzTests
    Copy code
    file_get_contents(/c3/report/clear): failed to open stream: No such file or directory
    I see that some additional spryker modules like the webdriverhelper are hooking in here and do some magic, but it seems that the error occurs before the webdriverhelper can react to anything. The suite.before event is causing the error already on the localserver subscriber … Does anybody has a hint for me? How do you generate coverage reports? Do you and when yes how do you run the spryker pyz tests in general for your CI? Generally I find this topic not too much documented in spryker … Best regards
    • 1
    • 4
  • a

    acoustic-businessperson-27970

    06/22/2020, 8:43 AM
    Hi all, when I run codeception, I get this error
    Copy code
    In FactoryResolver.php line 38:
    
      Spryker Kernel Exception
      Can not resolve ModuleBusinessFactory in Business layer for your module "Module"
      You can fix this by adding the missing Factory to your module.
      E.g. Pyz\Zed\Module\Business\ModuleBusinessFactory
    The thing is that this class exists
    Pyz\Zed\Module\Business\ModuleBusinessFactory
    What am I missing?
    r
    p
    • 3
    • 10
  • a

    aloof-electrician-43662

    06/23/2020, 6:47 AM
    Hi, I create my own module (working), add it to composer package, after i install it in different spryker project i got the error:
    Copy code
    Zed.CRITICAL: Spryker\Zed\Kernel\ClassResolver\Factory\FactoryNotFoundException - Spryker Kernel Exception
    Can not resolve pluginZedFactory in Zed layer for your module "plugin"
    You can fix this by adding the missing Factory to your module.
    E.g. Pyz\Zed\plugin\Zed\pluginZedFactory
    Only one difference is that now plugin goes from vendor folder, and earlier (when create that) goes from Pyc\Zed\ folder how can i fix that
    l
    q
    • 3
    • 7
  • m

    many-continent-24692

    06/23/2020, 2:21 PM
    Anybody here with knowledge on the AmazonPay module?
    c
    • 2
    • 11
  • s

    shy-oxygen-97864

    06/23/2020, 3:54 PM
    Hi, can anyone tell me how I can use other filter types than range, single-select and multi-select in Zed in the b2b shop? I can see that there are other filter types like price-range, enumeration and rating in the vendor folder and I know that I can overwrite them, but I don't know how to use or select them as filter type for a new filter.
  • s

    sparse-fall-78248

    06/24/2020, 8:07 AM
    Hi! Is there a way to specify what runs on a "full" data import or is the list from
    getImporter()
    simply used when running a full import?
    • 1
    • 2
  • w

    wide-flag-26835

    06/24/2020, 8:42 AM
    @average-branch-45579 Hi, sorry that i contact you this way, we (the segmueller-team) have problems regarding the spryker-eco/computop module with spryker/discount, there should be a support ticket ticket number (0001384) i heard that maybe you are having more infos to this? Is there a way to get access to this ticket?
    a
    • 2
    • 10
  • w

    wooden-dress-65386

    06/24/2020, 3:25 PM
    I got a general question regarding
    DependencyProviders
    and
    Factories
    in Spryker: As far as I understood, the idea is that the
    DependencyProvider
    is responsible for solving dependencies to external modules and injecting them into the
    Container
    - the idea behind the
    Factory
    is to 1) actually give access to those external dependencies (through
    get*
    methods) and 2) create inner-module dependencies through
    create*
    methods (e.g. creating new instances of business models, or creating plugin hook arrays, etc). As far as I understood, the
    DependencyProvider
    should not instantiate new inner-module objects (e.g. business models), this is the job of the
    Factory
    . Is this correct? If yes: We have cases in our project, where the
    DependencyProvider
    is actually instantiating new business objects (as an example, an array of
    PostProcessorHookPlugins
    ), setting them in the
    Container
    , and the
    Factory
    is just grabbing those from the
    Container
    , instead of creating them himself. This has been done (as far as I can see) because we have integration tests which are overriding the
    Container
    dependencies through the
    DependencyHelper
    to change the behaviour of a
    Process
    (so it overrides the array of
    PostProcessorHookPlugins
    coming from the
    DependencyProvider
    inside of the integrationtest). Now my question: From an architectural point of view, is this against the concept behind
    DependencyProviders
    and
    Factories
    ? Would it be more correct to refactor this, so that the
    PostProcessorHookPlugins
    actually are instantiated in the
    Factory
    , and the integration-test is mocking the
    Factory
    then instead of overriding the dependency?
    r
    q
    l
    • 4
    • 13
  • m

    mammoth-autumn-37948

    06/25/2020, 6:42 AM
    Hi Guys, i have a small problem in TS. Something is not working as expected... This is just a piece of ts script where the problem is located
    Copy code
    async render(): Promise<void> {
            debug(this.stepEngineCode, '...fetchOnLoad');
            const response = await this.ajaxProviderRender.fetch();
    
            if (!response) {
                return;
            }
    
            if (this.ajaxContainerRender) {
                this.ajaxContainerRender.innerHTML = response;
                await mount();
                this.stepEngineForm = <HTMLFormElement>this.getElementsByClassName(`${this.jsName}__form`)[0];
    //this.stepEngineForm is here undefined -> why?
                this.mapStepEngineFormEvents();
            }
        }
    After put the response in container and re-mount the components my selector (this.stepEngineForm .....) just is always
    undefined
    even if (i checked 1000times) the selector is correct and everything is fine... Due the undefined variable cannot be bind events to the form fetched... This function render just render a form on-load of page... in the case i disable the fetchonLoad, the form is direclty rendered from twig and the same selector present in
    readyCallback
    function works and the events are properly mapped.. I see that Spryker has in Core a similar case about quick-order-form (
    vendor/spryker-shop/quick-order-page/src/SprykerShop/Yves/QuickOrderPage/Theme/default/components/molecules/quick-order-form/quick-order-form.ts:95
    ) and it works as expected... The code is very similar... but on my script just does not work.. Can anyone maybe help me? Thanks in advance.
    q
    • 2
    • 2
  • m

    many-continent-24692

    06/25/2020, 11:20 AM
    Copy code
    vendor/bin/console router:cache:warm-up
    ☝️ is that new or old? (https://documentation.spryker.com/docs/t-create-table-view)
    q
    a
    • 3
    • 7
  • p

    purple-coat-90835

    06/26/2020, 1:32 PM
    Hi @loud-rainbow-44827, maybe you're missing the synchronization behavior in your schema.xml? Something like
    Copy code
    <behavior name="synchronization">
                <parameter name="resource" value="category_image"/>
                <parameter name="locale" required="true"/>
                <parameter name="key_suffix_column" value="fk_category"/>
                <parameter name="queue_group" value="sync.storage.category"/>
            </behavior>
    l
    l
    a
    • 4
    • 24
  • f

    fast-painter-64431

    06/29/2020, 8:33 AM
    Hello Spryker community. I faced an issue of broken ES index, after update it with command
    search:setup
    . Because I've done it on
    strage
    its acceptable to delete index and create it once more. But this is unacceptable for
    prod
    . So my questions are: 1. I tried create copy of index with command
    search:index:copy
    , but get an 400 error. So what the right way of creating copy of existing index? 2. Is there a way, to run commands like
    event:trigger
    on inactive index? Thanks in advance.
    a
    • 2
    • 1
  • m

    many-continent-24692

    06/29/2020, 3:30 PM
    Notice that we get some failed messages in
    event.error
    containing the following JSON:
    Copy code
    "retryMessage": "Retry on: Please enable the event logger in the config_* files to see the error message: `$config[EventConstants::LOGGER_ACTIVE] = true;`",
      "errorMessage": "Please enable the event logger in the config_* files to see the error message: `$config[EventConstants::LOGGER_ACTIVE] = true;`"
    }
  • m

    many-continent-24692

    06/29/2020, 3:30 PM
    does this mean that if I active logging, these fields will be filled in? or that it will write to the error log?
    • 1
    • 5
  • m

    many-continent-24692

    06/30/2020, 6:55 AM
    👋 should
    EventConstnats::ACTIVATE_LOGGING
    be enabled on production ?
    m
    r
    • 3
    • 8
  • s

    salmon-river-59357

    07/01/2020, 10:06 AM
    Hello Spryker community, i’ve a problem in TS with copying a text to clipboard in Safari:
    Copy code
    copyTextToClipboard (text: string): boolean {
             const elem = <HTMLTextAreaElement> document.createElement ('textarea');
             elem.value = text;
             document.body.appendChild (elem);
             elem.select ();
             const isCopied = document.execCommand ('copy');
             document.body.removeChild (elem);
    
             return isCopied;
         }
    That works in FireFox and Chrome. In Safari the method document.execCommand (‘copy’) returns false. What could be the problem?
    h
    • 2
    • 3
  • g

    gray-engine-53418

    07/01/2020, 1:52 PM
    Hello, We are having an unpleasant situation when we synchronize data to Elasticsearch. We are updating a lot of documents. Event processing is fine and generating sync.search.* messages. We use the default  _DEFAULT_SYNC_STORAGE_QUEUE_MESSAGE_CHUNK_SIZE_ which is set to 10000. Elasticsearch is running out of memory and it returns errors. When the bulk writer response has an error, it throws a new BulkResponseException with all the error messages in the message body. The problem occurs when the exception is caught (
    \Spryker\Zed\Synchronization\Business\Message\BulkQueueMessageProcessor::runBulkWrite
    ), it adds the error to all the messages (containing all the errors from the failing messages -
    \Spryker\Zed\Synchronization\Business\Message\BulkQueueMessageProcessor::markEachMessageChunkAsFailed
    ). This will generate messages ~20MB in the error queue (the initial message had ~10KB), consuming a lot of resources (10k messages * 20MB each * number of chunks). What’s the recommended way to solve this issue?
  • r

    rough-scientist-68683

    07/03/2020, 7:42 AM
    Hello and good morning everyone, I've got a question regarding testing: I want to test some functionality in our payment provider's module. To do so I need to "mock" an order. I've learnt that "Transfers" in the _data directory are meant to solve this problem. My question is: Should I create an "Orer transfer mock" in the payment provider's module or is it a better practice to create the mock in the order module an inject it to the pp-module?
    c
    • 2
    • 2
  • l

    loud-rainbow-44827

    07/03/2020, 8:48 AM
    Hello guys. small question about your architecture approach. You declared that we need to use query objects on query containers. But what I see in your data import module that you are using query objects directly in writer steps. For example here
    \Pyz\Zed\DataImport\Business\Model\ProductAbstract\ProductAbstractWriterStep
    or here
    \Pyz\Zed\DataImport\Business\Model\Customer\CustomerWriterStep
    . Actually everywhere. Was it any specific reason to do so? Why didn't you inject the appropriate query containers in constructor of writer steps classes? Because I'm implementing import steps for my custom entity and I'm confused with your approach. thanks
    s
    l
    +2
    • 5
    • 9
  • q

    quick-account-45953

    07/03/2020, 10:16 AM
    @silly-morning-72934 ☝️ ?
1...202122...102Latest