Hi @admsite
As each site is different, use other themes and plugin there is a high possibility of some conflict there.
Would you please run a conflict test? Please deactivate all plugins except Custom Sidebars and check if the problem is gone. If so, then enable all plugins one by one and find which one is having a conflict. If there is no positive result, switch to default WordPress theme like 2019 and see if it works.
Before this test, I recommend full site backup. Also if this is a live site we recommend running this conflict on a staging site if possible.
Please let us know about the results.
Kind Regards,
Kris
Hi Kris,
i tried a lot but the problem still exists.
In a new installation with the theme, and the plugins it works.
But one small quwestion before.
Can i fetch sidebars in a way like this
<?php get_sidebar( ‘MyCoolSidebar’ ); ?>
Or can i directly change the database?
##################
When i lokk at devtools i find:
cs.min.js?ver=3.2.3:5 Uncaught TypeError: Cannot read property ‘substr’ of undefined
at Object.isCustomSidebar (cs.min.js?ver=3.2.3:5)
at HTMLDivElement.<anonymous> (cs.min.js?ver=3.2.3:5)
at Function.each (jquery.js?ver=1.12.4-wp:2)
at n.fn.init.each (jquery.js?ver=1.12.4-wp:2)
at Object.initColumns (cs.min.js?ver=3.2.3:5)
at Object.init (cs.min.js?ver=3.2.3:5)
at HTMLDocument.<anonymous> (cs.min.js?ver=3.2.3:5)
at i (jquery.js?ver=1.12.4-wp:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
at Function.ready (jquery.js?ver=1.12.4-wp:2)
widgets.php:1637 Uncaught TypeError: settings.data.search is not a function
at HTMLDocument.<anonymous> (widgets.php:1637)
at HTMLDocument.dispatch (jquery.js?ver=1.12.4-wp:3)
at HTMLDocument.r.handle (jquery.js?ver=1.12.4-wp:3)
at Object.trigger (jquery.js?ver=1.12.4-wp:3)
at x (jquery.js?ver=1.12.4-wp:4)
at XMLHttpRequest.c (jquery.js?ver=1.12.4-wp:4)
i also tried the enable jQuery Migrate Helper
Nothing changes except the error:
Uncaught TypeError: settings.data.search is not a function
at HTMLDocument.<anonymous> (widgets.php:1669)
at HTMLDocument.dispatch (jquery.js:3)
at HTMLDocument.r.handle (jquery.js:3)
at Object.trigger (jquery.js:3)
at Object.jQuery.event.trigger (jquery-migrate-1.4.1-wp.js:644)
at x (jquery.js:4)
at XMLHttpRequest.c (jquery.js:4)
Uncaught TypeError: Cannot read property ‘substr’ of undefined
at Object.isCustomSidebar (cs.min.js:5)
at HTMLDivElement.<anonymous> (cs.min.js:5)
at Function.each (jquery.js:2)
at jQuery.fn.init.each (jquery.js:2)
at Object.initColumns (cs.min.js:5)
at Object.init (cs.min.js:5)
at HTMLDocument.<anonymous> (cs.min.js:5)
at i (jquery.js:2)
at Object.fireWith [as resolveWith] (jquery.js:2)
at Function.ready (jquery.js:2)
Is this the problem?
Thanks
Susann
Hello @admsite,
If that worked on the fresh site, it should be some plugin or theme conflict. Were the themes and plugins completely same there too?
About fetching sidebars, you can do that too. I tried to pull it up in the footer and that worked for me:
add_action( 'wp_footer', function(){
get_sidebar( 'MyCoolSidebar' );
} );
Please let me know about the fresh site setup you made.
Thank you,
Prathamesh Palve
Hello @admsite
I’m closing this topic due to recent inactivity.
Feel free to post back any update and we can re-open it and carry on troubleshooting.
🙂
Thank you,
Dimitris