Support » Plugin: Rate my Post - WP Rating System » Cookies is not defined: Conflict with Divi Builder

  • Resolved suzyweb

    (@suzyweb)


    Hello! I get the following error inside the Divi Builder when I try to edit a post. It makes the builder just hang at the loading screen and I am unable to create or edit any post at all. There is just a blank loading animation. Here is the error in the console during this time:

    Cookies is not defined

    When I deactivate the plugin, everything works normally with Divi Builder, but there is still an error put out by Rate My Post. It is:

    Uncaught TypeError: $rating_stars.raty is not a function from the scripts.js in my Extra theme folder.

    Any ideas how to fix this? I like the plugin and it works well on the frontend, but I’m unable to properly use my backend with it enabled.

    Is it normal that the plugin is not completely removed after deactivation? At least, that is what appears is happening.

    Thanks so much for any help you can offer! I appreciate your time and dedication.

    Have a good day! 🙂

    Suzy

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Blaz K.

    (@blazk)

    Hi @suzyweb,

    Uncaught TypeError: $rating_stars.raty can’t come from Rate my Post plugin because there is no such object in Rate my Post. Cookies is not defined could be from Rate my Post but I’m surprised that the error appears in the administration panel. Rate my Post includes this script only in the frontend. Nevertheless, I don’t have any experience with Divi Builder and since it’s not an open source software I also can’t test the compatibility. After deactivation the plugin and it’s data are completely removed if you select that in the options. I’m sorry I can’t give you a more helpful reply 🙂

    Regards,
    Blaz

    Hello again! 🙂 Thanks for your help! I really appreciate it.

    I had to disable the Extra Theme’s inbuilt rating system to test this plugin. I wonder if this is the cause of the rating_stars.raty error. Oops. 🙂

    I thought it odd too that the plugin interferes with the admin area. Otherwise, everything works wonderfully! Is there a way to exclude the plugin from a certain url path? Maybe we can prevent it from running while Divi is running?

    Divi has a certain url path that is used for their builder: page-name/?et_fb=1&PageSpeed=off

    It will take one smart cookie to figure this one out I think. 🙂

    Thanks for the awesome work. Have a good day!

    Here is a bit more detailed info, just in case it helps anyone:

    Uncaught ReferenceError: Cookies is not defined
    at rmp_can_vote (rate-my-post-public.js:455)
    at HTMLDocument.<anonymous> (rate-my-post-public.js:11)
    at i (jquery.js:2)
    at Object.add [as done] (jquery.js:2)
    at a.fn.init.n.fn.ready (jquery.js:2)
    at rate-my-post-public.js:1

    Update: I installed a plugin manager that would disable this plugin for a url match and it worked!

    Here is their link, for anyone else that runs into issues with this plugin not working with visual builders.

    https://wordpress.org/support/plugin/plugin-organizer/

    Thanks very much! 🙂

    Plugin Author Blaz K.

    (@blazk)

    I’m glad to hear you managed to solve the problem and thanks for sharing the procedure.

    Regards,
    Blaz

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