JSON中的Magento 2.4 gallery.phtml主题错误

JSON中的Magento 2.4 gallery.phtml主题错误,magento,Magento,我安装了Molly Magento主题()并激活了它。当我尝试打开产品页面时,出现了一个错误: VM10258:1未捕获语法错误:位置0处JSON中的意外标记u Luma模板正常,错误在此主题中 以下是gallery.phtml主题的代码: { "[data-gallery-role=gallery-placeholder]": { "mage/gallery/gallery": {

我安装了Molly Magento主题()并激活了它。当我尝试打开产品页面时,出现了一个错误:

VM10258:1未捕获语法错误:位置0处JSON中的意外标记u

Luma模板正常,错误在此主题中

以下是gallery.phtml主题的代码:

    {
        "[data-gallery-role=gallery-placeholder]": {
            "mage/gallery/gallery": {
                "mixins":["magnifier/magnify"],
                "magnifierOpts": <?php /* @escapeNotVerified */ echo $block->getMagnifier(); ?>,
                "data": <?php /* @escapeNotVerified */ echo $block->getGalleryImagesJson(); ?>,
                "options": {
                    "nav": "<?php /* @escapeNotVerified */ echo $block->getVar("gallery/nav"); ?>",
                    "loop": <?php /* @escapeNotVerified */ echo $block->getVar("gallery/loop"); ?>,
                    "keyboard": <?php /* @escapeNotVerified */ echo $block->getVar("gallery/keyboard"); ?>,
                    "arrows": <?php /* @escapeNotVerified */ echo $block->getVar("gallery/arrows"); ?>,
                    "allowfullscreen": <?php /* @escapeNotVerified */ echo $block->getVar("gallery/allowfullscreen"); ?>,
                    "showCaption": <?php /* @escapeNotVerified */ echo $block->getVar("gallery/caption") == null ? 0 : 1; ?>,
                    "width": <?php /* @escapeNotVerified */ echo $block->getImageAttribute('product_page_image_medium', 'width'); ?>,
                    "thumbwidth": <?php /* @escapeNotVerified */ echo $block->getImageAttribute('product_page_image_small', 'width'); ?>,
                    "thumbheight": <?php /* @escapeNotVerified */ echo $block->getImageAttribute('product_page_image_small', 'height')
                        ?: $block->getImageAttribute('product_page_image_small', 'width'); ?>,
                    "height": <?php /* @escapeNotVerified */ echo $block->getImageAttribute('product_page_image_medium', 'height')
                        ?: $block->getImageAttribute('product_page_image_medium', 'width'); ?>,
                    "transitionduration": <?php /* @escapeNotVerified */  echo $block->getVar("gallery/transition/duration"); ?>,
                    "transition": "<?php /* @escapeNotVerified */  echo $block->getVar("gallery/transition/effect"); ?>",
                    "navarrows": <?php /* @escapeNotVerified */  echo $block->getVar("gallery/navarrows"); ?>,
                    "navtype": "<?php /* @escapeNotVerified */  echo $block->getVar("gallery/navtype"); ?>",
                    "navdir": "<?php /* @escapeNotVerified */  echo $block->getVar("gallery/navdir"); ?>"
                },
                "fullscreen": {
                    "nav": "<?php /* @escapeNotVerified */  echo $block->getVar("gallery/fullscreen/nav"); ?>",
                    "loop": <?php /* @escapeNotVerified */  echo $block->getVar("gallery/fullscreen/loop"); ?>,
                    "navdir": "<?php /* @escapeNotVerified */  echo $block->getVar("gallery/fullscreen/navdir"); ?>",
                    "arrows": <?php /* @escapeNotVerified */  echo $block->getVar("gallery/fullscreen/arrows") == null ? 0 : 1; ?>,
                    "showCaption": <?php /* @escapeNotVerified */  echo $block->getVar("gallery/fullscreen/caption") == null ? 0 : 1; ?>,
                    "transitionduration": <?php /* @escapeNotVerified */  echo $block->getVar("gallery/fullscreen/transition/duration"); ?>,
                    "transition": "<?php /* @escapeNotVerified */  echo $block->getVar("gallery/fullscreen/transition/effect"); ?>"
                },
                "breakpoints": <?php /* @escapeNotVerified */ echo $block->getBreakpoints(); ?>
            }
        }
    }
</script>```

Anyone can see errors in this code?

The page doesn't open with this error.

Any help is apreciated!
{
“[数据库角色=库占位符]”:{
“法师/画廊/画廊”:{
“混合”:[“放大镜/放大镜”],
“放大镜选项”:,
“数据”:,
“选择”:{
“导航”:“,
“循环”:,
“键盘”:,
“箭头”:,
“allowfullscreen”:,
“showCaption”:,
“宽度”:,
“拇指宽度”:,
“拇指高度”:,
“高度”:,
“过渡期”:,
“过渡”:“,
“导航箭头”:,
“导航类型”:“,
“navdir”:”
},
“全屏”:{
“导航”:“,
“循环”:,
“navdir”:“,
“箭头”:,
“showCaption”:,
“过渡期”:,
“转换”:”
},
“断点”:
}
}
}
```
任何人都可以看到此代码中的错误?
此页面未打开,出现此错误。
感谢您的帮助!