Also ich hatte das problem auch und habe festegestellt, dass eine Datei fehlte und zwar die /vendor/shopware/core/Framework/DataAbstractionLayer/Field/Flag/ReadProtected.php mit enstprechendem Inhalt.
<?php declare(strict_types=1);
namespace Shopware\Core\Framework\DataAbstractionLayer\Field\Flag;
use Shopware\Core\Framework\Api\Context\AdminApiSource;
use Shopware\Core\Framework\Api\Context\SalesChannelApiSource;
class ReadProtected extends Flag
{
private const BASE_URLS = [
AdminApiSource::class => '/api/v',
SalesChannelApiSource::class => '/sales-channel-api/v',
];
/**
* @var array[string]string
*/
private $protectedSources = [];
public function __construct(string ...$protectedSources)
{
foreach ($protectedSources as $source) {
$this->protectedSources[$source] = self::BASE_URLS[$source];
}
}
public function getProtectedSources(): array
{
return array_keys($this->protectedSources);
}
public function isBaseUrlAllowed(string $baseUrl): bool
{
foreach ($this->protectedSources as $url) {
if (mb_strpos($baseUrl, $url) !== false) {
return false;
}
}
return true;
}
public function isSourceAllowed(string $source): bool
{
return !isset($this->protectedSources[$source]);
}
public function parse(): \Generator
{
yield 'read_protected' => [
array_keys($this->protectedSources),
];
}
}
Hi, Have anybody got the solution for this, I am also getting this error after shopware 6.4.1 update.
{„errors“:[{„code“:„0“,„status“:„500“,„title“:„Internal Server Error“,„detail“:„Attempted to load class \u0022Instagram\u0022 from namespace \u0022Vinkla\Instagram\u0022.\nDid you forget a \u0022use\u0022 statement for another namespace?“}]}