Skip to content

Commit 8dd7528

Browse files
Conflict with Modern Events Calendar plugin
1 parent 5cf6d21 commit 8dd7528

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

classes/Visualizer/Module/Admin.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -978,6 +978,9 @@ public function renderLibraryPage() {
978978
),
979979
'page_type' => 'library',
980980
'is_front' => false,
981+
'i10n' => array(
982+
'conflict' => __( 'We have detected a potential conflict with another component that prevents Visualizer from functioning properly. Please disable any of the following components if they are activated on your instance: Modern Events Calendar plugin, Acronix plugin. In case the aforementioned components are not activated or you continue to see this error message, please disable all other plugins and enable them one by one to find out the component that is causing the conflict.', 'visualizer' ),
983+
),
981984
)
982985
);
983986
// render library page

js/library.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@
2323
},
2424

2525
open: function () {
26-
wpmv.MediaFrame.prototype.open.apply(this, arguments);
26+
try{
27+
wpmv.MediaFrame.prototype.open.apply(this, arguments);
28+
}catch(error){
29+
alert(visualizer.i10n.conflict);
30+
}
2731
this.$el.addClass('hide-menu');
2832
}
2933
});

0 commit comments

Comments
 (0)