Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi, dalia12345.

    Could you copy/paste your shortcode? Just want to make sure that’s not the problem before we go any further.

    I’m having the exact same issue. The shortcode is

    [content_protector password=”12345″ identifier=”passwordprotect” ajax=”true”][/content_protector]

    No matter what I use for password, identifier, or anything else – it doesn’t work as long as ajax is enabled. I noted in the PHP that the error seems to be related to identifier not being set?

    I should probably mention I’m utilizing Divi as well, and my site is https://www.ourkeyswedding.com (The passworded portion is at the bottom, 12345 is the code.)

    Hi, everyone.

    That error message is a bit misleading; my apologies – it’ll be fixed in the next release. If you’re seeing that message, that means the plugin couldn’t find your shortcode in the post content. My guess is that Divi is filtering the post content in such a way that it gets processed on a normal page load, but not when accessing the post content directly.

    My options here are limited due to Divi being a commercial theme, but if you contact me at the aliencyborgDOTca website w/ your site access info (and maybe your access to the ElegantThemes support forums as well, if you have it), I wouldn’t mind looking at it a bit further.

    -K

    Go to ~line 449 and replace

    $regex_pattern = get_shortcode_regex();

    with

    $regex_pattern = "\[(\[?)(" . CONTENT_PROTECTOR_SHORTCODE . ")(?![\w-])([^\]\/]*(?:\/(?!\])[^\]\/]*)*?)(?:(\/)\]|\](?:([^\[]*+(?:\[(?!\/\\2\])[^\[]*+)*+)\[\/\\2\])?)(\]?)";

    The problem appears to be the original regular expression wouldn’t find the Content Protector shortcode if it was enclosed in another shortcode. The above fix has been tested in the standard WP editor and the Divi page builder editor, and will be fixed in the next release.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Ajax Problem’ is closed to new replies.