shayno90
Forum Replies Created
-
Sorry when i ask “why now”, its more that I did no changes to CSS or anything before updating. So it seems that within the update it became more “sensitive”? ??
I see. That makes sense. But why is it faulting now? I can try and see if i find those CSS files to fix
ah – my bad. Custom Thank you was activated (normally its not, I must have activated it accidentally when i was troubleshooting the footer issue)
Thats right. The CSS issue happened recently, whereas before it was just the JS xD I have no idea whats going on.
A few plugins got updated but I read all the changelogs and they were minor bugs and fixes. The strange thing is that if i disable Autoptimize, all is good. :/
OKay, but Custom Thank you is disabled strangely :/ why is this now a problem since WP5.5? those errors must have been there before since I only updated this morning.
Okay disabling the CSS has brought the site back alive ??
It keeps breaking the front end of the site :/
Also, this popped up:
jQuery Migrate Helper — Warnings encountered
This page generated the following warnings:jQuery.fn.attr(‘checked’) might use property instead of attribute
Please make sure you are using the latest version of all of your plugins, and your theme. If you are, you may want to ask the developers of the code mentioned in the warnings for an update.Okay, strangely I deactivated and reactivated automate woo and it completely broke the site :/
Okay? How would I do that? (sorry, I’m not exactly a dev.) would I just put “acf.js” in this list or how do i format it?
Here is a screenshot of the console messages: https://snipboard.io/Wr9oA3.jpg
Here’s the settings i have: https://prnt.sc/tyyd6l
Console says:
Uncaught TypeError: Cannot read property ‘__’ of undefined
at autoptimize_b9a4a3678326d34bf1365f688a3fc922.js:401
at autoptimize_b9a4a3678326d34bf1365f688a3fc922.js:401I had this one ” js/jquery/jquery.jsa” with an “A” on the end. I tried placing in “js/jquery/jquery.js” into the exclusion list and it’s still not resolving.
Line 407 in (index):
!function(i,t){var e,a=wp.i18n.__;e={options:{defaultColor:!1,change:!1,clear:!1,hide:!0,palettes:!0,width:255,mode:”hsv”,type:”full”,slider:”horizontal”},_createHueOnly:function(){var e,o=this,t=o.element;t.hide(),e=”hsl(“+t.val()+”, 100, 50)”,t.iris({mode:”hsl”,type:”hue”,hide:!1,color:e,change:function(e,t){i.isFunction(o.options.change)&&o.options.change.call(this,e,t)},width:o.options.width,slider:o.options.slider})},_create:function(){if(i.support.iris){var o=this,e=o.element;if(i.extend(o.options,e.data()),”hue”===o.options.type)return o._createHueOnly();o.close=i.proxy(o.close,o),o.initialValue=e.val(),e.addClass(“wp-color-picker”),e.parent(“label”).length||(e.wrap(“<label></label>”),o.wrappingLabelText=i(‘<span class=”screen-reader-text”></span>’).insertBefore(e).text(a(“Color value”))),o.wrappingLabel=e.parent(),o.wrappingLabel.wrap(‘<div class=”wp-picker-container” />’),o.wrap=o.wrappingLabel.parent(),o.toggler=i(‘<button type=”button” class=”button wp-color-result” aria-expanded=”false”><span class=”wp-color-result-text”></span></button>’).insertBefore(o.wrappingLabel).css({backgroundColor:o.initialValue}),o.toggler.find(“.wp-color-result-text”).text(a(“Select Color”)),o.pickerContainer=i(‘<div class=”wp-picker-holder” />’).insertAfter(o.wrappingLabel),o.button=i(‘<input type=”button” class=”button button-small” />’),o.options.defaultColor?o.button.addClass(“wp-picker-default”).val(a(“Default”)).attr(“aria-label”,a(“Select default color”)):o.button.addClass(“wp-picker-clear”).val(a(“Clear”)).attr(“aria-label”,a(“Clear color”)),o.wrappingLabel.wrap(‘<span class=”wp-picker-input-wrap hidden” />’).after(o.button),o.inputWrapper=e.closest(“.wp-picker-input-wrap”),e.iris({target:o.pickerContainer,hide:o.options.hide,width:o.options.width,mode:o.options.mode,palettes:o.options.palettes,change:function(e,t){o.toggler.css({backgroundColor:t.color.toString()}),i.isFunction(o.options.change)&&o.options.change.call(this,e,t)}}),e.val(o.initialValue),o._addListeners(),o.options.hide||o.toggler.click()}},_addListeners:function(){var o=this;o.wrap.on(“click.wpcolorpicker”,function(e){e.stopPropagation()}),o.toggler.click(function(){o.toggler.hasClass(“wp-picker-open”)?o.close():o.open()}),o.element.change(function(e){var t=i(this).val();””!==t&&”#”!==t||(o.toggler.css(“backgroundColor”,””),i.isFunction(o.options.clear)&&o.options.clear.call(this,e))}),o.button.click(function(e){var t=i(this);t.hasClass(“wp-picker-clear”)?(o.element.val(“”),o.toggler.css(“backgroundColor”,””),i.isFunction(o.options.clear)&&o.options.clear.call(this,e)):t.hasClass(“wp-picker-default”)&&o.element.val(o.options.defaultColor).change()})},open:function(){this.element.iris(“toggle”),this.inputWrapper.removeClass(“hidden”),this.wrap.addClass(“wp-picker-active”),this.toggler.addClass(“wp-picker-open”).attr(“aria-expanded”,”true”),i(“body”).trigger(“click.wpcolorpicker”).on(“click.wpcolorpicker”,this.close)},close:function(){this.element.iris(“toggle”),this.inputWrapper.addClass(“hidden”),this.wrap.removeClass(“wp-picker-active”),this.toggler.removeClass(“wp-picker-open”).attr(“aria-expanded”,”false”),i(“body”).off(“click.wpcolorpicker”,this.close)},color:function(e){if(e===t)return this.element.iris(“option”,”color”);this.element.iris(“option”,”color”,e)},defaultColor:function(e){if(e===t)return this.options.defaultColor;this.options.defaultColor=e}},i.widget(“wp.wpColorPicker”,e)}(jQuery);
There’s a few but the one in question to automatewoo is:
Uncaught TypeError: Cannot read property ‘__’ of undefined
at autoptimize_673d470fe4f82bd964cde3cc65b28353.js:407
at autoptimize_673d470fe4f82bd964cde3cc65b28353.js:407These are the other errors:
(index):7 Uncaught ReferenceError: jQuery is not defined
at (index):7
(index):29 Uncaught ReferenceError: acf is not defined
at (index):29
(index):30 Uncaught ReferenceError: acf is not defined
at (index):30
(index):30 Uncaught ReferenceError: jQuery is not defined
at (index):30
autoptimize_673d470fe4f82bd964cde3cc65b28353.js:11 JQMIGRATE: Migrate is installed with logging active, version 1.4.1Unchecking “aggregate all linked JS…” solves the issue.