Closed Minirock closed 2 years ago
Hi, thanks for you report. This issue is caused by old external Javascript librairie who change JS object prototype. Is you use prototype.js in version 1.6 you can update them for resolving the issue. Old jquery version (jquery-watch) may also cause the same issue.
Thanks. For more help you can use the email : support@getalma.eu
Hi @Francois-Gomis
Thanks for your update. Looking at my magento libs, looks like our prototype.js is version 1.7
And jquery version is : jQuery JavaScript Library v1.12.4
So I think we are not falling into the use case you just specified.
Hi, Do you have un URL with an active Alma Badge ? Thanks
No sorry only a restricted sandbox right now. Running on a magento 2.2.6 instance.
Hi Minirock,
we have identified the library : it's "legacy-build.min.js"
@Francois-Gomis For the update, what was causing us the issue was a third party js call is one of our custom code.
From app/design/frontend/Website/default/Makarovsoft_Callback/templates/form.phtml
require(
[
'jquery',
'Magento_Ui/js/modal/modal',
'prototype'
'Magento_Ui/js/modal/modal'
],
function(
jQuery,
modal,
prototype
modal
) {
Removing the call to prototype fixed it. So strongly related to what you were saying about the prototype library. In our case the prototype object wasn't even used so we just had to remove it to make it work.
@Minirock Thanks for the update !
Hi there,
I would like to report a couple issues that i'm currently facing :
In some cases it looks like it is triggering a js error when the script loads before the dom
As a fix attempt, I would suggest to add
domReady!
for this js file ?=========================================================================
As you can see, two times works fine
But not the 3 times
I've been trying to dig by myself but I can't find where this values are generated; so I don't really know what is happening.
=========================================================================
Did I missed something in the database ? Thanks for attention