Troubleshooting
Quick, targeted troubleshooting resources for common runtime, data, and integration issues.
Database and API issues
Sections:
- DAL Reference: Documents fields, flags, filters, and aggregations for effective data management and querying within the platform.
- Fields Reference: Covers field types, flags, and enum fields.
- Rules Reference: Lists rule classes across Shopware 6.
- Flow Reference: Documents Shopware flow events.
Debugging
Inspecting and debugging locally
To connect to the database from your host machine (for example, via Adminer or a local MySQL client), use:
- Host:
127.0.0.1orlocalhost - Port: the exposed database port from the output of:
docker compose psEnable profiler/debugging for PHP
Once your Shopware environment is running, you may want to enable PHP debugging or profiling to inspect code execution, set breakpoints, or measure performance. The default setup doesn’t include these tools, but you can enable them using Docker overrides.
As an example, enable Xdebug inside the web container by creating a compose.override.yaml in your project root with the following configuration:
services:
web:
environment:
XDEBUG_MODE: debug
XDEBUG_CONFIG: client_host=host.docker.internal
PHP_PROFILER: xdebugSave the file and apply the changes:
docker compose up -dThis restarts the containers with Xdebug enabled. You can now attach your IDE (for example, PHPStorm or VS Code) to the remote debugger on the default Xdebug port 9003.
Xdebug on Linux
To enable Xdebug connectivity on Linux, you must manually map the host.docker.internal hostname to the Docker host gateway. Add the following configuration to your compose.override.yaml:
services:
web:
extra_hosts:
- "host.docker.internal:host-gateway"Shopware’s Docker setup also supports other profilers, such as Blackfire, Tideways, and PCOV. For Tideways and Blackfire, you will need to run an additional container. For example:
services:
web:
environment:
- PHP_PROFILER=blackfire
blackfire:
image: blackfire/blackfire:2
environment:
BLACKFIRE_SERVER_ID: XXXX
BLACKFIRE_SERVER_TOKEN: XXXXLinux file permissions and known issues
On Linux hosts, your user ID must be 1000 for file permissions to work correctly inside the containers. Check your user ID with:
id -uOther IDs may cause permission errors when running make up or writing to project files.