• Resolved ant0nell0

    (@ant0nell0)


    Dear, last update totally broke WPBakery back end editor. As soon as I try to interact with a page throughout WPBakery, the page return a sort of error showing… the page within the editor. Strange behavior, you think? Unfortunately, I can’t see any error within my PHP log. Can you help me?

Viewing 7 replies - 1 through 7 (of 7 total)
  • @ant0nell0,

    We are not sure about the compatibility with WPBakery. Would you mind to share screenshot with us so we can help you out.

    Best Regards,

    Thread Starter ant0nell0

    (@ant0nell0)

    Here is the screenshot

    As you can see, as soon as an edit panel is opened, it shown the whole homepage instead the controls. It’s like the”inception” (the film) hehehe. The issue started since last major update (before everything worked smoothly) and happen when I try to edit a page, with or without a calendar.
    Unfortunately, no errors are shown within the PHP log file and the JavaScript Log, as well.

    Thanks,
    Antonello

    • This reply was modified 4 years, 11 months ago by ant0nell0.
    • This reply was modified 4 years, 11 months ago by ant0nell0.

    I don’t have the same phenomenon than @ant0nell0, but I can confirm there’s a problem with WPBakery. Here’s what’s going wrong:

    WPBakery basically enters admin mode, but on the front-end. It loads wp-admin/post.php and display the contents using javascript.

    In your admin/class-simple-event-planner-admin.php, you’re correctly enqueuing and then localizing '-admin-scripts', but the problem is that you’re overriding a core WordPress variable: ajaxurl.

    The result is this:

    
    <script src='https://www.4motion.lu/wp-content/plugins/simple-event-planner/admin/js/jquery.geocomplete.min.js?ver=1.7.0'></script>
    <script src='https://www.4motion.lu/wp-content/plugins/simple-event-planner/admin/js/jquery.datetimepicker.js?ver=2.5.4'></script>
    <script>
    var ajaxurl = {"url":"https:\/\/www.mysite.com\/wp-admin\/admin-ajax.php"};
    </script>
    <script src='https://www.4motion.lu/wp-content/plugins/simple-event-planner/admin/js/simple-event-planner-admin.js?ver=1.5.1'></script>
    <script src='https://www.4motion.lu/wp-content/plugins/simple-event-planner/admin/js/jquery-ui.min.js?ver=1.10.3'></script>
    

    Now every ajax request will go to URIs like this:

    
    https://www.mysite.com/wp-admin/[object%20Object]?action=wp-compression-test&test=no&_ajax_nonce=f8b7d6026b&1586201927574
    

    You should definitely, if you actually need to do this (?!), rename that variable to something unique to your plug-in. (Why do it, you have that same URL on window.ajaxurl already on every WordPress page (front-end and back-end as far as I’ve seen).

    Thread Starter ant0nell0

    (@ant0nell0)

    Dear all, will last update solve the related issue?
    Thanks,
    Antonello

    Plugin Author PressTigers

    (@presstigers)

    @ant0nell0,

    We have restricted the script to SEP backend pages only. If you were facing the same issue and seems this update will also work for you. Please upgrade and see the changes.

    Let us know if the issue still persists.

    Regards,

    Thread Starter ant0nell0

    (@ant0nell0)

    Yep… this solved the issue for pages and articles (and PCT as well). Unfortunately I use Visual Composer even for SEP pages….and there the glitch is still present. I’m attaching a screenshot: https://ibb.co/g7C15xJ

    Plugin Author PressTigers

    (@presstigers)

    Hello @ant0nell0,

    Sorry for the inconvenience.

    We can’t figure out the issue in the attached screenshot. Please elaborate it a little bit more.

    Regards,

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Last update broke WPBakery integration’ is closed to new replies.