# ISSUE: onAddVariables(ThemeCompilerEnrichScssVariablesEvent $event)

**URL:** <https://forum.shopware.com/t/issue-onaddvariables-themecompilerenrichscssvariablesevent-event/69186>\
**Category:** Programmierung\
**Created:** [26. August 2020 um 10:53 UTC](https://forum.shopware.com/t/issue-onaddvariables-themecompilerenrichscssvariablesevent-event/69186 "2020-08-26T10:53:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kanuma](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@kanuma](https://forum.shopware.com/u/kanuma)\
**Post date:** [26. August 2020 um 10:53 UTC](https://forum.shopware.com/t/issue-onaddvariables-themecompilerenrichscssvariablesevent-event/69186/1 "2020-08-26T10:53:24Z")

</div>

[https://docs.shopware.com/en/shopware-platform-dev-en/how-to/plugin-scss-variables](https://docs.shopware.com/en/shopware-platform-dev-en/how-to/plugin-scss-variables)

$event-\>addVariable($variableName, $value);

arguments: {  
&nbsp; &nbsp; &nbsp; &nbsp; $name: “paul-raiting-overview-show-sidebar”  
&nbsp; &nbsp; &nbsp; &nbsp; $value: true  
}

**&nbsp;#message: "Argument 2 passed to Shopware\Storefront\Event\ThemeCompilerEnrichScssVariablesEvent::addVariable() must be of the type string, boolean given, called in /var/www/vhosts/paulgurkesshop.de/dev6.paulgurkesshop.de/custom/plugins/PaulRaitingOverview/src/Subscriber/ThemeVariablesSubscriber.php on line 40"**

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![kanuma](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@kanuma](https://forum.shopware.com/u/kanuma)\
**Post date:** [26. August 2020 um 11:27 UTC](https://forum.shopware.com/t/issue-onaddvariables-themecompilerenrichscssvariablesevent-event/69186/2 "2020-08-26T11:27:55Z")

</div>

Gelöst:

Der Configeintrag wurde nicht aus der Tabelle&nbsp;system\_config entfernt…
