Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Cannot read property ‘selector’ of undefined


sushant88
Participant

@sushant88

Buddy press is not letting WordPress’ customize function play well. following error is thrown when we try to customize WordPress page

customizer.min.js:1 Uncaught TypeError: Cannot read property 'selector' of undefined
    at HTMLDocument.<anonymous> (customizer.min.js:1)
    at i (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,underscore,wp-a11y,wp-util,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-&load[]=ui-draggable,jquery-ui-droppable,backbone,wp-backbone,jquery-ui-resizable&ver=4.9.7:2)
    at Object.fireWith [as resolveWith] (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,underscore,wp-a11y,wp-util,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-&load[]=ui-draggable,jquery-ui-droppable,backbone,wp-backbone,jquery-ui-resizable&ver=4.9.7:2)
    at Function.ready (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,underscore,wp-a11y,wp-util,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-&load[]=ui-draggable,jquery-ui-droppable,backbone,wp-backbone,jquery-ui-resizable&ver=4.9.7:2)
    at HTMLDocument.K (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,underscore,wp-a11y,wp-util,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-&load[]=ui-draggable,jquery-ui-droppable,backbone,wp-backbone,jquery-ui-resizable&ver=4.9.7:2)
(anonymous) @ customizer.min.js:1
i @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,underscore,wp-a11y,wp-util,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-&load[]=ui-draggable,jquery-ui-droppable,backbone,wp-backbone,jquery-ui-resizable&ver=4.9.7:2
fireWith @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,underscore,wp-a11y,wp-util,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-&load[]=ui-draggable,jquery-ui-droppable,backbone,wp-backbone,jquery-ui-resizable&ver=4.9.7:2
ready @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,underscore,wp-a11y,wp-util,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-&load[]=ui-draggable,jquery-ui-droppable,backbone,wp-backbone,jquery-ui-resizable&ver=4.9.7:2
K @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,underscore,wp-a11y,wp-util,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-&load[]=ui-draggable,jquery-ui-droppable,backbone,wp-backbone,jquery-ui-resizable&ver=4.9.7:2

View post on imgur.com

Disabling the plugin allows us to customize the front page. We were able to reproduce the error with different wordpress setup on both linux and windows.

1. Which version of WordPress are you running? 4.9.7
2. Did you install WordPress as a directory or subdomain install? Directory
3. If a directory install, is it in root or in a subdirectory? subdirectory
4. Did you upgrade from a previous version of WordPress? If so, from which version? no
5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting. yes
6. Which version of BP are you running? 3.1.0
7. Did you upgraded from a previous version of BP? If so, from which version? no
8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones? advanced-custom-fields-pro
9. Are you using the standard WordPress theme or customized theme? twenty fifteen, sixteen, seventeen,
10. Which theme do you use ? twenty fifteen
11. Have you modified the core files in any way? no
12. Do you have any custom functions in bp-custom.php? no
13. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in? 2.5.14
14. Please provide a list of any errors in your server’s log files. there were no error
15. Which company provides your hosting? cloudways
16. Is your server running Windows, or if Linux; Apache, nginx or something else? Linux, Apache
Basic Trouble Shooting:
> changed theme , issue persisted
> disabled all plugins except BuddyPress,
> reinstalled buddy press and removed caching entirely
>
issue persisted

Skip to toolbar