Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CmsBlock Gallery JavaScript error when zoom feature is selected #3614

Open
Invadox opened this issue Mar 15, 2024 · 1 comment
Open

CmsBlock Gallery JavaScript error when zoom feature is selected #3614

Invadox opened this issue Mar 15, 2024 · 1 comment
Labels

Comments

@Invadox
Copy link

Invadox commented Mar 15, 2024

PHP Version

8.2

Shopware Version

6.5.8.7

Expected behaviour

The gallery CmsBlock does not work correctly when the zoom feature is activated in the cms builder.
Neither navigating between the images nor zoom does work. However when clicking the image itself the fullscreen gallery does open when selected in cms builder.

Actual behaviour

The gallery does not function correctly in the storefront and throws the following javascript errors in the console:

Error: The required element ".js-magnifier-zoom-image-container" does not exist in parent node!
    at i.querySelector (all.js?1710514489:3:3743)
    at St.init (all.js?1710514489:5:83151)
    at St._init (all.js?1710514489:3:14939)
    at new c (all.js?1710514489:3:14791)
    at new St (all.js?1710514489:5:82880)
    at h._initializePluginOnElement (all.js?1710514489:3:21227)
    at all.js?1710514489:3:20637
    at NodeList.forEach (<anonymous>)
    at s.iterate (all.js?1710514489:3:6828)
    at h._initializePlugin (all.js?1710514489:3:20620)
(anonym) @ all.js?1710514489:3
(anonym) @ all.js?1710514489:3
initializePlugins @ all.js?1710514489:3
initializePlugins @ all.js?1710514489:3
(anonym) @ all.js?1710514489:5
all.js?1710514489:3
_sendRequest @ all.js?1710514489:3
get @ all.js?1710514489:3
fetch @ all.js?1710514489:5
init @ all.js?1710514489:5
_init @ all.js?1710514489:3
c @ all.js?1710514489:3
v @ all.js?1710514489:5
_initializePluginOnElement @ all.js?1710514489:3
(anonym) @ all.js?1710514489:3
iterate @ all.js?1710514489:3
_initializePlugin @ all.js?1710514489:3
(anonym) @ all.js?1710514489:3
initializePlugins @ all.js?1710514489:3
initializePlugins @ all.js?1710514489:3
(anonym) @ all.js?1710514489:5
all.js?1710514489:2 

Uncaught TypeError: Mn is not a function
    at Or (all.js?1710514489:2:393652)
    at HTMLDivElement.Nr (all.js?1710514489:2:394804)
Or @ all.js?1710514489:2
Nr @ all.js?1710514489:2
2all.js?1710514489:2 

Uncaught TypeError: Tn is not a function
    at Pr (all.js?1710514489:2:393995)
    at HTMLDivElement.Nr (all.js?1710514489:2:394536)
Pr @ all.js?1710514489:2
Nr @ all.js?1710514489:2
all.js?1710514489:2

How to reproduce

  1. Setup a clean shopware install and add a gallery cms block to the frontend
  2. Activate the zoom toggle in the element settings
  3. Save and visit the frontend, then notice the gallery block missbehavior as described above
@Invadox Invadox added the Bug label Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant