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

    kind-knife-79323

    11/09/2021, 1:10 PM
    Hi.i try to run this command npm run yves. I get this error!!how i can fix it . and error.log:
    Copy code
    10 silly lifecycle alles.auto@~yves: Args: [ '-c', 'run-s "yves:development:* -- {@}" --' ]
    11 silly lifecycle alles.auto@~yves: Returned: code: 1  signal: null
    12 info lifecycle alles.auto@~yves: Failed to exec yves script
    13 verbose stack Error: alles.auto@ yves: `run-s "yves:development:* -- {@}" --`
    13 verbose stack Exit status 1
    13 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
    13 verbose stack     at EventEmitter.emit (events.js:315:20)
    13 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
    13 verbose stack     at ChildProcess.emit (events.js:315:20)
    13 verbose stack     at maybeClose (internal/child_process.js:1021:16)
    13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
    14 verbose pkgid alles.auto@
    15 verbose cwd /var/www/html/skryper/avag
    16 verbose Linux 5.4.0-89-generic
    17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "yves"
    18 verbose node v12.18.3
    19 verbose npm  v6.14.6
    20 error code ELIFECYCLE
    21 error errno 1
    22 error alles.auto@ yves: `run-s "yves:development:* -- {@}" --`
    22 error Exit status 1
    23 error Failed at the alles.auto@ yves script.
    23 error This is probably not a problem with npm. There is likely additional logging output above.
    24 verbose exit [ 1, true ]
  • k

    kind-knife-79323

    11/09/2021, 2:29 PM
    i fixed . Follow this steps: npm cache clean --force delete node_modules folder delete package-lock.json file npm install and then run it.
    👍 1
  • i

    incalculable-van-2330

    11/09/2021, 10:17 PM
    Hello Community. A couple of questions about Carts. Some of our users are leaving carts open on our store and this is generating a good amount of product reserves on our availability making it impossible for other users to purchase that inventory. (Some carts sometimes may take a day or tow to be concluded) 1. Is there a way we can setup a cart expiration time, in a configuration, in order for carts over that time to be deleted and reserves return to stock? 2. Could we make carts do no generate that reserve into spryker availability , meaning only affecting availability at order purchase?
    a
    g
    r
    • 4
    • 5
  • r

    rich-solstice-79518

    11/10/2021, 5:08 AM
    Can anybody guide on what to take next step for this red marked error
    âś… 1
    k
    • 2
    • 2
  • p

    purple-forest-91115

    11/10/2021, 8:14 AM
    This message was deleted.
    m
    r
    a
    • 4
    • 8
  • b

    bored-quill-76197

    11/10/2021, 3:17 PM
    Hi all, I recently set up your B2C demo shop. After I created a new user, I wanted to set a new password for him, but I faced the following error. Do you have any suggestions why it keeps failing?
    a
    • 2
    • 2
  • q

    quaint-midnight-78937

    11/11/2021, 8:23 AM
    Hi there! I am facing a problem with a cron job. I have a job that is grabbing some data and creates a report out of it. This should only happen on the production environment. Therefore I defined the job like this in `jenkins.php`:
    Copy code
    $jobs[] = [
        'name' => 'daily-reports',
        'command' => '$PHP_BIN vendor/bin/console sales-reporting:reports -vvv',
        'schedule' => '0 5 * * 0-6',
        'enable' => true,
        'stores' => ['DE'],
        'run_on_non_production' => false,
    ];
    Having set the property
    run_on_non_production
    to
    false
    , I assume that this shouldn't run on my local environment and yet it does. Any thoughts what's wrong here?
    p
    e
    • 3
    • 4
  • t

    thousands-postman-15049

    11/12/2021, 9:04 AM
    hi #help, im trying to access the current customer within a custom quote-expander plugin. however the customer is neither set in the quote itself and i cant access it from the customer-client (it returns null). i am definitely logged in though and if i have a look in the call stack, the quote actually has a customer reference at some stage… anyone got an idea?
    a
    • 2
    • 7
  • m

    mysterious-ambulance-11183

    11/12/2021, 9:33 AM
    Hi there #help! I'm currently checking the OOTB possibilities of the CMS module. And I was wondering how you guys are working with content images. For example this Content Item uses an image which it references by an URL, so it needs to be uploaded/placed somewhere by someone, which from my point of view does not sound like an optimal workflow. How do you handle this, or are you even using the OOTB CMS module?
    p
    • 2
    • 1
  • b

    best-sundown-96727

    11/16/2021, 9:42 AM
    Hey, can anyone tell me the password for the customers in the B2B Demo Shop Data? It seems to be the same for all accounts, but so far I had no success trying out
    p
    c
    k
    • 4
    • 14
  • r

    rough-scientist-68683

    11/16/2021, 1:25 PM
    Hi everyone, I want to upgrade our ElasticSearch from version 5.6 to 7.10. I read already the migration guide and started to update the modules. We have some
    PageMapExpanderPlugins
    , for example one that implements
    \Spryker\Zed\ProductPageSearch\Dependency\Plugin\ProductPageMapExpanderInterface
    . This one is deprecated without a replacement and now I wonder what I need to do with such plugins. I tried to find some hints in the documentation and in the migration guide but didn't find anything helpful. Does anyone have a hint for me where to look or what to do with the PageMapExpanderPlugins?
    p
    • 2
    • 3
  • c

    calm-controller-74059

    11/16/2021, 2:59 PM
    Hello guys few questions about twig implementation: 1. Is there a way to get logged customer in Twig template? 2. Is there a way to set global env related twig variable? I need api key be used for service like GTM. 3. If it’s a better way to get Yves base url in twig than
    Copy code
    {{ app.request.getSchemeAndHttpHost }}
    a
    f
    • 3
    • 4
  • m

    mammoth-painting-63509

    11/16/2021, 5:42 PM
    Is it somehow possible to move only the whole order in the OMS if a condition is met? Imagine having an order with multiple items and an OMS transition from
    new
    to
    paid
    with the condition
    IsPaid
    . The
    oms:check-condition
    starts to check the condition for the first item, but it's
    false
    at this moment. The process picks the next item. In the meantime, the notification arrived and suddenly all remaining items from that order are in the
    paid
    state, but the first one is still in
    new
    . Any ideas on how to solve this? I already tried to couple that condition with an empty command that implements
    CommandByOrderInterface
    , but this does not work as expected.
    a
    m
    • 3
    • 9
  • r

    rough-scientist-68683

    11/17/2021, 10:39 AM
    Hi all, I just stumbled about the removal of
    \Spryker\Zed\ProductLabel\Business\Label\LabelReaderInterface
    . It looks to me that it's basically replaced by the
    \Spryker\Zed\ProductLabel\Persistence\ProductLabelRepositoryInterface
    (have a look here) . I wonder why this proxy was removed since from what I know it's a common practice to use a reader/writer/updater in between. Furthermore, the LabelCreator, LabelDeleter and LabelUpdater still exist. Should I now use the Repository directly in the business class that formerly used the LabelReader?
  • r

    rough-egg-5359

    11/17/2021, 12:08 PM
    Hello
  • r

    rough-egg-5359

    11/17/2021, 12:09 PM
    Guys how I can remove trailing slash in url's ?
    f
    a
    • 3
    • 3
  • m

    mysterious-king-59256

    11/18/2021, 8:00 AM
    hi, I again have problem with codeception. Problem is with autoloading. I can’t enable some helpers (for example this from screenshot). Till now I found, that it loads modules alphabetically and if module is loaded after imported module, then it throws error… This is for sure the rule for tests created by me (eg import 
    \PyzAcceptanceTest\Shared\Testify\Helper\Environment
     in the 
    PyzAcceptanceTest\Glue\ExampleModuleRestApi
    ). Not sure how it works with modules from vendor (eg 
    \SprykerTest\Glue\GlueApplication\Helper\GlueBootstrap
    ).  Do you know how to deal with this?
    f
    • 2
    • 4
  • m

    mysterious-ambulance-11183

    11/18/2021, 10:13 AM
    Hi #help, I'm curious, because I could not find anything in the documentation or in the code (tbh. just a quick search). Is there any REST-API to access functionality regarding Zed/Backoffice? Like creating a CMS page?
    a
    a
    • 3
    • 6
  • k

    kind-knife-79323

    11/21/2021, 4:14 PM
    Hi i try to build a module in Zed i follow these steps 1-Create HelloSpryker folder in src/Pyz/Zed/ 2-Create IndexController class in src/Pyz/Zed/HelloSpryker/Communication/Controller/IndexController.php
    Copy code
    <?php
    namespace Pyz\Zed\HelloSpryker\Communication\Controller;
    
    use Spryker\Zed\Kernel\Communication\Controller\AbstractController;
    use Symfony\Component\HttpFoundation\Request;
    
    class IndexController extends AbstractController
    {
        /**
         * @param \Symfony\Component\HttpFoundation\Request $request
         *
         * @return array
         */
        public function indexAction(Request $request)
        {
            return ['string' => 'Test modal!'];
        }
    }
    3-Create index.twig in src/Pyz/Zed/HelloSpryker/Presentation/Index/index.twig
    Copy code
    {% extends '@Gui/Layout/layout.twig' %}
    
    {% block content %}
        {{ string }}
    {% endblock %}
    But when i want to get result in http://yves.us.spryker.local/hello-spryker i get an error NotFoundHttpException No route found for "GET http://backoffice.us.spryker.local/hello-spryker" Also i clear cache cache:empty-all and yves routercachewarm-up what's my wrong?
    p
    • 2
    • 4
  • p

    purple-forest-91115

    11/23/2021, 6:04 AM
    This message was deleted.
    f
    p
    h
    • 4
    • 3
  • h

    hundreds-flower-81270

    11/23/2021, 12:47 PM
    Hi, in Zed Backend at /maintenance/zed-config there is a PHP Config Key "PROJECT_TIMEZONE". But this is marked as deprecated without replacement: Spryker\Shared\Application\ApplicationConstants
    Copy code
    /**
     * Global timezone used to for underlying data, timezones for presentation layer can be changed in stores configuration
     *
     * @deprecated Will be removed without replacement.
     *
     * @api
     */
    public const PROJECT_TIMEZONE = 'PROJECT_TIMEZONE';
    What am I supposed to use instead? Background: The queries for the sales statistic dashboard don't translate to our local time zone (while order reference date and order times are correct in our timezone).
    đź‘€ 1
    l
    • 2
    • 2
  • a

    aloof-advantage-27856

    11/23/2021, 1:22 PM
    Hi Friends, I have a query regarding the spryker application. I was doing a demo on running both b2c and b2b application in the same server using docker containers. However, the b2c is getting terminated when b2b is made up and viceversa. We used the b2b,b2c and docker-sdk repo specified in the Github itself. Please let me if there is any steps we need to do additionally along with downloading it and building using docker-sdk.
    w
    p
    • 3
    • 6
  • c

    colossal-alligator-85110

    11/24/2021, 10:19 AM
    Hi All, I have added a new scss file in my yves module in the structure of Theme->default->components->molecules->myFolder->myScssFIle. I run these commands to check my result docker/sdk console frontendnpmrun docker/sdk console frontendyvesbuild but yves build command run succesfully facing issue while npm:run i have attached my npm error screenshot. Can anyone tell to resolve this..?
    k
    f
    • 3
    • 6
  • m

    mammoth-autumn-37948

    11/24/2021, 11:52 AM
    [SOLVED] Hi everyone 🤝, I have some configuration for queue:
    Copy code
    // ---------- Queue
    $config[QueueConstants::QUEUE_ADAPTER_CONFIGURATION_DEFAULT] = [
        QueueConfig::CONFIG_QUEUE_ADAPTER => RabbitMqAdapter::class,
        QueueConfig::CONFIG_MAX_WORKER_NUMBER => 12,
    ];
    
    $config[QueueConstants::QUEUE_ADAPTER_CONFIGURATION][ProductPageSearchConfig::PUBLISH_PRODUCT_ABSTRACT_PAGE][QueueConfig::CONFIG_MAX_WORKER_NUMBER] = 6;
    As u see I defined a specific
    CONFIG_MAX_WORKER_NUMBER
    for queue
    PUBLISH_PRODUCT_ABSTRACT_PAGE
    because it has an high usage of memory (known issue!). Since this configuration the worker does not start more the task event for this specific queue. I debugged
    \Spryker\Zed\Queue\Business\Worker\Worker::startProcesses
    to see if the right number of maxWorkerNumbers is read and calculated and everything is fine, but no processes are started. Can anyone help me to understand the problem? Thank u in advance.!!!
    g
    a
    f
    • 4
    • 37
  • b

    better-controller-5205

    11/26/2021, 8:31 AM
    Hi, I have one question about the backend-api Endpoint Spryker offers (e.g. backend-api.de.spryker.local ). Where is it exactly for and for what can it be used. The documentation was not helpful here (or I am searching wrong). Thanks for your help
    đź‘€ 2
    m
    p
    l
    • 4
    • 7
  • b

    best-sundown-96727

    11/26/2021, 10:20 AM
    Zed Route Security / Auth: Hi, can someone maybe point me in the right direction 🙂 Basically I want to have a Zed Controller to consume Akeneo Webhooks and disable the default Zed Auth and instead check the request signature. I found the \Spryker\Shared\SecurityExtension\Dependency\Plugin\SecurityPluginInterface which could be the right place, but I also did nod find out yet how to use it
    h
    m
    • 3
    • 7
  • k

    kind-tiger-22841

    11/27/2021, 6:53 PM
    Hey! How can I remove items in the backoffice in the content tab? Maybe a console command or in the backoffice itself?
    m
    • 2
    • 4
  • m

    mysterious-ambulance-11183

    11/29/2021, 1:59 PM
    Hey! I have a problem setting up the marketplace demo. After docker/sdk up, I'm only able to access backoffice and yves applications. Accessing http://mp.us.spryker.local/ results in a "No route found for "GET http://mp.us.spryker.local/" (from "http://spryker.local/")" error. Has anyone experienced this before?
    b
    • 2
    • 3
  • b

    better-controller-5205

    11/29/2021, 3:09 PM
    Hey I have some trouble getting the authentication token fĂĽr the glue rest api. I have createt a agent user with admin rights, and I can login with this user via the backend (zed). Then i try the following: POST Request against glue api endpoint /agent-access-tokens Request Body is
    {
    "data": {
    "type": "agent-access-tokens",
    "attributes": {
    "username": "_{{admin_username}}_",
    "password": "_{{admin_password}}_"
    }
    }
    }
    As resonse I get 401
    {"errors":[{"code":"4101","status":401,"detail":"Failed to authenticate an agent."}]}
    After some searching in the code, I found out that the error core 4101 means “invalid credentials”. Is there any way to get deeper in the analysis, why this happens?
    i
    n
    • 3
    • 7
  • m

    mysterious-alarm-44228

    11/30/2021, 11:00 AM
    Hi everyone, when I import the product option prices. The data is imported to the database and also the storage table is updated. The data is deleted from redis and new data is not synchronized with redis, but the data is synchronized, when I run
    console sync:data
    Any idea how I can snych the data without running
    console sync:data
    m
    • 2
    • 8
1...484950...102Latest