# Fehler nach SW Update auf 6.4.0

**URL:** <https://forum.shopware.com/t/fehler-nach-sw-update-auf-6-4-0/87385>\
**Category:** Themes & Design\
**Created:** [4. Mai 2021 um 15:07 UTC](https://forum.shopware.com/t/fehler-nach-sw-update-auf-6-4-0/87385 "2021-05-04T15:07:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlexBS](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@AlexBS](https://forum.shopware.com/u/AlexBS)\
**Post date:** [4. Mai 2021 um 15:07 UTC](https://forum.shopware.com/t/fehler-nach-sw-update-auf-6-4-0/87385/1 "2021-05-04T15:07:10Z")

</div>

Hallo,

nach dem Update auf 6.4.0 habe ich auf der Storefront folgenden Fehler:

# Attempted to load class „ReadProtected“ from namespace „Shopware\Core\Framework\DataAbstractionLayer\Field\Flag“.

Did you forget a „use“ statement for another namespace?

Ins Backend kann ich mich zwar einloggen, werde aber auf eine leere Seite redirected.

Hat das Problem schon jemand???

Lg

---

<div class="post-metadata">

**Author:** ![Afolo](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@Afolo](https://forum.shopware.com/u/Afolo)\
**Post date:** [4. Mai 2021 um 18:06 UTC](https://forum.shopware.com/t/fehler-nach-sw-update-auf-6-4-0/87385/2 "2021-05-04T18:06:53Z")

</div>

Ja, genau da stehe ich im Moment auch ☹

---

<div class="post-metadata">

**Author:** ![AlexBS](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@AlexBS](https://forum.shopware.com/u/AlexBS)\
**Post date:** [5. Mai 2021 um 07:35 UTC](https://forum.shopware.com/t/fehler-nach-sw-update-auf-6-4-0/87385/3 "2021-05-05T07:35:13Z")

</div>

Hast du schon eine Lösung gefunden?

---

<div class="post-metadata">

**Author:** ![Afolo](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@Afolo](https://forum.shopware.com/u/Afolo)\
**Post date:** [5. Mai 2021 um 18:37 UTC](https://forum.shopware.com/t/fehler-nach-sw-update-auf-6-4-0/87385/4 "2021-05-05T18:37:26Z")

</div>

Leider nein, fange hier gerade das suchen an.

---

<div class="post-metadata">

**Author:** ![chrisg\_mh](https://avatars.discourse-cdn.com/v4/letter/c/e274bd/32.png) [@chrisg\_mh](https://forum.shopware.com/u/chrisg_mh)\
**Post date:** [7. Mai 2021 um 19:57 UTC](https://forum.shopware.com/t/fehler-nach-sw-update-auf-6-4-0/87385/5 "2021-05-07T19:57:13Z")

</div>

ich hab das selbe problem seit kurzem mit 6.3.5.4.

mein workaround ist statt der domain die server IP zu nutzen, dann gehts.

---

<div class="post-metadata">

**Author:** ![Andi108](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/andi108/32/13673_2.png) [@Andi108](https://forum.shopware.com/u/Andi108)\
**Post date:** [4. Juni 2021 um 13:58 UTC](https://forum.shopware.com/t/fehler-nach-sw-update-auf-6-4-0/87385/6 "2021-06-04T13:58:02Z")

</div>

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.

```auto
<?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),
        ];
    }
}

```

---

<div class="post-metadata">

**Author:** ![Babita](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@Babita](https://forum.shopware.com/u/Babita)\
**Post date:** [26. Juni 2021 um 19:27 UTC](https://forum.shopware.com/t/fehler-nach-sw-update-auf-6-4-0/87385/7 "2021-06-26T19:27:58Z")

</div>

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?“}]}

Any Idea or Solution?

Babita
