Color picker causing errors
-
Other themes don’t have the issue it’s only happening with di restaurant and it’s child themes( I am using food business ). Something happened when I was using the color picker, in elementor, and it wouldn’t close. I reloaded the page and it all seemed fine, but now when I go to the customizer section I get a javascript error. The error goes away when I change to a different work press theme, but somes back when I go to elementor. I see the file causing issues is in the /di-restaurant/inc/kirki/kirki/assets/vendor/wp-color-picker-alpha directory. I am trying to troubleshoot this tonight, but any help qould be appreciated. I’m afraid any fix I implement will be overwritten when your theme updates.
wp-color-picker-alpha.js?ver=3.0.39:112 Uncaught ReferenceError: wpColorPickerL10n is not defined at h.<computed>.<computed>._create (wp-color-picker-alpha.js?ver=3.0.39:112) at h.<computed>.<computed>.h.isFunction.a.<computed> [as _create] (widget.min.js?ver=1.11.4:11) at h.<computed>.<computed>._createWidget (widget.min.js?ver=1.11.4:11) at new h.<computed>.<computed> (widget.min.js?ver=1.11.4:11) at HTMLInputElement.<anonymous> (widget.min.js?ver=1.11.4:11) at Function.each (load-scripts.php?c=0&load[chunk_0]=jquery&ver=5.5-beta2-48491:2) at n.fn.init.each (load-scripts.php?c=0&load[chunk_0]=jquery&ver=5.5-beta2-48491:2) at n.fn.init.h.fn.<computed> [as wpColorPicker] (widget.min.js?ver=1.11.4:11) at i.ready (customize-controls.min.js?ver=5.5-beta2-48491:2) at Object.<anonymous> (customize-controls.min.js?ver=5.5-beta2-48491:2)Replacing the kirki toolkit with the latest dev branch on github (https://github.com/kirki-framework/kirki) solves the initial issue although I expect that would be overwritten with the next di restaurant theme update. I also haven’t looked deep enough yet to see if it causes any other compatibility issues with the themes expectations of the older version.
The topic ‘Color picker causing errors’ is closed to new replies.
