Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter tackettz

    (@tackettz)

    I am getting a Javascript error

    Uncaught SyntaxError: expected expression, got ‘,’ index.js:2:1

    wp-content/plugins/shortcodes-ultimate/includes/js/shortcodes/index.js?ver=5.12.4

    The error is coming from the index file inside of the plugins codebase itself

    !function n(i,s,a){function r(t,e){if(!s[t]){if(!i[t]){var o="function"==typeof require&&require;if(!e&&o)return o(t,!0);if(l)return l(t,!0);throw(o=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",o}o=s[t]={exports:{}},i[t][0].call(o.exports,function(e){return r(i[t][1][e]||e)},o,o.exports,n,i,s,a)}return s[t].exports}for(var l="function"==typeof require&&require,e=0;e<a.length;e++)r(a[e]);return r}({1:[function(e,t,o){"use strict";function n(e,t,o){
    },o.readCookie=function(e){for(
    }},{}],2:[function(e,t,o){"use strict";var n=h(e("./shortcodes/galleries")),i=h(e("./shortcodes/players")),s=h(e("./shortcodes/other")),a=h(e("./shortcodes/image-carousel")),r=h(e("./shortcodes/tooltip")),l=h(e("./shortcodes/content-slider")),c=h(e("./shortcodes/exit-popup")),u=h(e("./shortcodes/panels")),d=h(e("./shortcodes/pricing-table")),p=h(e("./shortcodes/progress-bar")),f=h(e("./shortcodes/progress-pie")),e=h(e("./shortcodes/splash-screen"));function h(e){return e&&e.__esModule?e:{default:e}}(0,n.default)(),(0,i.default)(),(0,s.default)(),(0,a.default)(),(0,r.default)(),(0,l.default)(),(0,c.default)(),(0,u.default)(),(0,d.default)(),(0,p.default)(),(0,f.default)(),(0,e.default)()},{"./shortcodes/content-slider":3,"./shortcodes/exit-popup":4,"./shortcodes/galleries":5,"./shortcodes/image-carousel":6,"./shortcodes/other":7,"./shortcodes/panels":8,"./shortcodes/players":9,"./shortcodes/pricing-table":10,"./shortcodes/progress-bar":11,"./shortcodes/progress-pie":12,"./shortcodes/splash-screen":13,"./shortcodes/tooltip":14}],3:[function(e,t,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default=function(){
    }},{}],4:[function(e,t,o){"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(o,"__esModule",{value:!0}),o.default=function(){
    };var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};t=r(t);if(t&&t.has(e))return t.get(e);var o,n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(o in e){var s;"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&((s=i?Object.getOwnPropertyDescriptor(e,o):null)&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o])}n.default=e,t&&t.set(e,n);return n}(e("./../cookies/cookies"));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(r=function(e){return e?o:t})(e)}},{"./../cookies/cookies":1}],5:[function(e,t,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default=function(){jQuery(document).ready(function(n){n(".su-lightbox-gallery").each(function(){var t=[];n(this).find(".su-slider-slide, .su-carousel-slide, .su-custom-gallery-slide").each(function(e){n(this).attr("data-index",e),t.push({src:n(this).children("a").attr("href"),title:n(this).children("a").attr("title")})}),n(this).data("slides",t)}),n(".su-slider").each(function(){var e=n(this),t=e.swiper({wrapperClass:"su-slider-slides",slideClass:"su-slider-slide",slideActiveClass:"su-slider-slide-active",slideVisibleClass:"su-slider-slide-visible",pagination:"#"+e.attr("id")+" .su-slider-pagination",autoplay:e.data("autoplay"),paginationClickable:!0,grabCursor:!0,mode:"horizontal",mousewheelControl:e.data("mousewheel"),speed:e.data("speed"),calculateHeight:e.hasClass("su-slider-responsive-yes"),loop:!0});e.find(".su-slider-prev").click(function(e){t.swipeNext()}),e.find(".su-slider-next").click(function(e){t.swipePrev()})}),n(".su-carousel").each(function(){var e=n(this),t=e.find(".su-carousel-slide"),o=e.swiper({wrapperClass:"su-carousel-slides",slideClass:"su-carousel-slide",slideActiveClass:"su-carousel-slide-active",slideVisibleClass:"su-carousel-slide-visible",pagination:"#"+e.attr("id")+" .su-carousel-pagination",autoplay:e.data("autoplay"),paginationClickable:!0,grabCursor:!0,mode:"horizontal",mousewheelControl:e.data("mousewheel"),speed:e.data("speed"),slidesPerView:e.data("items")>t.length?t.length:e.data("items"),slidesPerGroup:e.data("scroll"),calculateHeight:e.hasClass("su-carousel-responsive-yes"),loop:!0});e.find(".su-carousel-prev").click(function(e){o.swipeNext()}),e.find(".su-carousel-next").click(function(e){o.swipePrev()})}),n(".su-lightbox-gallery").on("click",".su-slider-slide, .su-carousel-slide, .su-custom-gallery-slide",function(e){e.preventDefault();e=n(this).parents(".su-lightbox-gallery").data("slides");n.magnificPopup.open({items:e,type:"image",mainClass:"mfp-img-mobile",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1],tPrev:SUShortcodesL10n.magnificPopup.prev,tNext:SUShortcodesL10n.magnificPopup.next,tCounter:SUShortcodesL10n.magnificPopup.counter},tClose:SUShortcodesL10n.magnificPopup.close,tLoading:SUShortcodesL10n.magnificPopup.loading},n(this).data("index"))})})}},{}],6:[function(e,t,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default=function(){window.SUImageCarousel=function(){var i={MFPItems:{},MFPL10n:SUShortcodesL10n.magnificPopup,initGalleries:function(){var e=document.querySelectorAll(".su-image-carousel");Array.prototype.forEach.call(e,i.initGallery)},initGallery:function(e){var o,t;e.classList.contains("su-image-carousel-ready")||(t=JSON.parse(e.getAttribute("data-flickity-options")),t=new Flickity(e,t),e.removeAttribute("tabindex"),t.on("settle",i.onGallerySettle),e.classList.contains("su-image-carousel-has-lightbox")&&(t.on("staticClick",i.onFlickityStaticClick),e.addEventListener("click",i.preventGalleryLinkClick),e.addEventListener("keyup",i.onGalleryKeyUp),o=e.getAttribute("id"),t=e.querySelectorAll(".su-image-carousel-item-content > a"),i.MFPItems[o]=[],Array.prototype.forEach.call(t,function(e,t){e.setAttribute("data-gallery",o),e.setAttribute("data-index",t),i.MFPItems[o].push({src:e.getAttribute("href"),title:e.getAttribute("data-caption")})})),e.classList.add("su-image-carousel-ready"))},onFlickityStaticClick:function(e,t,o,n){!o||(o=o.querySelector("a"))&&i.openMagnificPopupFromLink(o)},onGallerySettle:function(e){var t=this.element.querySelectorAll(".su-image-carousel-item");Array.prototype.forEach.call(t,function(e,t){var o=e.querySelectorAll("a")[0];o&&(o.setAttribute("tabindex",-1),e.classList.contains("is-selected")&&o.setAttribute("tabindex",0))})},preventGalleryLinkClick:function(e){i.closest(e.target,function(e){return e.tagName&&"A"===e.tagName.toUpperCase()})&&e.preventDefault()},onGalleryKeyUp:function(e){!e.keyCode||13!==e.keyCode||(e=i.closest(e.target,function(e){return e.tagName&&"A"===e.tagName.toUpperCase()}))&&i.openMagnificPopupFromLink(e)},openMagnificPopup:function(e,t){jQuery.magnificPopup.open({items:i.MFPItems[e],type:"image",mainClass:"mfp-img-mobile su-image-carousel-mfp",gallery:{enabled:!0,navigateByImgClick:!0,preload:[1,1],tPrev:i.MFPL10n.prev,tNext:i.MFPL10n.next,tCounter:i.MFPL10n.counter},tClose:i.MFPL10n.close,tLoading:i.MFPL10n.loading},t)},openMagnificPopupFromLink:function(e){var t=e.getAttribute("data-gallery"),e=parseInt(e.getAttribute("data-index"),10);i.openMagnificPopup(t,e)},closest:function(e,t){return e&&(t(e)?e:i.closest(e.parentNode,t))},ready:function(e){"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)}};return{ready:i.ready,initGalleries:i.initGalleries,initGallery:i.initGallery}}(),jQuery(document).ready(function(){window.SUImageCarousel.initGalleries()})}},{}],7:[function(e,t,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default=function(){jQuery(document).ready(function(i){function o(e){(i(window).scrollTop()+i("body").offset().top>e.offset().top||i(window).scrollTop()+i(window).height()<e.offset().top)&&i(window).scrollTop(e.offset().top-i("body").offset().top-e.data("scroll-offset"))}function s(e){e=0<arguments.length&&void 0!==e?e:"";"string"==typeof e&&""!==(e=e.replace(/[^a-z0-9_-]/gim,"").trim())&&(window.location.hash="#"+e)}function a(e){var t=e.index(),o=e.hasClass("su-tabs-disabled"),n=e.parents(".su-tabs"),e=n.find(".su-tabs-nav span"),n=n.find(".su-tabs-pane");o||(n.removeClass("su-tabs-pane-open").eq(t).addClass("su-tabs-pane-open"),e.removeClass("su-tabs-current").eq(t).addClass("su-tabs-current"),window.setTimeout(function(){window.dispatchEvent(new Event("resize"))},100))}function e(){""!==document.location.hash&&(i(".su-tabs-nav span[data-anchor]").each(function(){var e;"#"+i(this).data("anchor")===document.location.hash&&(e=i(this).parents(".su-tabs"),i(this).trigger("click"),window.setTimeout(function(){o(e)},100))}),i(".su-spoiler[data-anchor]").each(function(){var e;"#"+i(this).data("anchor")===document.location.hash&&((e=i(this)).hasClass("su-spoiler-closed")&&e.find(".su-spoiler-title:first").trigger("click"),window.setTimeout(function(){o(e)},100))}))}i("body:not(.su-other-shortcodes-loaded)").on("click keypress",".su-spoiler-title",function(e){var t=i(this).parent();t.toggleClass("su-spoiler-closed"),t.hasClass("su-spoiler-closed")||"yes"!==t.data("anchor-in-url")||s(t.data("anchor")),t.parent(".su-accordion").children(".su-spoiler").not(t).addClass("su-spoiler-closed"),o(t),e.preventDefault()}),i("body:not(.su-other-shortcodes-loaded)").on("click keypress",".su-tabs-nav span",function(e){var t=i(this),o=t.parents(".su-tabs"),n=t.data();a(t),"yes"===o.data("anchor-in-url")&&s(t.data("anchor")),""!==n.url&&("self"===n.target?window.location=n.url:"blank"===n.target&&window.open(n.url)),e.preventDefault()}),i(".su-tabs").each(function(){var e=parseInt(i(this).data("active"))-1;a(i(this).children(".su-tabs-nav").children("span").eq(e))}),e(),i(document).on("click",".su-lightbox",function(e){var t,o;e.preventDefault(),e.stopPropagation(),"su-generator-preview"!==i(this).parent().attr("id")?(e=i(this).data("mfp-type"),t=i(this).data("mobile"),o=i(window).width(),i(this).magnificPopup({disableOn:function(){return!("no"===t&&o<768)&&!("number"==typeof t&&o<t)},type:e,tClose:SUShortcodesL10n.magnificPopup.close,tLoading:SUShortcodesL10n.magnificPopup.loading,gallery:{tPrev:SUShortcodesL10n.magnificPopup.prev,tNext:SUShortcodesL10n.magnificPopup.next,tCounter:SUShortcodesL10n.magnificPopup.counter},image:{tError:SUShortcodesL10n.magnificPopup.error},ajax:{tError:SUShortcodesL10n.magnificPopup.error},iframe:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen allow="autoplay; fullscreen"></iframe></div>'}}).magnificPopup("open")):i(this).html(SUShortcodesL10n.noPreview)}),i(".su-frame-align-center, .su-frame-align-none").each(function(){var e=i(this).find("img").width();i(this).css("width",e+12)}),i("body:not(.su-other-shortcodes-loaded)").on("click",".su-expand-link",function(){var e=i(this).parents(".su-expand"),t=e.children(".su-expand-content");e.hasClass("su-expand-collapsed")?t.css("max-height","none"):t.css("max-height",e.data("height")+"px"),e.toggleClass("su-expand-collapsed")}),i(".su-animate").each(function(){var e,t=i(this),o=t.data(),n=void 0!==(e=(document.body||document.documentElement).style).transition||void 0!==e.WebkitTransition||void 0!==e.MozTransition||void 0!==e.MsTransition||void 0!==e.OTransition?1e3*o.delay:0;t.one("inview",function(e){window.setTimeout(function(){t.addClass(o.animation),t.addClass("animated"),t.get(0).style.removeProperty("opacity")},n)})}),"onhashchange"in window&&i(window).on("hashchange",e),i("body").addClass("su-other-shortcodes-loaded")})}},{}],8:[function(e,t,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default=function(){
    }},{}],9:[function(e,t,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default=function(){jQuery(document).ready(function(r){r(".su-audio").each(function(){var t=r(this),e="#"+t.data("id"),o=r(e),n=t.data("audio"),i=t.data("swf");o.jPlayer({ready:function(e){o.jPlayer("setMedia",{mp3:n}),"yes"===t.data("autoplay")&&o.jPlayer("play"),"yes"===t.data("loop")&&o.bind(r.jPlayer.event.ended+".repeat",function(){o.jPlayer("play")})},cssSelectorAncestor:e+"_container",volume:1,keyEnabled:!0,smoothPlayBar:!0,swfPath:i,supplied:"mp3"})}),r(".su-video").each(function(){var t=r(this),e=t.attr("id"),o=r("#"+e+"_player"),n=t.data("video"),i=t.data("swf"),s=t.data("poster"),a={width:o.width(),height:o.height()};o.jPlayer({ready:function(e){o.jPlayer("setMedia",{mp4:n,flv:n,poster:s}),"yes"===t.data("autoplay")&&o.jPlayer("play"),"yes"===t.data("loop")&&o.bind(r.jPlayer.event.ended+".repeat",function(){o.jPlayer("play")})},cssSelector:{gui:".jp-gui, .jp-title"},size:a,cssSelectorAncestor:"#"+e,volume:1,keyEnabled:!0,smoothPlayBar:!0,swfPath:i,supplied:"mp4, flv"})})})}},{}],10:[function(e,t,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default=function(){
    }},{}],11:[function(e,t,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default=function(){
    }},{}],12:[function(e,t,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default=function(){
    }},{}],13:[function(e,t,o){"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(o,"__esModule",{value:!0}),o.default=function(){
    };var i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};t=r(t);if(t&&t.has(e))return t.get(e);var o,n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(o in e){var s;"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&((s=i?Object.getOwnPropertyDescriptor(e,o):null)&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o])}n.default=e,t&&t.set(e,n);return n}(e("./../cookies/cookies"));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(r=function(e){return e?o:t})(e)}},{"./../cookies/cookies":1}],14:[function(e,t,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default=function(){var i=[{name:"offset",options:{offset:[0,8]}}];function e(e){var t=e.getAttribute("id"),t=document.getElementById(t+"_button"),o=JSON.parse(t.getAttribute("data-settings"));document.body.appendChild(e);var n=Popper.createPopper(t,e,{placement:o.position,modifiers:[].concat(i)});"always"===o.behavior&&window.setTimeout(function(){s(e,n)},0),"click"!==o.behavior&&"hover"!==o.behavior||(t.addEventListener("focus",function(){return s(e,n)}),t.addEventListener("blur",function(){return a(e,n,o.hideDelay)})),"hover"===o.behavior&&(t.addEventListener("mouseenter",function(){return s(e,n)}),t.addEventListener("mouseleave",function(){return a(e,n,o.hideDelay)})),e.style.removeProperty("display")}function s(e,t){e.classList.add("su-tooltip-visible"),t.setOptions({modifiers:[{name:"eventListeners",enabled:!0}].concat(i)}),t.update()}function a(e,t,o){window.setTimeout(function(){e.classList.remove("su-tooltip-visible"),t.setOptions({modifiers:[{name:"eventListeners",enabled:!1}].concat(i)})},o)}document.addEventListener("DOMContentLoaded",function(){Array.prototype.forEach.call(document.querySelectorAll(".su-tooltip"),e)})}},{}]},{},[2]);
    //# sourceMappingURL=index.js.map
    
    • This reply was modified 2 years, 4 months ago by tackettz.
    • This reply was modified 2 years, 4 months ago by tackettz.
    Thread Starter tackettz

    (@tackettz)

    7.3.3, the one that was just released today

    Thread Starter tackettz

    (@tackettz)

    To fix I had to comment out line 16

    #require_once ‘vendor/autoload.php’;

    There is not a vendor directory even included in the plugin.

Viewing 3 replies - 1 through 3 (of 3 total)