ThemeFuse / Unyson

A WordPress framework that facilitates the development of WP themes
http://unyson.io
922 stars 217 forks source link

TypeError: Cannot read property 'slider' of undefined #3117

Closed danszwed closed 6 years ago

danszwed commented 6 years ago

I'm getting this error from everglades wordpress theme. From Predefined Styles color picker and fonts are not working. Can you guys help?

[Events] Exception raised. Please contact support in https://github.com/ThemeFuse/Unyson/issues/new. Don't forget to attach this stack trace to the issue. fw-events.js?ver=2.7.11:156 TypeError: Cannot read property 'slider' of undefined at a.(anonymous function).(anonymous function)._initControls (https://rakoroofing.com/wp-content/plugins/unyson/framework/includes/option-types/rgba-color-picker/static/js/scripts.js?ver=2.7.11:236:22) at a.(anonymous function).(anonymous function)._initControls (https://rakoroofing.com/wp-admin/load-scripts.php?c=0&load%5B%5D=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-dragg&load%5B%5D=able,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,shortcode,wp-util,wp-backbone,media-models,wp-plupload,jquery-ui-s&load%5B%5D=ortable,wp-mediaelement,wp-api-request,media-views,media-editor,media-audiovideo,mce-view,imgareaselect,image-edit,postbox,jquer&load%5B%5D=y-ui-tabs&ver=4.9.1:268:1032) at a.(anonymous function).(anonymous function)._create (https://rakoroofing.com/wp-admin/load-scripts.php?c=0&load%5B%5D=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-dragg&load%5B%5D=able,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,shortcode,wp-util,wp-backbone,media-models,wp-plupload,jquery-ui-s&load%5B%5D=ortable,wp-mediaelement,wp-api-request,media-views,media-editor,media-audiovideo,mce-view,imgareaselect,image-edit,postbox,jquer&load%5B%5D=y-ui-tabs&ver=4.9.1:316:8561) at a.(anonymous function).(anonymous function)._create (https://rakoroofing.com/wp-admin/load-scripts.php?c=0&load%5B%5D=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-dragg&load%5B%5D=able,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,shortcode,wp-util,wp-backbone,media-models,wp-plupload,jquery-ui-s&load%5B%5D=ortable,wp-mediaelement,wp-api-request,media-views,media-editor,media-audiovideo,mce-view,imgareaselect,image-edit,postbox,jquer&load%5B%5D=y-ui-tabs&ver=4.9.1:268:1032) at a.(anonymous function).(anonymous function).a (https://rakoroofing.com/wp-admin/load-scripts.php?c=0&load%5B%5D=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-dragg&load%5B%5D=able,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,shortcode,wp-util,wp-backbone,media-models,wp-plupload,jquery-ui-s&load%5B%5D=ortable,wp-mediaelement,wp-api-request,media-views,media-editor,media-audiovideo,mce-view,imgareaselect,image-edit,postbox,jquer&load%5B%5D=y-ui-tabs&ver=4.9.1:268:857) at a.(anonymous function).(anonymous function)._create (https://rakoroofing.com/wp-content/plugins/unyson/framework/includes/option-types/rgba-color-picker/static/js/scripts.js?ver=2.7.11:174:9) at a.(anonymous function).(anonymous function)._create (https://rakoroofing.com/wp-admin/load-scripts.php?c=0&load%5B%5D=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-dragg&load%5B%5D=able,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,shortcode,wp-util,wp-backbone,media-models,wp-plupload,jquery-ui-s&load%5B%5D=ortable,wp-mediaelement,wp-api-request,media-views,media-editor,media-audiovideo,mce-view,imgareaselect,image-edit,postbox,jquer&load%5B%5D=y-ui-tabs&ver=4.9.1:268:1032) at a.(anonymous function).(anonymous function)._createWidget (https://rakoroofing.com/wp-admin/load-scripts.php?c=0&load%5B%5D=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-dragg&load%5B%5D=able,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,shortcode,wp-util,wp-backbone,media-models,wp-plupload,jquery-ui-s&load%5B%5D=ortable,wp-mediaelement,wp-api-request,media-views,media-editor,media-audiovideo,mce-view,imgareaselect,image-edit,postbox,jquer&load%5B%5D=y-ui-tabs&ver=4.9.1:268:3093) at new a.(anonymous function).(anonymous function) (https://rakoroofing.com/wp-admin/load-scripts.php?c=0&load%5B%5D=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-dragg&load%5B%5D=able,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,shortcode,wp-util,wp-backbone,media-models,wp-plupload,jquery-ui-s&load%5B%5D=ortable,wp-mediaelement,wp-api-request,media-views,media-editor,media-audiovideo,mce-view,imgareaselect,image-edit,postbox,jquer&load%5B%5D=y-ui-tabs&ver=4.9.1:268:593) at HTMLInputElement. (https://rakoroofing.com/wp-admin/load-scripts.php?c=0&load%5B%5D=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-dragg&load%5B%5D=able,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,shortcode,wp-util,wp-backbone,media-models,wp-plupload,jquery-ui-s&load%5B%5D=ortable,wp-mediaelement,wp-api-request,media-views,media-editor,media-audiovideo,mce-view,imgareaselect,image-edit,postbox,jquer&load%5B%5D=y-ui-tabs&ver=4.9.1:268:2365) (anonymous) @ fw-events.js?ver=2.7.11:156

ViorelEremia commented 6 years ago

Drop me some temporary credentials (admin, ftp): viorel [ a ] themefuse [ dot ] com

ViorelEremia commented 6 years ago

Where you see that error From Predefined Styles color picker and fonts are not working.

ViorelEremia commented 6 years ago

Ok, I found it

danszwed commented 6 years ago

Great.

Let me know what you find.

On Wed, Jan 10, 2018 at 8:41 AM, ViorelEremia notifications@github.com wrote:

Ok, I found it

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ThemeFuse/Unyson/issues/3117#issuecomment-356621667, or mute the thread https://github.com/notifications/unsubscribe-auth/ARkSYb2H0YWM4OBNXmhyh97JoFPOg23nks5tJMwCgaJpZM4RYuvL .

ViorelEremia commented 6 years ago

I have found where the problem is, it's a theme issue. The theme adds a new option type (FW_Option_Type_Style) file: /var/www/html/wp/wp-content/themes/everglades/inc/includes/option-types/style/class-fw-option-type-style.php That option type loads some custom scripts(js, css) which refresh some option types initialized in line 712 from file js:/var/www/html/wp/wp-content/themes/everglades/inc/includes/option-types/style/static/js/scripts.js if you comment this line everything is working fine. I don't know why they did that but they have to inspect and solve this problem. Please write to the author of the theme because they know better why they did that.

danszwed commented 6 years ago

Thank you so much.

On Thu, Jan 11, 2018 at 3:28 AM, ViorelEremia notifications@github.com wrote:

I have found where the problem is, it's a theme issue. The theme adds a new option type (FW_Option_Type_Style) file: /var/www/html/wp/wp-content/ themes/everglades/inc/includes/option-types/style/ class-fw-option-type-style.php That option type loads some custom scripts(js, css) which refresh some option types initialized in line 712 from file js:/var/www/html/wp/wp- content/themes/everglades/inc/includes/option-types/style/static/js/scripts.js if you comment this line everything is working fine. I don't know why they did that but they have to inspect and solve this problem. Please write to the author of the theme because they know better why they did that.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ThemeFuse/Unyson/issues/3117#issuecomment-356876407, or mute the thread https://github.com/notifications/unsubscribe-auth/ARkSYSkuc9hg_cVAy5Xlwb9JpRFa-63Uks5tJdQvgaJpZM4RYuvL .