Support » Plugin: MetaSlider » Settings screen is blank

  • Resolved TylerTork

    (@tylertork)


    When I click Metaslider in my site’s dashboard, the content area of the screen is blank. Examining the situation using developer tools, I find the Metaslider UI is there, but set to display:none by a rule in …/wp-content/plugins/ml-slider/admin/assets/css/admin-3-14-0.css?ver=3.14.0, as follows:

    div#wpbody-content>* {
    display:none
    }

    Now, this looks like your CSS file, and it’s hiding your own content and maybe some other stuff also, because it doesn’t look Metaslider-specific. Perhaps you could refine the rule to narrow its scope and make it possible to actually create a slider?

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Contributor kbatdorf

    (@kbat82)

    Hi @tylertork

    The rule is there to hide the sometimes countless advertisements being added by other plugins on our settings page. There is a Javascript function that will single out anything necessary. Do you see errors in the dev tools?

    https://updraftplus.com/faqs/how-do-i-open-my-browsers-developer-tools/

    TypeError: t.style is undefinedapp-3-14-0.js:1:244549

    I don’t think it’s legitimate for you to hide notices put up by other plugins. If people don’t want to see them, they can choose to dismiss them, and then you’re not exposing yourself to the risk of your stuff not working at all.

    If you really feel you must, I suggest you use CSS rather than JavaScript to try to make your stuff visible, e.g. add to the style #metaslider-ui, a display:block !important

    Plugin Contributor kbatdorf

    (@kbat82)

    Hi @tylertork

    I included a mechanism to allow WP notifications through, as well as others that should be there. I modeled this approach after how JetPack does it. Unfortunately many WP plugins are poorly coded and running code on other plugin pages which breaks things sometimes.And often times those notices are not dismissible.

    The MetaSlider admin area will not work without Javascript so if the initial hide/show isn’t working then there’s an underlying issue that needs to be addressed.

    Most likely a conflict with another plugin that shouldn’t be running code on other plugin pages.

    Can you disable other plugins temporarily to identify which one (if any) is causing the error? If we can narrow it down I can install it locally and investigate why it’s breaking.

    I disabled every plugin except yours and still have the same problem. I am using Graphene theme, latest version.

    After reactivating the plugins, I tried installing plain old Twenty Sixteen theme, with all my plugins activated. Your code still fails in the same way.

    Perhaps you could trap errors and display a slightly more useful error message? Or if you would supply a version of the plugin where the JavaScript source code isn’t smushed, I could debug it myself and tell you exactly what’s going wrong. I’m an IT professional and quite used to debugging JavaScript code.

    • This reply was modified 3 months, 2 weeks ago by TylerTork.
    Plugin Contributor kbatdorf

    (@kbat82)

    Hi @tylertork, thanks for following up.

    It will take a couple of steps but I believe I can include the dev version of the js file. I’ll make a note to add that to the release after next.

    What browser are you using? Can you try in a different browser? If this were normal behavior this forum would be full of people experiencing the same issue. That implies it’s very likely something specific to your site or perhaps a browser extension.

    Can you try to switch themes? It could be some code in the theme that is in conflict as well.

    I tried installing plain old Twenty Sixteen theme, with all my plugins deactivated (except yours). Your code still fails in the same way.

    We mainly use Firefox, but I’ve also tried Chrome, and three different people are having the same issue. I have FB Purity and Adblock Plus installed, but the latter is disabled for our own site. I use LastPass extension but others having the same problem do not.

    I agree there must be something special about our site, but it’s apparently not the theme or plugins and I don’t know what it might be.

    If you feel like poking around yourself, I can give you an account.

    Plugin Contributor kbatdorf

    (@kbat82)

    Hi @tylertork

    WordPress forbid us from taking any credentials. I’m not sure, but if you happen to be a pro customer you can use our pro support:

    https://www.metaslider.com/support/

    It’s either a plugin, custom theme, or browser conflict. It could be some rogue code that is coming from the database, but I can’t think of anything off the top of my head that will cause this sort of symptom. Perhaps some html inside a title.

    Could you set up a temporary WP and install everything there except the databse? With a fresh database if the issue doesn’t show up that solves it. Alternatively you can look inside the database to check anything related to ml-slider that could cause an issue.

    • This reply was modified 3 months, 2 weeks ago by kbatdorf. Reason: code wrap ml-slider
    Plugin Contributor kbatdorf

    (@kbat82)

    Hi @tylertork

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

    I couldn’t get it to work, but I decided to use a different plugin that does work, so it’s resolved in that sense.

    Plugin Contributor kbatdorf

    (@kbat82)

    Hi @tylertork

    While I get the humor, honestly I’d rather help get this fixed for you (and anyone else that happens to have the sam issue). I understand everyone is busy but if you’re willing to spend some more time to debug the issue I am happy to work with you on finding a resolution.

    I offered to debug the JavaScript for you if you would send me the un-munged-up version, but you didn’t, and I needed the site working.

    Setting up a new, fresh site as you suggested, doesn’t solve my problem. We already put in a ton of work on the existing site. If we get your plugin working on a new site, yay, but then what? Manually re-create the entire site, including hundreds of timestamped blog entries? Or use a migrator tool to copy it all over, probably including whatever database data are causing the problem, so we just have the same issue on the new site? Seems like a waste of time. And if that did solve it for us, that still does zero to track the cause of the problem to help others who may encounter it.

    Please pay attention to the information I already gave you. You’re still saying it could be the theme or a plugin, after I already told you I switched to Twenty Sixteen theme and deactivated every plugin but yours and still had the problem.

    No doubt your code is breaking based on something in the database, or in the .htaccess, or something else that doesn’t involve a theme or plugin. But to find out exactly what, we need an environment that reproduces the problem, and the ability to debug. I have the environment, but I don’t need your help anymore. If I work on it further, it would just be to help you.

    If you update the plugin to include un-munged JavaScript source, or better error trapping to display more information than “t.style is undefined”, I might then be willing to do more. Please let me know.

    Plugin Contributor kbatdorf

    (@kbat82)

    Hi @tylertork

    Setting it up on a fresh server, then slowing adding in pieces (ex .htaccess, the database, etc) from your site will help isolate the issue without having to manipulate your site too much.

    I compile the script using webpack via Laravel Mix and will look into a way to deliver both the dev build and the production build. It will just take some time to set up.

    I can send you a dev build to mess around with if you contact us through our website (just mention this thread): https://www.metaslider.com/contact/

Viewing 12 replies - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.