• Resolved loorlab

    (@loorlab)


    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 : TRUE

    We 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.

    • This topic was modified 6 years, 11 months ago by loorlab.
    • This topic was modified 6 years, 11 months ago by loorlab.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @loorlab,

    Sorry for the late reply. Are you still seeing this issue? I’m not sure what would cause it except maybe some corrupt data in the $slider_settings variable, maybe?

    Are you able to do anything on the page is it just showing the JSON?

    Can you try in a different browser (or incognito mode)?

    Maybe just delete / re-install the plugin? It’s not happening for everyone otherwise this forum would be full. So it may just be a bad install/ update.

    Hi @loorlab,

    I’ll mark this as resolved as we didn’t hear back, but feel free to reply if needed.

    Thread Starter loorlab

    (@loorlab)

    Hi @kbat82 Yes, we have definitely done all the steps, possibly it is a conflict with some plugin of the installation but we have not been able to determine it until today, but it would be great that you could consider the validation of that variable if the JSON is broken by a third.

    Thanks !

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Broken Dashboard’ is closed to new replies.