• Resolved Nikodemsky

    (@nikodemsky)


    So everything’s ok if there is only one display rule, but if i’ll add more, then plugin gives an error:

    Uncaught TypeError: Cannot read property 'data' of undefined
        at s (public-min.js?ver=1.6.0.1:1)
        at Object.show (public-min.js?ver=1.6.0.1:1)
        at eval (eval at <anonymous> (scripts.js?ver=4.6:150), <anonymous>:1:5)
        at String.<anonymous> (scripts.js?ver=4.6:150)
        at Function.each (jquery.js?ver=1.12.4:2)
        at Object.$.wpcf7AjaxSuccess (scripts.js?ver=4.6:150)
        at Object.t.success (jquery.form.min.js?ver=3.51.0-2014.06.20:11)
        at i (jquery.js?ver=1.12.4:2)
        at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
        at y (jquery.js?ver=1.12.4:4)

    – im using popup along with CF7.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Damian

    (@timersys)

    That shouldn’t be related. Could you share the url where the problem occurs and enabled debug mode so I can check?

    Regards

    Thread Starter Nikodemsky

    (@nikodemsky)

    I think somehow it was mistake from my side or it’s by-design bug.

    What i did – i have set two rules
    Page nr 1 AND Page nr 2.
    I thought, that it will work on either of those pages, instead i’ve had an error. Later i assumed it’s extra restriction for first rule, but i think it’s because plugin was expecting to those two rules on one page, which is impossible(one page cannot be “two pages at once”).

    Yes, now i know, that i should set OR, not AND.

    But still, isn’t some kind of flaw-by-design?

    • This reply was modified 9 years, 4 months ago by Nikodemsky.
    Plugin Author Damian

    (@timersys)

    Still don’t make sense to me, as the display rules are just php and you are getting a javascript error.
    But Im glad you resolved the issue
    Regards

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

The topic ‘Additional Display rules gives an error’ is closed to new replies.