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

    rough-agency-88294

    11/01/2022, 1:15 PM
    Hi suddenly our backoffice starts crashing on product edit, we haven't (consciously) updated anything. I assume something has changed and needs updating?
    s
    • 2
    • 4
  • s

    stocky-architect-18877

    11/02/2022, 4:48 AM
    Hi I want to add one CSS file but spryker puts public folder in gitignore can any one help how should i upload my custom CSS to git ?
    w
    • 2
    • 2
  • b

    billions-carpet-85832

    11/02/2022, 1:11 PM
    Hello, I noticed one thing in IDE(VS Code) that few spryker classes are shown as deprecated like RestRequestInterface and RestResponseInterface. The message getting shown is
    Copy code
    @deprecated — Will be removed without replacement.
    I'm using intelephense(1007) plugin for my VS code. Can someone please help me in understanding the problem here?
    w
    • 2
    • 1
  • b

    bright-cat-24225

    11/02/2022, 2:28 PM
    Hi at all, has anybody problems with logging in Spryker PaaS? At this moment we see no logs in AWS Cloudwatch and we are struggling with log configuration or some unknown topics.
    deploy.dev.yml
    docker:
    debug:
    enabled: true
    And
    $config[LogConstants::LOG_LEVEL] = getenv('SPRYKER_DEBUG_ENABLED') ? Logger::DEBUG : Logger::ERROR;
    w
    • 2
    • 2
  • m

    millions-river-67963

    11/02/2022, 2:35 PM
    Hello Team! I am new to Spryker. I am trying to a REST API that reads in data from an external source that my module can use from the backend. I'm having trouble finding a place to start. Does anyone have any documentation or first steps they could share?
    w
    • 2
    • 1
  • e

    elegant-cartoon-61249

    11/02/2022, 7:35 PM
    #help I am not able to update the host file in my system it shows "You don't have permission" How to implement the highlighted step
    w
    a
    • 3
    • 3
  • g

    glamorous-book-96870

    11/03/2022, 2:15 AM
    Hey everyone! I'm looking to add a collection of FAQ fields to the merchant profile form. I added a a faqCollection transfer and the corresponding faqCollection field to the merchant profile transfer but it doesn't seem to want to save any of the form fields. I've scoured both spryker and symfony documentation but i haven't been able to firgure it out. Are there any examples of something similar to what i'm trying to accomplish?
  • s

    stocky-architect-18877

    11/03/2022, 7:25 AM
    Hi How should i add custom CSS for my back office glossary module i want to change height of the textarea
    w
    • 2
    • 3
  • f

    fast-activity-30172

    11/03/2022, 7:32 AM
    Hey everyone, I am looking for a dropdown filter above the listing of the category module. same as the image attached. can anyone tell me how can I add drop-downs there and how can I pass data to the backend on the change event to filter out records??
    w
    • 2
    • 5
  • s

    stocky-architect-18877

    11/03/2022, 10:05 AM
    Hi I want to insert data in glossary module with the help of CSV file Can some one suggest me the best way to do it ..?
    w
    • 2
    • 5
  • w

    wonderful-baker-94910

    11/03/2022, 11:18 AM
    Hey ! When i use Docker/sdk up command it shows this warning : Neither SSH agent or COMPOSER-AUTH is configured. Private repositories would not be accessible. Is this important or should i ignore this?
    w
    • 2
    • 2
  • r

    rough-agency-88294

    11/03/2022, 1:21 PM
    Is there a good way to programmatically apply a discount to an order during checkout?
    e
    • 2
    • 20
  • s

    stocky-architect-18877

    11/04/2022, 5:58 AM
    How should i upload a csv file and move it into the folder ?
    w
    • 2
    • 1
  • s

    some-gpu-85939

    11/04/2022, 8:56 AM
    Hi, if anyone successfully integrate Marketplace to a Spryker B2B Shop project? Described in https://docs.spryker.com/docs/marketplace/dev/feature-integration-guides/202204.0/marketplace-merchant-feature-integration.html After run composer require spryker-feature/marketplace-merchant:"202204.0" --update-with-dependencies I get error like below when try to run any command like propel:install or data:import PHP Fatal error: Declaration of Orm\Zed\Acl\Persistence\Map\SpyAclGroupArchiveTableMap::initialize() must be compatible with Propel\Runtime\Map\TableMap::initialize(): void in /data/src/Orm/Zed/Acl/Persistence/Map/SpyAclGroupArchiveTableMap.php on line 185 Fatal error: Declaration of Orm\Zed\Acl\Persistence\Map\SpyAclGroupArchiveTableMap::initialize() must be compatible with Propel\Runtime\Map\TableMap::initialize(): void in /data/src/Orm/Zed/Acl/Persistence/Map/SpyAclGroupArchiveTableMap.php on line 185 ErrorException - Exception: FATAL ERROR - Declaration of Orm\Zed\Acl\Persistence\Map\SpyAclGroupArchiveTableMap::initialize() must be compatible with Propel\Runtime\Map\TableMap::initialize(): void in /data/src/Orm/Zed/Acl/Persistence/Map/SpyAclGroupArchiveTableMap.php (185)
    e
    • 2
    • 9
  • g

    great-afternoon-41358

    11/04/2022, 10:10 AM
    Hello everyone here 👋 I would like to know if there is any possibility to add the
    ext-xsl
    extension to the docker image via configuration files (like `deploy.yml`files) in order to not build a custom image for the shop. I have a composer dependency that requires this extension and I need it to have on every deployed environment. How can I proceed with that?
    👍 1
    w
    m
    • 3
    • 4
  • m

    microscopic-refrigerator-51986

    11/04/2022, 5:15 PM
    Hey! Having trouble with Elasticsearch: added new store to project (named AZ). When deploying to AWS, the command
    APPLICATION_STORE=AZ vendor/bin/console search:setup && vendor/bin/console search:setup:sources && vendor/bin/console search:setup:source-map
    fails with the following exception:
    Elastica\Exception\ResponseException - analyzer [fulltext_search_analyzer] has not been configured in mappings in “/data/vendor/ruflin/elastica/src/Transport/Http.php::178”
    The new store’s Elasticsearch uses the same shared config as our default store (and default store handles the commands above just fine). Also, when deploying locally there is no such problem. In the end, any request to AZ search results in exception like this:
    _Search failed with the following reason: failed to create query: [nested] nested object under path [integer-facet] is not of nested type [index: az_page] [reason: all shards failed]_
    Any thoughts? Can it be a problem with AWS configuration or am I missing something?
    ✅ 1
    b
    • 2
    • 4
  • s

    shy-horse-47987

    11/04/2022, 11:09 PM
    Hello! I'm trying to add a navigation entry link to the Zed Backoffice left navigation from a module. I can add an entry into the global
    config/Zed/navigation.xml
    and the changes shows up fine, just as I would expect. But creating a navigation.xml in my project module at
    Communication/navigation.xml
    does not seem to affect the left navigation at all. I have my
    Communication/Controller/IndexController.php
    working and able to run PHP code and generate output, so I know the module itself is working. This is basically a hello-world module, I just can't figure out why it's not loading my navigation.xml. It seems that the online documentation for Zed's backoffice navigation is rather sparse - I found a total of 2 pages discussing it. Any help would be appreciated!
    e
    p
    • 3
    • 16
  • f

    fierce-agency-72925

    11/07/2022, 6:14 AM
    Hello, How to debug the following error
    Copy code
    Spryker\Glue\Kernel\ClassResolver\DependencyProvider\DependencyProviderNotFoundException - Exception: Spryker Kernel Exception
    Can not resolve NgcategoryRestApiDependencyProvider for your module "NgcategoryRestApi"
    You can fix this by adding the missing DependencyProvider to your module.
    w
    c
    • 3
    • 9
  • m

    mammoth-autumn-37948

    11/07/2022, 9:50 AM
    Hello everyone 👋, Has anyone already had any problems writing large values into Redis that caused timeouts or similar problems? From NewRelic I noticed that it needs 60sec to make a
    setex
    and then the whole thing goes into 504 Gateway-Timeout of course. Can anyone give me some Tip on how to analyze and/or understand why this happens? Thank u in advance!
    a
    • 2
    • 3
  • c

    cool-beard-17954

    11/08/2022, 2:40 PM
    Hi there ! Someone know why the ids and passwords does'nt work on the different part of the shop like "www.myshop-staging.cloud.spryker.com" or "backoffice.myshop-staging.cloud.spryker.com" ? Did i have to create a first user for these sections or something ?
    p
    w
    • 3
    • 6
  • c

    calm-toddler-60539

    11/08/2022, 2:51 PM
    Hello all, I am trying to add a test message to queue via a glue endpoint, I get the following error:
    Copy code
    Glue.ERROR: Default queue connection not found. You can fix this by adding `RabbitMqEnv::RABBITMQ_DEFAULT_CONNECTION = true` in your queue connection in `config_*.php` files {"trace":"#0 /data/vendor/spryker/rabbit-mq/src/Spryker/Client/RabbitMq/Model/Connection/ConnectionManager.php(163): Spryker\\Client\\RabbitMq\\Model\\Connection\\ConnectionManager->getDefaultQueueConnectionTransfer() ...
    I just have the following code in the getAction() method of resource controller which leads the the error above.
    Copy code
    $queueData[] = (new QueueSendMessageTransfer())->setBody("hello!");
    
            $queueClient = $this->getFactory()->getQueueClient();
            $queueClient->sendMessages(
                AntelopesImportRestApiConstants::ANTELOPE_API_IMPORT_QUEUE,
                $queueData
            );
    
            return $response;
    Can someone please help?
    w
    m
    • 3
    • 11
  • f

    fierce-agency-72925

    11/08/2022, 9:36 PM
    Hello, I am trying to build a test for custom REST Api module an facing some issue. 1. Codeception.yml
    Copy code
    namespace: PyzTest\Glue\NgcategoryRestApi
    
    paths:
        tests: .
        data: _data
        support: _support
        log: _output
    
    coverage:
        enabled: true
        remote: false
        whitelist: { include: ['../../../../src/*'] }
    
    suites:
        Glue:
            path: Plugin
            class_name: NgcategoryRestApiPluginTester
            modules:
                enabled:
                    - \SprykerTest\Glue\Testify\Helper\FactoryHelper
                    - \SprykerTest\Shared\Testify\Helper\LocatorHelper:
                      projectNamespaces: ['Pyz']
    2 . Generated *TesterAction.php trait file has getLocator() method ( When I remove - \SprykerTest\Shared\Testify\Helper\LocatorHelper: projectNamespaces: ['Pyz'] , instead of config key error it shows another error -
    Copy code
    Test  Plugin/NgcategoryRestApiResourceTest.php:testReturnsErrorOnInvalidRequestForNgcategoryRestApi
                                                                                                                            
      [RuntimeException] Call to undefined method PyzTest\Glue\NgcategoryRestApi\NgcategoryRestApiPluginTester::getLocator  
                                                                                                                            
    #1  /data/tests/PyzTest/Glue/NgcategoryRestApi/Plugin/NgcategoryRestApiResourceTest.php:41
    #2  /data/vendor/bin/codecept:112
    
    ---------
    *NOTE: My API is working as expected ( tested in Postman )
    w
    • 2
    • 2
  • s

    stocky-kilobyte-45277

    11/09/2022, 8:06 AM
    Strange, I'm trying to put a React component into Yves but it's not showing up at all. It's transpiling alright with Babel, but my component is just not there. I'm following this: https://docs.spryker.com/docs/scos/dev/front-end-development/yves/atomic-frontend/integrating-react-into-atomic-frontend.html Any ideas what I might be doing wrong? 🙂 I tried it in several twig files, but no luck. 😕
    i
    • 2
    • 4
  • c

    calm-toddler-60539

    11/09/2022, 10:07 AM
    Can we call Zed modules through the Glue API modules? Like this:
    Copy code
    public function addAntelopeQueueImporterProviderFacade(Container $container) : Container
        {
            $container->set(static::CLIENT_ANTELOPE_IMPORT, function (Container $container){
               $object = $container->getLocator()->antelopeQueueImporter()->facade();
            });
    
            return $container;
        }
    As this is not working for me, getting
    LogicException - Exception: Could not map method "facade" to a locator!
    w
    a
    • 3
    • 3
  • s

    stocky-architect-18877

    11/09/2022, 10:39 AM
    Hi Team How to create a fake file and read that CSV file I wanted to write some unit test cases when we upload CSV. ?
    w
    • 2
    • 1
  • c

    clever-jelly-54786

    11/09/2022, 11:16 AM
    Hi Everyone, facing this issue while running the command: console sync:data, any suggestion? Thanks.
  • e

    early-army-90039

    11/09/2022, 11:36 AM
    Hi Please let me know how can I write unit test cases of the function having redis dependency. In function I am getting the value from redis after passing key.
    Copy code
    public function getGlobalConfigValueByKey(string $configKey)
        {
            $configValueData = $this->getFactory()->getStorageClient()->get(GlobalConfigConfig::REDIS_GLOBAL_CONFIG_KEY . ':' . strtolower($configKey));
            unset($configValueData['_timestamp']);
    
            return json_encode($configValueData);
        }
    w
    • 2
    • 16
  • n

    numerous-kitchen-79937

    11/09/2022, 1:58 PM
    Hey Sprykers! I’m getting an error when using an entity from Propel:
    Unable to execute INSERT statement [INSERT INTO spy_hello_world_message_storage (id_hello_world_message_storage, fk_hello_world_message, data, key, created_at, updated_at) VALUES (:p0, :p1, :p2, :p3, :p4, :p5)]
    FYI: I’m going through this Tutorial: https://docs.spryker.com/docs/scos/dev/back-end-development/data-manipulation/data-publishing/handle-data-with-publish-and-synchronization.html So I’m using the storageEntity from propel like this:
    Copy code
    $storageEntity = new SpyHelloWorldMessageStorage();
    $storageEntity->setFkHelloWorldMessage(2);
    $storageEntity->setData(array('test'));
    $storageEntity->save();
    The schema file looks like this:
    Copy code
    <?xml version="1.0"?>
    <database xmlns:xsi="<http://www.w3.org/2001/XMLSchema-instance>" name="zed"
              xsi:noNamespaceSchemaLocation="<http://static.spryker.com/schema-01.xsd>"
              namespace="Orm\Zed\AntelopeSearch\Persistence" package="src.Orm.Zed.AntelopeSearch.Persistence">
        <table name="spy_hello_world_message_storage" idMethod="native" allowPkInsert="true">
            <column name="id_hello_world_message_storage" type="BIGINT" autoIncrement="true" primaryKey="true"/>
            <column name="fk_hello_world_message" type="INTEGER" required="true"/>
            <index name="spy_hello_world_message_storage-fk_hello_world_message">
                <index-column name="fk_hello_world_message"/>
            </index>
            <behavior name="synchronization">
                <parameter name="resource" value="message"/>
                <parameter name="key_suffix_column" value="fk_hello_world_message"/>
                <parameter name="queue_group" value="sync.storage.hello"/>
            </behavior>
            <behavior name="timestampable"/>
            <id-method-parameter value="spy_hello_world_message_storage_pk_seq"/>
        </table>
    
    </database>
    I’ve run console propel:install etc. and the entityORM classes are there and don’t show any errors etc.
    g
    p
    • 3
    • 32
  • q

    quiet-ram-72134

    11/09/2022, 3:39 PM
    Hey all... xdebug connection problems again... In Phpstorm server is configured, container are started with th -x flag, in xdebug.ini ${SPRYKER_XDEBUG_HOST_IP} is replaced with host.docker.internal. Ide is set to listen for incoming xdebug connections. In the logs xdebug complains time-outs (NOTICE: PHP message: Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: 172.18.208.119:9003 (through xdebug.client_host/xdebug.client_port) :-() I could not get any breakpoint hit in Phpstorm. Any suggestions to get xdebug connect to ide? Probably i have to mention that i am using the b2b demo shop...
    a
    • 2
    • 3
  • c

    calm-toddler-60539

    11/09/2022, 4:04 PM
    Hello all, I am getting this exception inside a client stub:
    Spryker\Shared\ZedRequest\Client\Exception\TransferNotFoundException - Exception: No class name given for Transfer generation.
    When I call this function:
    Copy code
    public function addAntelopeToQueue(AntelopeTransfer $antelopeTransfer): TransferInterface
    {
        return $this->zedRequestClient->call(
            '/bucket-importer/gateway/add-antelope-to-queue',
            $antelopeTransfer
            );
        
    }
    Can someone please help?
    w
    • 2
    • 8
1...707172...102Latest