Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #503525

    The other day my site’s widget editing interface was “locked” so I couldn’t open/move/edit widgets, and my widgets disappeared from the front end. I’m not equipped to troubleshoot/fix such problems, so I paid a web site fixer shop called Fantasktic to fix it for me.

    Their initial assessment:
    “So far we see the issue is about javascript in the backend, it happens almost randomly as at first we were able to manage widgets, but on later tests we couldn’t do so again. We’ll be trying to determine in which of the many js files involved is the issue, it’s not quick to trace as wordpress merges all the js files into a single request.”

    They eventually fixed the problem and reported this as the solution:
    “The fix is about disabling the JS script called “svg_painter”, it’s causing a conflict in your current theme+plugins combination. Disabling it from the theme’s functions file solves the problem.”

    Heard of such a thing before? Thoughts? If fixing the problem required removing that from the functions file, what’ll happen when I update the theme? I’m using a child theme, but the problematic code in the updated version of the main theme would still carry over from the updated theme right? Potentially re-introducing the problem.

    Appreciate any advice.

    #503574

    Hi JeeBar!

    I’m not familiar with any “svg_painter” script we are using in Enfold. Is that a plugin your using?

    Cheers!
    Elliott

    #503585

    Ah, perhaps I misinterpreted what they meant by “disabling it from the theme’s functions file.”
    I thought that’s where it lived and they were commenting it out.
    Maybe it’s somewhere else, part of a plugin, and it gets commented out in the functions.php.
    I’ll see if they can tell me which plugin it comes from, then find an alternative to that.

    #503710

    Hi!

    alright, let us know if you still need help with this issue. We will let this thread open for you.

    Regards,
    Andy

    #505198

    They did their thing in the functions.php of my Child Theme, so I’m not worried about updates to core Enfold squirreling it up.

    Here’s what they did. Figure might as well post the solution in case somebody else runs into same problem.

    function wp_dequeue_svg_painter() {
    wp_dequeue_script( ‘svg-painter’ );
    }
    add_action( ‘wp_print_scripts’, ‘wp_dequeue_svg_painter’, 999 );

    #505335

    Hey JeeBar,

    Thanks for sharing the solution, much appreciated!

    Regards,
    Rikard

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