Search the Community
Showing results for tags 'js error'.
-
We are facing a problem on mobile menu; we can use it without any problem trought all the product pages/list etc while, when we enter the cart summary, the menu doesn't open. We have tried changing the menu modules but we allways have the same problem. We are now working with the posmegamenu module and we have found that it is a js error (see below) that we have only on cart pages. Does anybody knows how to handle it? mobile_menu.js:46 Uncaught TypeError: $(...).mobilemenu is not a function at HTMLDocument.<anonymous> (mobile_menu.js:46) at fire (core.js:690) at Object.fireWith [as resolveWith] (core.js:711) at Function.ready (core.js:745) at HTMLDocument.completed (core.js:748) (anonymous) @ mobile_menu.js:46 fire @ core.js:690 fireWith @ core.js:711 ready @ core.js:745 completed @ core.js:748
-
- mobile menu
- error
-
(and 2 more)
Tagged with:
-
Hi, My shop is built with Prestahsop 1.5.6.2 In the browser console, js tab, I can see the following error : cart-summary.js:835 Uncaught TypeError: $(...).checkboxChange is not a function at HTMLDocument.<anonymous> (../js/cart-summary.js:835) at o (../xxxxxxxxxxxxx.js:2) at Object.fireWith (../xxxxxxxxxxxxx.js:2) at Function.ready (../xxxxxxxxxxxxx.js:2) at HTMLDocument.B (../xxxxxxxxxxxxx.js:2) The line 835 to 843 of the js/cart-summary.js file are the following : $('#gift').checkboxChange(function() { $('#gift_div').show('slow'); }, function() { $('#gift_div').hide('slow'); }); $('#enable-multishipping').checkboxChange( function() { $('.standard-checkout').hide(0); $('.multishipping-checkout').show(0); }, function() { $('.standard-checkout').show(0); $('.multishipping-checkout').hide(0); Such error only displays on category and product-list pages, but not on product pages. 1- Would you know what is the purpose of the checkboxChange function ? 2- How to avoid this error ? I thank you in advance for any reply. Patrick
- 1 reply
-
- function
- checkboxChange
-
(and 1 more)
Tagged with:
-
Hi, I got an error in product list page: Uncaught TypeError: s5.substring is not a function I found that part of code is located on Home Text Editor module & CMS on Homepage module. It's a set of javascript that was generated from HTML5Maker website for the banner in the website <script>// <![CDATA[ if (typeof em5 === 'undefined'){var em5 = window.addEventListener ? 'addEventListener' :'attachEvent';var er5 = window[em5];var me5 = em5 == 'attachEvent' ? 'onmessage':'message';er5(me5,function (e) {var s5= e.data;if (s5.substring(0,10) == 'changeSize'){document.getElementById(s5.substring(s5.indexOf('html5maker')+10)).style.height=s5.substring(10, s5.indexOf('html5maker'));[spam-filter],false);} // ]]></script> This wasn't an issue until I installed FB Product Ads module. Chrome debugging gives an error notification on line 241. This is line 241 without that FB Product Ads module (no error): initSlide_sample1();;if(typeof em5==='undefined'){var em5=window.addEventListener?'addEventListener':'attachEvent';var er5=window[em5];var me5=em5=='attachEvent'?'onmessage':'message';er5(me5,function(e){var s5=e.data;if(s5.substring(0,10)=='changeSize'){document.getElementById(s5.substring(s5.indexOf('html5maker')+10)).style.height=s5.substring(10,s5.indexOf('html5maker'));[spam-filter],false);};;$().ready(function() And this is line 241 with FB Product Ads module that resulting in an error: initSlide_sample1();;if(typeof em5==='undefined'){var em5=window.addEventListener?'addEventListener':'attachEvent';var er5=window[em5];var me5=em5=='attachEvent'?'onmessage':'message';er5(me5,function(e){var s5=e.data;if(s5.substring(0,10)=='changeSize'){document.getElementById(s5.substring(s5.indexOf('html5maker')+10)).style.height=s5.substring(10,s5.indexOf('html5maker'));[spam-filter],false);};;!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,document,'script','https://connect.facebook.net/en_US/fbevents.js');fbq('track','ViewCategory',{content_type:'product',content_ids:['MCCAU1146','MCCAU1147','MCCAU1742'],content_name:'Tuscan Seam Clip',content_category:'Tiling & Cutting Tool > Tuscan Seam Clip'});;var oPixel=new oPixel();$(document).ready(function(){oPixel.addToCart({"content_name":"'Tuscan SeamClip Red'","content_category":"'Tuscan Seam Clip'","content_ids":"['MCCAU1146']","content_type":"'product'","value":"'63.5613'","currency":"'AUD'"},'a[data-id-product="1146"].ajax_add_to_cart_button');oPixel.addToWishList({"content_name":"'Tuscan SeamClip Red'","content_category":"'Tuscan Seam Clip'","content_ids":"['MCCAU1146']","content_type":"'product'","value":"'63.5613'","currency":"'AUD'"},'a[rel="1146"].addToWishlist');oPixel.addToCart({"content_name":"'Tuscan SeamClip White'","content_category":"'Tuscan Seam Clip'","content_ids":"['MCCAU1147']","content_type":"'product'","value":"'63.5613'","currency":"'AUD'"},'a[data-id-product="1147"].ajax_add_to_cart_button');oPixel.addToWishList({"content_name":"'Tuscan SeamClip White'","content_category":"'Tuscan Seam Clip'","content_ids":"['MCCAU1147']","content_type":"'product'","value":"'63.5613'","currency":"'AUD'"},'a[rel="1147"].addToWishlist');oPixel.addToCart({"content_name":"'Tuscan SeamClip Blue'","content_category":"'Tuscan Seam Clip'","content_ids":"['MCCAU1742']","content_type":"'product'","value":"'63.5613'","currency":"'AUD'"},'a[data-id-product="1742"].ajax_add_to_cart_button');oPixel.addToWishList({"content_name":"'Tuscan SeamClip Blue'","content_category":"'Tuscan Seam Clip'","content_ids":"['MCCAU1742']","content_type":"'product'","value":"'63.5613'","currency":"'AUD'"},'a[rel="1742"].addToWishlist');});;$().ready(function() Oddly, I tried to delete the HTML5 generated javascript in Home Text Editor module & disabled CMS on Homepage module, but the error is still there. The only way to remove the error is by disabling the FB Product Ads module, but I need that module to run. Any ideas what should I do? I thank you in advance. -- Prestashop 1.6.0.9 - Default Theme
- 3 replies
-
- js error
- javascript
- (and 3 more)
-
Hello, I got a warning in BO: jquery-1.11.0.min.js:4 Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/. I have no clue about this. Any help would be appreciated. Looks like this thing impacting some modules & it doesn't work well. I thank you in advance.
- 3 replies
-
- js error
- js warning
-
(and 2 more)
Tagged with:
-
What is the best way to troubleshoot a jquery conflict on your Prestashop site? Our searchblock module keeps posting errors whenever you start typing in a product. Here are some of the errors: Error : jQuery conflict at function $.postAjax Error : jQuery conflict at function $.objSize Error : jQuery conflict at function $.fn.getFormData Error : jQuery conflict at function $.setCookie Error : jQuery conflict at function $.deleteCookie Error : jQuery conflict at function $.submitAjax www.flyclothing.com
-
I'm having these console errors after moving from my local to a live server. Uncaught TypeError: Cannot read property 'migrateMute' of undefined jquery-migrate-1.2.1.min.js:2(anonymous function)jquery-migrate-1.2.1.min.js:2 Uncaught TypeError: Cannot read property 'fn' of undefined dropmenu.js:2 Uncaught TypeError: undefined is not a function megamenu.js:1 Uncaught TypeError: undefined is not a function script.js:2 Uncaught TypeError: Cannot read property 'browser' of undefined jquery.tooltip.js:27 Uncaught TypeError: undefined is not a function withdrawal-details:841 Uncaught TypeError: undefined is not a function tools.js:487 Uncaught TypeError: undefined is not a function 15-jquery.uniform-modified.js:1073 What i've done so far: 1) Change my domain name in the config/settings.inc.php to my live server settings 2) Login to back office and change my domain and base url to my live server Everything seems to work nicely but i'm having these errors at the console and my don't seem to be working. There isn't any error in my local site, anyone experiencing these kind of problem? And how do i fix it?
-
Hi! I get the above mentioned opoup errors with a 1.5.6.1 version, Error just pops up when I open the catalog->products page. And keeps on popping up (annoying). JS errors are: Failed to load resource: the server responded with a status of 500 (Internal Server Error) [ADMIN-FOLDER-URL]/index.php?controller=ProductsController.php&id_product=5&action=Combinations&updateproduct&ajax=1&rand=1399990963085 Failed to load resource: the server responded with a status of 404 (Not Found) [sHOP-ROOT-URL]/img/p/de-default-smallest_default.jpg Uncaught Error: no such method 'resize' for accordion widget instance jquery-1.7.2.min.js:2 e.extend.error jquery-1.7.2.min.js:2 (anonymous function) jquery.ui.widget.min.js:4 e.extend.each jquery-1.7.2.min.js:2 e.fn.e.each jquery-1.7.2.min.js:2 e.fn.(anonymous function) jquery.ui.widget.min.js:4 (anonymous function) Any ideas?