Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › Spinning wheel on Direct Message
- This topic has 3 replies, 2 voices, and was last updated 4 years, 8 months ago by Sushobhan.
- AuthorPosts
- April 23, 2020 at 9:55 pm #122273contact8732Participant
Hello, when Vendor tries to send Direct Message to Admin from Vendor Store Manager Announcements page, the message sends but the spinning wheel continues and an error is shown in google chrome inspect console:
Uncaught TypeError: Cannot read wcfm-script-messages.js?ver=6.4.8:44 property ‘setContent’ of null
at Object.success (wcfm-script-messages.js?ver=6.4.8:44)
at i (jquery.js:2)
at Object.fireWith [as resolveWith] (jquery.js:2)
at x (jquery.js:4)
at XMLHttpRequest.c (jquery.js:4)Thank you
Attachments:
You must be logged in to view attached files. - April 24, 2020 at 1:35 pm #122462SushobhanKeymaster
Hi,
This seems like a plugin conflict. Kindly disable all other plugins except WooCommerce and WCFM plugins. After that you can enable rest of the plugins one by one to find out the cause.
one query – Did you disabled rich editor option for your vendors, from Capability settings?
Let me know how it goes.
Thanks! - April 24, 2020 at 2:01 pm #122474contact8732Participant
Rich editor was disabled. When I enable it, the problem disappears 🙂 Thank you. I would like Rich Editor to be disabled – is there a way you can make it so Direct Messages work without spinning wheel when Rich Editor disabled please? (Same problem also happens for Vendor replies to Admin announcements).
- April 24, 2020 at 3:44 pm #122499SushobhanKeymaster
Hi,
The WP rich editor library(tinymce) some how gets initiated here. It shouldn’t be, as you have disabled that feature. I believe there might be some other plugin producing this conflict.
You can try using the following hack to bypass this. This code is untested as I couldn’t replicate the issue on my side, but it should work.add_action('wcfm_main_contentainer_after', function() { $rich_editor = apply_filters( 'wcfm_is_allow_rich_editor', 'rich_editor' ); $wpeditor = apply_filters( 'wcfm_is_allow_product_wpeditor', 'wpeditor' ); if( ! $wpeditor || ! $rich_editor ) { ?> <script> setTimeout(function(){ window.tinymce = void 0; },0); </script> <?php } });
Add this code to your child theme’s functions.php
In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/
Let me know how this goes.
Thanks!
- AuthorPosts
- You must be logged in to reply to this topic.