Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
    An exception occurred in driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known
    I've checked my hosts and -> localhost
    still the same
    please help
    Kobus Post
    is DATABASE_URL set?
    I'm trying to run development mode
    I thought it was supposed to be done for you in the command
    how can I set it?
    Kobus Post
    can be done with .env file
    so when it asks me for path to your /public dir?
    just set url to localhost 8000?
    is this .env in the root of the development folder?
    Kobus Post
    Using docker?
    I just used this: https://github.com/shopware/development/releases latest release 6.1.5
    ran the cmd's and ran into this
    I am running this in an Ubuntu 18 env. got docker-compose, docker, bash, php 7.2
    ./psh.phar docker:start
    ./psh.phar docker:ssh
    ./psh.phar install
    I know
    BUT, the third command won't run because of this error
    (4/40) Starting
    > mysql -u 'app' -p'app' -h 'mysql' --port='3306' -e "DROP DATABASE IF EXISTS \`shopware\`"
        ERROR 2005 (HY000): Unknown MySQL server host 'mysql' (-2)
    Kobus Post
    running the command in the docker container?
    @shyim and @KobusPost Thank you very much for that nginx-prox hint. Do you have a working example for me? Otherwise I'd guess there's too much magic going on here
    right here
    (1/1) Starting
    > docker exec -i --env COLUMNS=`tput cols` --env LINES=`tput lines` -u 1000:1000 -t beedeb7b9a6380be8abef3e070c6c3709f6f1a4e547f9e9f51b8151c5fe3488b bash
        application@beedeb7b9a63:/app$ ./psh.phar install
    and then the same

    Also having some issues with theme inheritance and wondering if anyone can see any obvious issues? Shopwares example also seems to reference vendor/Storefront and I have vendor/platform/src/Storefront for some reason? Thanks.


    my theme -

    and inside my theme file:

    {% sw_extends '@Storefront/storefront/layout/header/logo.html.twig' %}
    {% block layout_header_logo_link %}
    <h2>Hello world!</h2>
    {% endblock %}

    Kobus Post
    @poncho-jim docker-compose file:
      - app_mysql:mysql <- is this listed? 
    when you run "dig mysql" in the container do you get a response?
    Joshua Behrens
    damn dal:create:entities and dal:create:schema are insane
    @JoshuaBehrens what does it do? there is no description on bin/console
    Joshua Behrens
    you do a entity definition, run dal:create:schema and get your sql for the migration and dal:create:entities generates the entity and entity collection for your definitions.
    still some flaws in there but damn this is a good start
    it really kick starts dal development
    nice to know, will try next time
    Joshua Behrens
    we just stumbled upon them as well right now
    we need more documentation :D
    Niklas Teich

    Hello folks. I'm trying to subscriber to his event (https://github.com/shopware/platform/blob/master/src/Core/System/StateMachine/StateMachineRegistry.php#L237)
    My event subscriber looks like this

    public static function getSubscribedEvents(): array
            return [
                StateMachineStateChangeEvent::STATE_MACHINE_TRANSITION_SIDE_ENTER => 'onStateMachineStateChange'

    But my subscriber is not triggered. I don't get it why ... other subscriber across multiple plugins are working! ..

    I want to listen on the pay trigger of PayPal at https://github.com/shopware/platform/blob/master/src/Core/Checkout/Order/Aggregate/OrderTransaction/OrderTransactionStateHandler.php#L116 ... that's the reason why i listen to the state machine transition
    Patrick Stahl
    Check if your subscriber is correctly executed
    Add a __construct with some debugging to it just to see if the constructor is even executed
    Niklas Teich
    When is the constructor going to be executed? ...
    Because it looks like its not executed at all :( All other subscribers are working ..
    Raphael Emmerich
    @NiklasTeich is the subscriber registered in any services.xml with the right tag?
    Niklas Teich
    @emmer91 Yeah, it looks identically compared to my other plugins and plugin subscribers ... i also tried StateMachineStateChangeEvent::class as a subscribed event but it also does not work :/
    If i relocate the StateMachineStateChangeEvent in another working subscriber, it also does not get triggered. So, something does not work with the StateMachineStateChangeEvent (class, STATE_MACHINE_TRANSITION_SIDE_ENTER) triggered by the PayPal plugin
    I have migrated products from Magento, but on the category listing instead of the main product it is displayed its variant. Anyone aware of this case? Or where i cant find the collection which is filtering the proucts?
    Screenshot from 2020-04-09 15-21-01.png