Recently I have updated the wocommerce version to 3.1.2. But I am fetching problem when going to add variable product or editing variable product. It showing "Uncaught Error: Option 'ajax' is not allowed for Select2 when attached to a element." js error when selecting product attribute or variation.
Uncaught Error: Option 'ajax' is not allowed for Select2 when attached to a <select> element.
at String.<anonymous> (ultimate-woocomposer-backend.min.js:1)
at Function.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-position,jquery-ui&load[]=-menu,wp-a11y,jquery-ui-autocomplete,underscore,backbone,wp-util,wp-backbone,media-models,plupload,jquery-ui-tooltip&ver=4.8.1:2)
at d.prepareOpts (ultimate-woocomposer-backend.min.js:1)
at d.prepareOpts (ultimate-woocomposer-backend.min.js:2)
at d.init (ultimate-woocomposer-backend.min.js:1)
at HTMLSelectElement.<anonymous> (ultimate-woocomposer-backend.min.js:2)
at Function.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-position,jquery-ui&load[]=-menu,wp-a11y,jquery-ui-autocomplete,underscore,backbone,wp-util,wp-backbone,media-models,plupload,jquery-ui-tooltip&ver=4.8.1:2)
at a.fn.init.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-position,jquery-ui&load[]=-menu,wp-a11y,jquery-ui-autocomplete,underscore,backbone,wp-util,wp-backbone,media-models,plupload,jquery-ui-tooltip&ver=4.8.1:2)
at a.fn.init.a.fn.select2 (ultimate-woocomposer-backend.min.js:2)
at HTMLSelectElement.<anonymous> (wc-enhanced-select.min.js:1)
See the screenshot below;
I have googled about this problem but no solution found, most of them are saying it is a bug (I am not sure).
Please help to resolve the problem.
Regards
I know it's been a while, but I just want to share what I found and might can help someone else.
I got same issue with attribute section will stay in the loop, exactly same error I got in the console.
Here's I try:
Disable most common conflict plugin with this same error case I found online.
Disable Yoast SEO (which still not working for me, then just turn them back on)
Disable Visual composer, like page builder plugin, when I turn off "Ultimate_VC_Addons" this plugin, my attribute section is working agaian.
Might cause the conflict by theme, fall back to Wordpress default theme to check.
If cause by Advance custom field, you can check this thread.
Check this woocommerce doc if none of this help.
Hope someone can help me, I've been stuck for a few days now.
After updating my Domino server to 9.01 Fix 3 I keep getting an error on the javascript console:
TypeError: this.editor.getData is not a function
This is the image of the error:
Console Error Message
And all buttons on my page stop working.
If I comment the Richtext code on the page, everything starts working again, this is the code:
<xp:inputRichText id="ds_decisao" styleClass="data" disableClientSideValidation="true" value="#{dts_proposta.ds_texto}" required="false" disableValidators="true" title="titulo" immediate="true"></xp:inputRichText>
This server is for test purposes, so we have the same code in another one that the version is 9.01 Fix 1, and the error does not happen there. The page code is exactly the same, just the server version is different.
I don't know where in the code the problem is, inside CKEditor or Domino, because both of them get updates going from Fix 1 to Fix 3.
I have tried downgrading the version of CKEditor to the same one that is on the 9.01 Fix 1 server, but the error persists. So maybe that points to something on the Domino code, not the CKEditor, but I don't know.
I have to use Fix 3 for security reasons, and I do need CKEditor.
Has anyone encounter this problem?
Any help is appreciated.
Thanks!
I have recently run in to exactly this issue and exact error message with CKEditor in XPages 9.0.1 FP3
I found that when there is an SSJS onClientLoad event on the page it causes an AJAX POST event to the server and this is stopping the CKEditor from loading successfully. Removing the SSJS onClientLoad event allowed the page to load as expected.
I am trying all ways possible to resolve the JQuery Conflict issue in magento. Verified a few forums too but of no help.
I have tried the following:
1.Added jQuery.noConflict(); at the end of the jquery files (still didnt work)
2.Created a variable for noConflict and used all functions (still didnt work)
I can see the Js and CSS files required for jCarousel to function in the output source code, however along with that i get the following error:
jQuery("#mycarousel").jcarousel is not a function
Line 80
Not sure what I'm missing.
I am a newbie to magento. Is there a possibility that I'm missing on some important files to update.
Please assist as soon as possible.
I'm Following the examples of JCarousel as closely as possible. It works fine without Magento, but in Magento error as mentioned above is returned.
Check out the view source and make sure that the JCariusel scripts are inserted after JQuery.
I had the same problem, the it would not load within the magento site. I did however figure it out. I found that my code:
jQuery(".time_slider").jCarouselLite({
btnNext: ".next_time",
btnPrev: ".prev_time",
circular: false,
visible: 4,
speed:1000
});
Was not being loaded into the theme due to it not having a
jQuery(document).ready(function() {}
I also made sure that the jcarousel had a no conflict within the file and that it was loaded before the slider itself in the page.xml file.
Hope this helps. I also found that i had trouble with my no conflict in jQuery. If this doesn't help that is where the problem lies.
Ok. I have some experience with HTML and CSS, little with Javascript and none with JQuery.
And I'm trying to try out in my HTML file the Galleria plugin with fullscreen theme but I can't make it work. ( http://galleria.aino.se/ )
It only show the empty page with no pictures. I took the source code from the demo page and I pasted in my page and after some little modifications with the url of the theme, I managed to have on my screen only the image, without the "mechanism". Any help?
I think the instructions were made for an old release of the plugin and that's the reason I can't get it work.
P.S. I found a ready made demo on googlecode, but I can't get the fullscreen feature. Any help?
Try passing debug:true to yield more errors if you are seeing a blank page. Regarding customizations, try the documentation and API reference.
After several plugins got updated yesterday I saw in the source code that actually no plugin is loaded(1) on the frontpage anymore. On all the other pages everything works just fine.
The most obvious one is the menubar (wp-menubar-plugin), and for now I made an exception for the homepage(2) loading a hard coded copy of the menu as I couldn't debug the issue.
For comparison:
homepage: as newby I only can post on link so please use the one below and click on "home" to compare the source code (only header) of the homepage and and all other pages. Sorry and Thank you ;)
other page example: http://www.ehpress.com/specials/
I tried some debugging by deactivating all plugins and activating one after the other with no change. I had a look through all my template files and couldn't find anything that could cause this 'exception'.
Has anyone experience with this or a similar behaviour?
I would be thankful for any hint where I could start with the debugging.
Thank you for any help,
Albert
(1) the easiest test is the 'All in One SEO Pack' which should be found in the header
(2) if (is_page('home')) ... echo css and in the body echo html
I can't exactly say what it was, but after the provider change some permissions so that I don't get the 550 error again all the plugins work again as well.
Thanks again for your help!
Albert