Plugin conflict in the “Month” view, TEC and Meta Data and Taxonomies Filter
-
I have a problem with the “Month” view when I install the MDTF plugin.
Tooltips are not displayed, and the “Calendar” control in the “Event Bar” cannot be opened, an error occurs in the client browser console:
“Uncaught TypeError: this.options.theme.replace is not a function at new o (jquery.tooltipster.min.js?ver=6.4.3:2:497)…Through Debugging I found the source of the problem.
MDTF v1.3.3.2 plugin loads the Tooltipster in the file:
\wp-content\plugins\wp-meta-data-filter-and-taxonomy-filter\core.php (lines 238-244)
next way://tooltipster wp_enqueue_style('tooltipster', self::get_application_uri() . 'js/tooltipster/css/tooltipster.css'); $tooltip_theme = self::get_setting('tooltip_theme'); if ($tooltip_theme != 'default') { wp_enqueue_style('tooltipster_theme', self::get_application_uri() . 'js/tooltipster/css/themes/tooltipster-' . $tooltip_theme . '.css'); } wp_enqueue_script('tooltipster', self::get_application_uri() . 'js/tooltipster/js/jquery.tooltipster.min.js', array('jquery'));
TEC v6.3.5 loads the Tooltipster in the file:
\wp-content\plugins\the-events-calendar\common\src\Tribe\Main.php (lines 236-237)
next way:[ 'tribe-tooltipster', 'vendor/tooltipster/tooltipster.bundle.js', [ 'jquery' ] ], [ 'tribe-tooltipster-css', 'vendor/tooltipster/tooltipster.bundle.css' ],
I solved the problem the dirty way by commenting out lines 238-244 in the MDTF plugin.
Questions?
How do I solve the problem in the long term considering that I have two plugins from different developers here?
Is there a more elegant way than this dirty workaround I used?Regards
- The topic ‘Plugin conflict in the “Month” view, TEC and Meta Data and Taxonomies Filter’ is closed to new replies.