Broken Dashboard
-
Hi Friends, We are receiving an error in the Metaslider dashboard (console):
ReferenceError: “deleteSlideshow is not defined” -> app-3-13-1.js:7:11702
We have the following information:
WordPress 5.2.2
Metaslider 3.13.1
WP_DEBUG : TRUEWe have uninstalled all the plugins, we have changed the theme and it always generates the same error.
First Test :
Comment line # 12 –> wp-content\plugins\ml-slider\admin\assets\js\app-3-13-1.js (sweetalert2 v7.33.1 — deleteSlideshow)
The dashboard works but shows the following message, damaging the Metaslider display :
“,”slices”:”15″,”center”:”true”,”smartCrop”:”false”,”carouselMode”:”true”,”carouselMargin”:”5″,”easing”:”linear”,”autoPlay”:”false”,”thumb_width”:150,”thumb_height”:100,”fullWidth”:”false”,”noConflict”:”true”,”smoothHeight”:”false”,”firstSlideFadeIn”:”true”,”responsive_thumbs”:”false”}’ inline-template>
Possible solution :
In the file ml-slider.php on line 1234:
<metaslider :id='<?php echo $slider_id; ?>' v-bind:settings='<?php echo json_encode($slider_settings);?>' inline-template>Change to :
<metaslider: id = '<? php echo $ slider_id;?>' v-bind: settings = '<? php echo json_encode (isset ($ slider_settings));?>' inline-template>The code breaks and prints part of the JSON in the dashboard, We have not been able to know exactly breaking, we have verified our site from different observation points.
If the variable $slider_settings is always evaluated, several problems of this type are avoided.
The topic ‘Broken Dashboard’ is closed to new replies.