• Hi there,

    Auto open cookie is not working on my site. Popup opens every time I refresh the page.

    Now I know that it happens if you have JS errors on a page, as you mentioned in another post on this forum. But almost any plugin will cause JS errors on a page as they are not perfect, so this is not something we really can control.

    In our case its a Visual Composer plugin, and in future it could be any plugin we install.

    My question is: Is it possible to resolve this issue any other way then resolving JS errors caused by 3th party plugins.

    Also my question would be is there anything else that could cause this, because JS errors I get are a minor ones, ones about some resources not available for the Visual Composer some .gif .png files and so on.

    https://wordpress.org/plugins/popup-maker/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Is it possible to resolve this issue any other way then resolving JS errors caused by 3th party plugins

    No. If a plugin is causing JS errors, then that can potentially stop the processing of other javascript code on the page. The solution would be to not use the plugin causing the errors.

    Thread Starter Mohika

    (@mohika)

    Isn’t it that a JS order of load could influence this. Btw. there is no way I am going to not use Visual composer over this plugin.

    Plugin Author Daniel Iser

    (@danieliser)

    @mohika – Unfortunately Otto is correct, even if we fully sandbox (close our script to outside influence) once a JS error occurs, the browser stops processing all other JS. Order of load can play an effect, but in this case since our scripts load but don’t process until the page is finished loading any error that occurs after our scripts load but before doc.ready this will still break them.

    Visual Composer is well maintained, have you tried reporting the errors they are causing to them to have them patched?

    Plugin Author Daniel Iser

    (@danieliser)

    @mohika – Check and be sure you don’t have Admin Debug checked. That will auto open it reguardless of cookie settings, but only if your logged in as an admin.

    Also a live link would go a long way as I could see the JS errors in question and possibly point you in the right direction.

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

The topic ‘Auto open cookie not working’ is closed to new replies.