Incorrectly Configured APP_URL
In Shopware 6, both the administration panel and some extensions require the correct URL to the store. The external URL to the store is defined via the environment variable APP_URL.
Error message:
Incorrectly configured APP_URL
Extensions cannot connect to your store due to a misconfiguration
in your system. Contact your hosting provider for assistance. Troubleshooting:
To fix this error, you must correct the APP_URL in the environment variables. The file containing the environment variables is located above the root directory (document root) of your store domain.
Example:
/var/www/vhosts/shop-domain.com/httpdocs
├── bin
├── composer.json
├── composer.lock
├── config
├── custom
├── Dockerfile
├── dummy
├── easy-coding-standard.php
├── .env
├── .env.local <-- Environment variables
├── files
├── index.html
├── install.lock
├── license.txt
├── phpstan.neon
├── phpunit.xml.dist
├── PLATFORM_COMMIT_SHA
├── psalm.xml
├── public <-- Root directory (Document-Root)
├── README.md
├── src
├── sw.js.html
├── var
└── vendor Open the .env.local file with a text editor of your choice and search for the following value:
APP_URL=https://www.wrong-shop-domain.com Verify that the specified APP_URL is actually accessible via the Internet and leads to one of your sales channels. You can also use our DNS lookup tool to verify the domain resolution.
Correct the value for APP_URL and then save the file.
Then reload the Shopware Administration. Provided that the APP_URL resolves correctly, the error will no longer be displayed.
Tip: You do not need to clear the Shopware cache after making this change.