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

    ancient-apartment-59274

    06/10/2021, 12:29 PM
    Hello, does somebody successfully adapt the concept of retry/error message queueing from spryker to their own queue message processing plugins? Seems that the code that is managing the retry/error stuff is deeply buried in the event module. I fear, this will be a copycat duplicating the most of the logic here when using it for own modules. I also noticed that there is a new
    count
    header for rabbitmq 3.8+ which will support counting the retries ootb by the death letter mechanism of rabbitmq … unfortunately, spryker rabbitmq is 3.7 … any plans to update? Any other approaches that worked for you? Best
  • m

    mysterious-spring-57104

    06/10/2021, 1:46 PM
    Hello everyone, I tried to implement publish and synchronize as described in the Developer Foundations Workshop but I am getting an SQL error in zed exception logs after updating / creating an entity and the search table is always empty. Here is the error message:
    Copy code
    [logs] [DE/ZED/exception.log] - [2021-06-10T13:23:28.194172+00:00] Zed.CRITICAL: Propel\Runtime\Exception\PropelException - SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'key, created_at, updated_at) VALUES (NULL, 1, '{\"id_counter\":1,\"name\":\"m...' at line 1
    [logs] [DE/ZED/exception.log] - Executed query: 
    [logs] [DE/ZED/exception.log] - INSERT INTO pyz_counter_search (id_counter_search, fk_counter, data, key, created_at, updated_at) VALUES (:p0, :p1, :p2, :p3, :p4, :p5) in "/data/src/Orm/Zed/CounterSearch/Persistence/Base/PyzCounterSearch.php::933"
    So I added a Search Module to zed with a search writer, business factory, facade, listener, event subscriber and registered those in the
    Copy code
    EventDependencyProvider
    RabbitMqConfig
    QueueDependencyProvider
    On data import I am calling:
    Copy code
    $this->addPublishEvents(CounterEvents::ENTITY_PYZ_COUNTER_CREATE, $counterEntity->getIdCounter());
    Am I missing something?
  • r

    rich-exabyte-85

    06/10/2021, 2:16 PM
    Hi, does Spryker have any kind of functionality/module that would be responsible for generating sitemaps? Couldn't find anything so far 🤔
    ➖ 1
    p
    m
    +2
    • 5
    • 14
  • m

    mammoth-painting-63509

    06/10/2021, 3:50 PM
    We have several
    *.schema.xml
    files with columns like this:
    Copy code
    <column name="soft_deleted_at" type="TIMESTAMP" default="NULL" required="false"/>
    But the generated Transfer only accepts
    string|null
    as a parameter:
    Copy code
    * @param string|null $softDeletedAt
         *
         * @return $this
         */
        public function setSoftDeletedAt($softDeletedAt)
    We would like to add
    \DateTimeInterface
    to the possible types, too, since this is possible, but the docblock is wrong. Is there already a way how to solve this?
    • 1
    • 1
  • n

    numerous-ghost-43588

    06/11/2021, 7:55 AM
    Hello All, I added a new store TS into stores.php as below and also added the corresponding config_default file but the newly added store is not showing up in the backoffice stores page, please advise.
    Copy code
    $stores['TS'] = [
            'storesWithSharedPersistence' => ['US'],
        ] + $stores['US'];
    m
    s
    • 3
    • 16
  • s

    sparse-window-24944

    06/11/2021, 10:22 AM
    Hello fellow colleagues, has anyone used quorum queues (https://www.rabbitmq.com/quorum-queues.html) and does anyone know if it’s supported in the spryker/rabbit-mq implementation? With thanks
  • n

    nutritious-angle-64267

    06/14/2021, 4:14 AM
    Hello Everyone, i am trying to update(ALTER) my existing table i have made the changes into the XML schema but when i try to hit the console propel:install command getting this issue. Any suggestions ?
    w
    w
    f
    • 4
    • 3
  • a

    average-continent-3379

    06/14/2021, 10:08 AM
    Hi everyone, any ideas how it could be that I'm getting "category with key xxx could not be found" errors during a category import even though said category is in the db, and exactly with that xxx key? Even in the import file (of course) category with key xxx comes first, and only afterwards follow any subcategories that refer xxx as their parent.
    a
    • 2
    • 8
  • f

    full-florist-92764

    06/14/2021, 11:00 AM
    Hello I'm looking at the docs here https://documentation.spryker.com/docs/state-machine-cookbook#states For a given state in a state machine the reserved attribute is used
    Copy code
    <state name="new" reserved="true"/>
    Does anyone know what does this attribute do? Many thanks
    a
    • 2
    • 2
  • f

    full-florist-92764

    06/14/2021, 12:01 PM
    Hello I have another question regarding transitions this time. Excerpt from https://documentation.spryker.com/docs/state-machine-cookbook#transitions "The event element can be omitted. This way an external call like 
    saveOrder
     or 
    triggerEvent
     is finished. That means that the control flow of the code goes back to the invoking method." It's not clear to me what does this actually mean. If I have a transition without an event, will that transition be executed automatically? Also what would be the use case of a transition without an event?
    • 1
    • 1
  • p

    polite-lunch-97479

    06/14/2021, 12:09 PM
    Is there a way to append to an existing file using the filesystem service?
    w
    • 2
    • 2
  • a

    acceptable-chef-52827

    06/14/2021, 2:10 PM
    Hi All, does anyone done the setup in Ubuntu 20.14 without Docker and Virtual box? I will be facing some issues in the setup. No jobs imported in Jenkins and the storefront has the resource bundle keys displayed. Thanks in advance.
    p
    a
    • 3
    • 9
  • f

    full-florist-92764

    06/14/2021, 2:30 PM
    Is there a cli command to generate unit test classes? I'm doing the developer bootcamp and in the TDD chapter at a certain point it says to add the unit test class. From the docblock I would say some sort of cli command was used to generate it. Does anyone know which one is it?
    s
    • 2
    • 2
  • r

    red-magician-20848

    06/14/2021, 7:56 PM
    Hello everyone i have this issue any solution PS: im trying to install spryker with vagrant in windows 10 thank u .
  • b

    bright-oil-37725

    06/15/2021, 10:30 AM
    hi Fati, can you rerun the command and check the result again. if the exception is triggered again, you should "grep" for that
    3600
    over the local project in order to increase that time out.
    🙂 1
    r
    • 2
    • 1
  • e

    echoing-notebook-55206

    06/15/2021, 7:32 AM
    Short question: I am writing an implementation of the
    QueryExpanderPluginInterface
    . To properly expand the query, I need some functionality from
    Spryker\Client\SearchElasticsearch\Query\QueryBuilder
    . My question is: do I copy the functionality (sounds wrong?), or do I expose the
    createQueryBuilder
    method from the factory via the Facade?
    a
    • 2
    • 3
  • g

    gorgeous-optician-66846

    06/15/2021, 9:00 AM
    Hello everyone! Is there a way to completely delete created CMS pages or blocks in Spryker? Admin BO supports only "Deactivate" as I know. Is it somewhere supported or do you know an extension to do this? Otherwise I would implement a console command to achieve this. Thanks for your help in advance.
  • a

    acceptable-chef-52827

    06/15/2021, 7:13 PM
    Hi All, I will be facing when logging into the admin panel. This exception keeps popping up.
    a
    l
    • 3
    • 7
  • r

    rough-egg-5359

    06/16/2021, 8:58 AM
    Hello.. Guys anyone knows how I can add id_product_concrete to product in Product List Page ?
    e
    • 2
    • 3
  • t

    thousands-activity-73373

    06/16/2021, 9:41 AM
    Hey guys, when i run the command propel:install i get an error and after these error i get the information that ""Class 'Generated\Shared\Transfer\SpyAvailabilityAbstractEntityTransfer' not found"? Can somebody help me? It is a complette new installtion withour any customizations.
    r
    • 2
    • 6
  • a

    ancient-apartment-59274

    06/16/2021, 11:45 AM
    Hello, is there a smart way to “force” some entity to be flagged as “updated” without overriding the propel entity behaviour at all? For example if we write price data into the storage table, the lastUpdate date is updated in this moment … but if we fetch later the exact price data again, the record is not marked as some updated record since the data is the same, but we actually compare this date to decide when to refresh prices …. so the first idea is to “touch” the record manually even if the record didn’t changed at all … any possibilities? Best
    f
    • 2
    • 29
  • g

    great-cpu-16911

    06/17/2021, 12:52 AM
    Hi everyone, I want obtain all the list of banners in GLUE. I know exist this in Documentation but i want obtain a list. The only way for me is override "content-banners-rest-api" to get all. Is that correct?
  • a

    ancient-apartment-59274

    06/17/2021, 9:04 AM
    Hello, can anybody tell me, what the field “price_data” in “spy_price_product_store” is intended to be? Seems there must be json inside, i have seen various json encode/decode operations. Best
    p
    s
    • 3
    • 8
  • c

    crooked-addition-36054

    06/17/2021, 10:28 AM
    Hi, is there a standard ruleset for Web Application Firewalls for spryker? a boilerplate to start from? We will be using the service of link11, but we do not mind the format,
  • f

    freezing-beard-78365

    06/17/2021, 8:42 PM
    hello, I'm getting
    Copy code
    Twig\Error\LoaderError - Template "@HelloString/views/index/index.twig" is not defined (Spryker\Shared\Twig\TwigFilesystemLoader: Unable to find template "@HelloString/views/index/index.twig" (cached).).
    although i have my index.twig in
    src/Pyz/Yves/HelloString/Theme/Default/Index/Index.twig
    f
    • 2
    • 3
  • n

    nutritious-angle-64267

    06/18/2021, 5:26 AM
    Hello Everyone, i have import a slot template and some slots using the csv file data is being import successfully into database but template is not coming on the Zed UI. Any suggestion on this ?
    a
    • 2
    • 2
  • l

    loud-rainbow-44827

    06/18/2021, 7:00 AM
    hello. does spryker have the translations functionality in javascript?
    a
    • 2
    • 8
  • a

    acoustic-businessperson-27970

    06/18/2021, 9:00 AM
    Hello everyone, I have recently upgraded to the newest Spryker devvm and I am having a problem when running
    vendor/bin/instal
    it fails on creating the search index The command that is failing is:
    Copy code
    Command setup-search for DE store [vendor/bin/console setup:search] (In progress...)
    Untitled
    👍 1
    a
    g
    • 3
    • 10
  • a

    ancient-apartment-59274

    06/18/2021, 9:37 AM
    Hello, does anybody know if the order placing from frontend in spryker (via Zed Client) is generally intended to be decoupled from the OMS in backend? So my expectation is that when placing an order after checkout, the order is created in backend as “new” and the yves zed client gets a response. The follow up processing is done by zed via cronjobs etc. At the moment it feels like that any OMS step, that has an onEnter=true flag, is executed as well along the zed request from frontend. This might lead to timeouts if there are expensive follow up OMS steps. Is this behaviour correct or do i miss something here? If yes, how to “decouple” it from the frontend placement so that the user experience a fast checkout? It seems it can be solved using various intermediate states and condition plugins, but honestly it feels a bit overkill just for “decoupling” the first “new” state from the further order processing. Best
    a
    l
    • 3
    • 6
  • f

    freezing-beard-78365

    06/18/2021, 12:06 PM
    Copy code
    Store: DE | Environment: development
    Creating Database
    RuntimeException - Exception: createdb: error: could not connect to database template1: FATAL:  role "root" does not exist
    
    in /home/sqli/Desktop/work/learning/sprker/b2c-demo-shop/vendor/spryker/propel/src/Spryker/Zed/Propel/Business/Model/PropelDatabase/Adapter/PostgreSql/CreatePostgreSqlDatabase.php (133)
    Command: vendor/bin/console propel:install where can i update my database role i tried updating it in deploy.dev.yml but nothing changed
1...404142...102Latest