• Resolved Spires Web Tech

    (@guitarman2uk)


    Hi,
    Have just installed the plugin, but every time I try to add a restriction I just get redirected to the WP settings page?

    Any thoughts as I think your plugin will do what I need.

    Thanks

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Code Atlantic

    (@codeatlantic)

    @guitarman2uk – Can you check your browser console for JavaScript errors (press f12 then go to the console tab, refresh and try again).

    If the page loads erasing the console, you can check the “Preserve” box there as well.

    Let me know.

    link126

    (@link126)

    Hi,

    I’ve the same problem.
    Here is the javascript error :
    Uncaught SyntaxError: expected expression, got ‘,’
    in file ‘/wp-admin/options-general.php?page=jp-cc-settings&tab=restrictions’
    the corresponding line is ‘jp_cc_conditions = ,’ (problem with variable initialisation)

    It seems that there is a javascript syntax error when there is no restriction defined (here in a first install of the plugin).

    Regards, link.

    dubtism

    (@dubtism)

    Same for me: cant edit restrictions, new or existing.

    Uncaught TypeError: i.serializeObject().jp_cc_settings is undefined
    edit https://test.com/wp-content/plugins/content-control/assets/scripts/settings-page.min.js?ver=1.1.4:4
    <anonymous> https://test.com/wp-content/plugins/content-control/assets/scripts/settings-page.min.js?ver=1.1.4:4

    DerHerrMeier

    (@derherrmeier)

    Same here. ‘Add a restriction’-button does nothing. Console:

    Uncaught ReferenceError: jp_cc_restriction_fields is not defined
        renderForm https://xxx/wp-content/plugins/content-control/assets/scripts/settings-page.min.js?ver=1.1.4:4
        add https://xxx/wp-content/plugins/content-control/assets/scripts/settings-page.min.js?ver=1.1.4:4
        <anonymous> https://xxx/wp-content/plugins/content-control/assets/scripts/settings-page.min.js?ver=1.1.4:4
        jQuery 2
    settings-page.min.js:4:8020
    
    Naomi

    (@livingcminca)

    I have this same problem.

    I have the same problem still no solution?
    every time I try to add a restriction I just get redirected to the WP settings page?

    I have the same Here, any solution?

    Plugin Author Daniel Iser

    (@danieliser)

    In pretty much all of these cases this is likely the result of a 3rd party conflict that may be different on each of your sites.

    You will need to try using the Health Check plugin’s troubleshooting mode to figure out which plugins are causing issues.

    I say that because the only way the variable in question is not defined is if there was either a fatal PHP error before or during the printing of those variables (they do exist in our code base), or a JS error which is breaking things before our code gets to run.

    Check your logs and try the Troubleshooting mode. Let us know.

    Plugin Author Daniel Iser

    (@danieliser)

    This guide might help if there is a JS error: https://docs.wppopupmaker.com/article/373-checking-javascript-errors

    This one has guidance for testing 3rd party conflicts: https://docs.wppopupmaker.com/article/332-test-whether-a-plugin-or-theme-interferes-with-popup-maker

    • This reply was modified 3 years, 9 months ago by Daniel Iser.

    I just installed the plugin, and I had the same problem, but I found that it only works if WordPress is in English.

    Plugin Author Daniel Iser

    (@danieliser)

    @delmed – Can you clarify what language was used? Was it UTF-8 compatible or something like Mandarin/Chinese character based? JSON has issues with non utf8 code and I’m wondering if that is what your describing. There may be some ways we can try to re-encode it to JSON if so.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Can’t add Restriction’ is closed to new replies.