Hallo Zusammen,
kennt jemand das Problem, dass die Shopware API bei einem Fehler statt einem JSON-Response ein html-Response liefert. Siehe Beispiel:
Fatal error : Uncaught Shopware\Components\Api\Exception\NotFoundException: Variant by number sw-surcharge not found in /var/www/vhosts/playbackfinder.de/httpdocs/testserver/engine/Shopware/Components/Api/Resource/Variant.php:182
Stack trace:
#0 /var/www/vhosts/playbackfinder.de/httpdocs/testserver/engine/Shopware/Components/Api/Resource/Variant.php(69): Shopware\Components\Api\Resource\Variant->getIdFromNumber(‚sw-surcharge‘)
#1 /var/www/vhosts/playbackfinder.de/httpdocs/testserver/engine/Shopware/Controllers/Api/Variants.php(75): Shopware\Components\Api\Resource\Variant->getOneByNumber(‚sw-surcharge‘, Array)
#2 /var/www/vhosts/playbackfinder.de/httpdocs/testserver/engine/Library/Enlight/Controller/Action.php(192): Shopware_Controllers_Api_Variants->getAction()
#3 /var/www/vhosts/playbackfinder.de/httpdocs/testserver/engine/Library/Enlight/Controller/Dispatcher/Default.php(563): Enlight_Controller_Action->dispatch(‚getAction‘)
#4 /var/www/vhosts/playbackfinder.de/httpdocs/testserver/engine/Library/Enlight/Controller/Front in /var/www/vhosts/playbackfinder.de/httpdocs/testserver/engine/Shopware/Components/Api/Resource/Variant.php on line 182
Das Problem tritt in einer Testumgebung auf, die in einem Subfolder auf der Domain installiert ist. Könnte dass die Ursache sein? Ich hab ja schon mal gehört, dass die Installation in einem Subfolder nicht 100% unterstützt wird - funktioniert aber trotzdem im Großen und Ganzen.
Hat jemand eine Lösung für das Problem?