Uncaught TypeError: e.indexOf is not a function
-
LIKES OF JETPACK NOT SHOWN INTO THE TEMPLATE.
The error not is of Jquery is of the theme… (but the share buttons is ok) why!!LIKES OF JETPACK
The message
Uncaught TypeError: e.indexOf is not a function
load jQuery
jetpackLoadLikeWidgetIframe https://masquesaber.es/wp-content/plugins/jetpack/_inc/build/likes/queuehandler.min.js?ver=9.1:3
JetpackLikesWidgetQueueHandler https://masquesaber.es/wp-content/plugins/jetpack/_inc/build/likes/queuehandler.min.js?ver=9.1:3
————-
Not is posible Load this:
function JetpackLikesWidgetQueueHandler
and
function jetpackLoadLikeWidgetIframe————– extract of jetpack code LIKES…
function JetpackLikesWidgetQueueHandler(){var e;if(jetpackLikesMasterReady){jetpackUnloadScrolledOutWidgets();var t=jetpackGetUnloadedWidgetsInView();t.length>0&&JetpackLikesBatchHandler();for(var i=0,a=t.length;i<=a-1;i++)(e=t[i].id)&&jetpackLoadLikeWidgetIframe(e)}else setTimeout(JetpackLikesWidgetQueueHandler,500)}function jetpackLoadLikeWidgetIframe(e){var t;if(void 0!==e){(t=jQuery(“#”+e)).find(“iframe”).remove();var i=t.find(“.likes-widget-placeholder”);if(i.hasClass(“post-likes-widget-placeholder”)){var a=document.createElement(“iframe”);a.class=”post-likes-widget jetpack-likes-widget”,a.name=t.data(“name”),a.src=t.data(“src”),a.height=”18px”,a.width=”200px”,a.frameBorder=”0″,a.scrolling=”no”,t.hasClass(“slim-likes-widget”)?(a.height=”22px”,a.width=”68px”,a.scrolling=”no”):(a.height=”55px”,a.width=”100%”),i.after(a)}if(i.hasClass(“comment-likes-widget-placeholder”)){var s=document.createElement(“iframe”);s.class=”comment-likes-widget-frame jetpack-likes-widget-frame”,s.name=t.data(“name”),s.src=t.data(“src”),s.height=”18px”,s.width=”100%”,s.frameBorder=”0″,s.scrolling=”no”,t.find(“.comment-like-feedback”).after(s),jetpackCommentLikesLoadedWidgets.push(s)}t.removeClass(“jetpack-likes-widget-unloaded”).addClass(“jetpack-likes-widget-loading”),t.find(“iframe”).load(function(e){var i=jQuery(e.target);JetpackLikesPostMessage({event:”loadLikeWidget”,name:i.attr(“name”),width:i.width()},window.frames[“likes-master”]),t.removeClass(“jetpack-likes-widget-loading”).addClass(“jetpack-likes-widget-loaded”),t.hasClass(“slim-likes-widget”)&&t.find(“iframe”).Jetpack(“resizeable”)})}}—————-
e.indexof not is a function (Why?)
jquery-3.3.1.js{var r,i,o,a=this,s=e.indexOf(” “);return s>-1&&(r=vt(e.slice(s)),e=e.slice(0,s)),g(t)?(n=t,t=void 0):t&&”object”==typeof t&&(i=”POST”),a.length>0&&w.ajax({url:e,type:i||”GET”,dataType:”html”,data:t}).done(function(e){o=arguments,a.html(r?w(“<div>”).append(w.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this}
Please, maybe is only a potion of code to change. So, the theme working correctly whit the plugin LIKES of Jetpack. ?? Many thanks.
The page I need help with: [log in to see the link]
- The topic ‘Uncaught TypeError: e.indexOf is not a function’ is closed to new replies.