delx Posted July 18, 2017 Share Posted July 18, 2017 Hi, First sorry if this is duplicate thread or reported bug but I couldn't find anything similar. I'm using PrestaShop version: 1.7.2.0 and on product page on both local and dev servers I've following JS errors - Uncaught TypeError: formZoneElem.magnificPopup is not a function at form.js?1.7.0:1630 at form.js?1.7.0:1726 And Uncaught ReferenceError: Bloodhound is not defined at HTMLDocument.<anonymous> ("token":1277) at j (jquery-1.11.0.min.js:2) at Object.fireWith [as resolveWith] (jquery-1.11.0.min.js:2) at Function.ready (jquery-1.11.0.min.js:2) at HTMLDocument.K (jquery-1.11.0.min.js:2) I believe these errors lead to situation where preview with alt shift v is not working. Also I'm changing quantities and taxes but product on FE is not updated at all but for this one I should debug further. Anyone else with similar errors? Regards Link to comment Share on other sites More sharing options...
Jan1971 Posted November 15, 2019 Share Posted November 15, 2019 Hi, We use Prestashop 1.7.5.2 and face the same problem as above in product editing page (BackOffice only). We do not knpw where it comes from as it happened suddenly without any PS update. Seems related to magnificPopup call : TypeError: formZoneElem.magnificPopup is not a function TypeError: $(...).typeahead is not a function var formImagesProduct = (function() { var dropZoneElem = $('#product-images-dropzone'); var formZoneElem = $('#product-images-form-container'); formZoneElem.magnificPopup({ delegate: 'a.open-image', type: 'image' }); Can anyone help us or give a solution ? Jan https://www.aunomdelavape.com Link to comment Share on other sites More sharing options...
d0um Posted November 18, 2019 Share Posted November 18, 2019 I have the same problem on backoffice product page. I am no more able to add a manufacturer... Link to comment Share on other sites More sharing options...
Magic Toolbox Posted November 18, 2019 Share Posted November 18, 2019 Hi guys! Were you able to fix these JS errors in admin? Would be fine if you can share your solution with us. Link to comment Share on other sites More sharing options...
d0um Posted November 20, 2019 Share Posted November 20, 2019 no... 😥 Link to comment Share on other sites More sharing options...
Jan1971 Posted November 20, 2019 Share Posted November 20, 2019 Hi guys, It seems related to Jquery loading after other script running... or some kind of module update modifying js scripts loading ?... On my side, still got the issue and focusing now on a module issue or database problem. Hope someone can find a solution soon Link to comment Share on other sites More sharing options...
Jan1971 Posted November 21, 2019 Share Posted November 21, 2019 Hi guys, On our side, we've found out that js errors in the Admin product page was linked to the displayBackOfficeHeader Position, which had to be changed to avoid js error. NB : this occured after we had changed one of the module code (last one Amazzing filter). Hope this gives you a hint Jan Link to comment Share on other sites More sharing options...
d0um Posted November 21, 2019 Share Posted November 21, 2019 Oh yeah ! Merci Jan1971 I put "amazzing filter" on the last position and there are no more mistakes! You save my day ! Link to comment Share on other sites More sharing options...
Active Posted November 22, 2019 Share Posted November 22, 2019 Those errors are related to incorrect jQuery loading This kind of issues shouldn't happen in PS v1.7.6+: https://github.com/PrestaShop/PrestaShop/pull/12716 So, one of possible solutions would be to upgrade your store to latest version. Don't forget to make sure that all your modules are compatible with latest PS version before upgrading. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now