# Error while saving shopware default theme

**URL:** <https://forum.shopware.com/t/error-while-saving-shopware-default-theme/95381>\
**Category:** Themes & Design (EN)\
**Tags:** templates--design, themes--design\
**Created:** [20. Juli 2022 um 11:04 UTC](https://forum.shopware.com/t/error-while-saving-shopware-default-theme/95381 "2022-07-20T11:04:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![be3max](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/be3max/32/17692_2.png) [@be3max](https://forum.shopware.com/u/be3max)\
**Post date:** [20. Juli 2022 um 11:04 UTC](https://forum.shopware.com/t/error-while-saving-shopware-default-theme/95381/1 "2022-07-20T11:04:39Z")

</div>

I use production environment of Shopware 6 on Windows.

After installation and configurations. I got these error, looks like somewhere in config missing path symbol:

 ![MicrosoftTeams-image](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/9/e/9e8ad26a6e50767d89864e6301bff6d13a6c86e1.png)

May be some one knows how to fix it?

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [20. Juli 2022 um 12:06 UTC](https://forum.shopware.com/t/error-while-saving-shopware-default-theme/95381/2 "2022-07-20T12:06:41Z")

</div>

Is E:os70OpenServeromains… a path or plugin name or something? Why are there special characters in it? This looks really odd.

---

<div class="post-metadata">

**Author:** ![be3max](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/be3max/32/17692_2.png) [@be3max](https://forum.shopware.com/u/be3max)\
**Post date:** [20. Juli 2022 um 12:21 UTC](https://forum.shopware.com/t/error-while-saving-shopware-default-theme/95381/3 "2022-07-20T12:21:09Z")

</div>

Thank you for fast response!  
It’s just a path to home site directory - E:\os7\OpenServer\domains\be3.sw.de\ … .  
Don’t know why in error message it`s so corrupted.

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [20. Juli 2022 um 13:49 UTC](https://forum.shopware.com/t/error-while-saving-shopware-default-theme/95381/4 "2022-07-20T13:49:40Z")

</div>

I guess the path is the problem. Cannot you work with localhost or something like that?

---

<div class="post-metadata">

**Author:** ![j.matschke](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@j.matschke](https://forum.shopware.com/u/j.matschke)\
**Post date:** [3. August 2022 um 14:11 UTC](https://forum.shopware.com/t/error-while-saving-shopware-default-theme/95381/5 "2022-08-03T14:11:03Z")

</div>

I was able to solve the problem by changing the code in vendor\shopware\storefront\Theme\ThemeFileImporter.php from this:

```auto
    public function getConcatenableStylePath(File $file, StorefrontPluginConfiguration $configuration): string
    {
        return '@import \'' . $file->getFilepath() . '\';' . \PHP_EOL;
    }

    public function getConcatenableScriptPath(File $file, StorefrontPluginConfiguration $configuration): string
    {
        return file_get_contents($file->getFilepath()) . \PHP_EOL;
    }

```

to this:

```auto
    public function getConcatenableStylePath(File $file, StorefrontPluginConfiguration $configuration): string
    {
        return '@import \'' . str_replace('\\', '/', $file->getFilepath()) . '\';' . \PHP_EOL;
    }

    public function getConcatenableScriptPath(File $file, StorefrontPluginConfiguration $configuration): string
    {
        return file_get_contents(str_replace('\\', '/', $file->getFilepath())) . \PHP_EOL;
    }

```
