# Unmatched Blocks. Dringend. Bitte um Hilfe.

**URL:** <https://forum.shopware.com/t/unmatched-blocks-dringend-bitte-um-hilfe/67526>\
**Category:** Themes & Design\
**Created:** [9. Juni 2020 um 07:09 UTC](https://forum.shopware.com/t/unmatched-blocks-dringend-bitte-um-hilfe/67526 "2020-06-09T07:09:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shopware\_user](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@shopware\_user](https://forum.shopware.com/u/shopware_user)\
**Post date:** [9. Juni 2020 um 07:09 UTC](https://forum.shopware.com/t/unmatched-blocks-dringend-bitte-um-hilfe/67526/1 "2020-06-09T07:09:00Z")

</div>

Hallo zusammen,

mein Template-Datei sieht folgendermaßen aus:

```
{extends file="parent:frontend/checkout/ajax_cart_item.tpl"}
{namespace name="frontend/checkout/ajax_cart"}

    {* Article name *}
    {block name='frontend_checkout_ajax_cart_articlename'}

        {$smarty.block.parent}

        {if $multioptionsconfig.SEEAJAXCART == '1'}
        {if $basketItem.pixel_multi == "MULTIOPTIONEN"}
            {block name='frontend_checkout_cart_item_pixelmulti_ajax' }
                
                
                

                    {foreach name=aussen item=calc_data from=$basketItem.pixel_multidata.CALC_OPTIONS}
                        {block name='frontend_checkout_cart_item_pixelmulti_calc' }
                            {if $calc_data.OPTIONSSHOW == 'true'}
                            {if !$calc_data.WEIGHT}{$calc_data.LABEL}:{if $calc_data.TEXT}{$calc_data.TEXT}{/if}{if $calc_data.PRICE}{$calc_data.PRICE}{/if} {$calc_data.SUFFIX}{/if}
                            {if $calc_data.WEIGHT}{se name='CartItemWeight'}Gewicht:{/se}{$calc_data.WEIGHT} KG {/if}
                            {/if}
                        {/block}
                    {/foreach}
                    {foreach name=aussen item=calcoptions_data from=$basketItem.pixel_multidata.OPTIONS}
                        {block name='frontend_checkout_cart_item_pixelmulti_options' }
                            {if $calcoptions_data.OPTIONSSHOW == 'true'}
                                {$calcoptions_data.LABEL}: {if $calcoptions_data.DISTANCEMATRIX == true}{$calcoptions_data.DESTINATION}{else}{$calcoptions_data.TEXT|stripslashes}{/if}
                                    {if $multioptionsconfig.OPTIONSPRICESHOW == '1'} , {if $calcoptions_data.QTY > 1}{$calcoptions_data.QTY} x{/if} {include file="frontend/plugins/pixelmultioptionen/_intern/praefixes.tpl" praefix=$calcoptions_data }
                                    {/if} 
                                    {if $calcoptions_data.DISTANCEMATRIX == true}
                                        {s name="Distancekilometer" namespace="frontend/pixelmultioptionen/main"}Entfernung{/s}: {$calcoptions_data.KILOMETER}km * {$calcoptions_data.DISTANCEPRICE}
                                        
                                        {s name="DistanceDestination" namespace="frontend/pixelmultioptionen/main"}Ort{/s}: {$calcoptions_data.DESTINATION}
                                        
                                    {/if}
                                    {if $calcoptions_data.FILE}
                                        {s name="PixelUploadtwoButton" namespace="frontend/pixelmultioptionen/main"}Herunterladen{/s}
                                    {/if}
                                
                                {if $calcoptions_data.TEXTFIELD}
                                    {foreach name=aussen item=letter_data from=$calcoptions_data.TEXTFIELD}
                                        {if $calcoptions_data.SOTVID == $letter_data.SOTVID}
                                            {$letter_data.LABEL}: {$letter_data.TEXT|stripslashes}
                                                {if $multioptionsconfig.OPTIONSPRICESHOW == '1'} , {if $letter_data.QTY > 1}{$letter_data.QTY} x{/if} {if $letter_data.PRICEPERLETTER}{$letter_data.PRICEPERLETTER}{if $letter_data.STEXT} je Buchstabe, Gesamt: {$letter_data.PRICE}{/if}{/if}{if $letter_data.VALUE}{$letter_data.VALUE}{/if}
                                                {/if}
                                            
                                        {/if}
                                    {/foreach}
                                {/if}
                                {if $calcoptions_data.galleryresults.title}
                                    {se name='SGname'}Bildname:{/se}{$calcoptions_data.galleryresults.title}
                                    
                                {/if}
                                {if $calcoptions_data.galleryresults.id}
                                    {se name='SGImageId'}Bild-ID:{/se}{$calcoptions_data.galleryresults.id}
                                    
                                {/if}
                                {if $calcoptions_data.galleryresults.image.source}
                                    
                                {/if}
                                {if $calcoptions_data.fotolianame}
                                    {se name='Fotolianame'}Bildname:{/se}{$calcoptions_data.fotolianame}
                                    
                                {/if}
                                {if $calcoptions_data.fotoliaresults.id}
                                    {se name='FotoliaImageId'}Bild-ID:{/se}{$calcoptions_data.fotoliaresults.id}
                                    
                                {/if}
                                {if $calcoptions_data.fotolialicence}
                                    {se name='Fotolialicence'}Bildlizenz:{/se}{$calcoptions_data.fotolialicence}
                                    
                                {/if}
                                {if $calcoptions_data.fotoliaimage}
                                    
                                {/if}
                            {/if}
                        {/block}
                    {/foreach}
            {/block}
            
             
        {/if}
        {/if}
    {/block}

```

Ich bekommen im Shop folgenden Fehler angezeigt:

**Fatal error** : Uncaught SmartyCompilerException: Syntax Error in template „/html/shopware/engine/Shopware/Plugins/Community/Frontend/Pixelmultioptionen/Views/frontend/checkout/ajax\_cart\_item.tpl“ on line 3 „{\* Article name \*}“ unmatched {block} {/block} pairs in /html/shopware/engine/Library/Smarty/sysplugins/smarty\_internal\_templatecompilerbase.php:657 Stack trace: #0 /html/shopware/engine/Library/Smarty/sysplugins/smarty\_internal\_compile\_extends.php(88): Smarty\_Internal\_TemplateCompilerBase-\>trigger\_template\_error(‚unmatched {bloc…‘) #1 /html/shopware/engine/Library/Smarty/sysplugins/smarty\_internal\_templatecompilerbase.php(475): Smarty\_Internal\_Compile\_Extends-\>compile(Array, Object(Smarty\_Internal\_SmartyTemplateCompiler), Array, NULL, NULL) #2 /html/shopware/engine/Library/Smarty/sysplugins/smarty\_internal\_templatecompilerbase.php(249): Smarty\_Internal\_TemplateCompilerBase-\>callTagCompiler(‚extends‘, Array, Array) #3 /html/shopware/engine/Library/Smarty/sysplugins/smarty\_internal\_templateparser.ph in **/html/shopware/engine/Library/Smarty/sysplugins/smarty\_internal\_templatecompilerbase.php** on line **657**

&nbsp;

Leider finde ich nicht heraus, welches Block unmatched ist. Vor allem, ich habe meine Änderungen am Template gelöscht und den ursprünglichen Stand wiederhergestellt. Trotzdem kommt der Unmatched-Block-Fehler. Das Shop steht still. Bitte um dringende Hilfe.

&nbsp;

---

<div class="post-metadata">

**Author:** ![NextMike](https://avatars.discourse-cdn.com/v4/letter/n/838e76/32.png) [@NextMike](https://forum.shopware.com/u/NextMike)\
**Post date:** [9. Juni 2020 um 08:31 UTC](https://forum.shopware.com/t/unmatched-blocks-dringend-bitte-um-hilfe/67526/2 "2020-06-09T08:31:01Z")

</div>

Der Code sieht sauber aus. Hast Du den Cache gründlich gelöscht?

So:&nbsp;[https://forum.shopware.com/discussion/43908/gesamten-cache-ueber-die-console-loeschen](https://forum.shopware.com/discussion/43908/gesamten-cache-ueber-die-console-loeschen)

Oder im Backend.
