• Resolved stuffmc

    (@stuffmc)


    Plugin cannot be activated because:

    Parse error: syntax error, unexpected ‘[‘ in /mnt/web124/e1/47/51449547/htdocs/wp-content/plugins/content-protector/src/sessions/DatabaseHandler.php on line 120

    This is 3.1.3

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hey @stuffmc,

    thanks for your input.
    User like you help me to improve the plugin and fix all upcoming errors in Passster.

    Many thanks for that!

    I released version 3.1.4 a minute ago. Please upgrade, this should fix your problem.

    Best regards,
    Patrick

    Thread Starter stuffmc

    (@stuffmc)

    Thanks!

    I can upgrade, but the code [content_protector password=“foo“]bar[/content_protector] isn’t working anymore — or was it not the one from your plugin?! 🙂

    Hey @stuffmc,

    sure! You can use the old one: content_protector or the new one: passster.

    The part with the password is still the same.

    Okay, so let’s go step by step:

    1) Try to use the new shortcode instead of the old: [passster password="foo"]bar[/passster]

    2) Go to Settings->Passster and “Save settings” in the first tab called “Shortcode”

    3) Come back and tell me whats going on 🙂

    Best regards,
    Patrick

    Thread Starter stuffmc

    (@stuffmc)

    Did 1) — doesn’t change the fact that the shortcode is displayed on the website.

    Where is “Settings->Passtter”, can you put a screenshot of where it is?

    Hey @stuffmc,

    sure. Follow the link to see where you can find the settings: https://passster.io/wp-content/uploads/2018/09/passster-find-settings.png

    Best regards,
    Patrick

    Thread Starter stuffmc

    (@stuffmc)

    Thanks. That’s what I was afraid of. There’s no “Passter” in “Settings” for me.

    Any idea why?

    Hey @stuffmc,

    oh! Than must be something really wrong.

    Did you use the current version (3.1.4)?

    Maybe you could add an administrator account for me and send the details to [email protected] so I can have a look at it directly?

    That would be great. This wise you don’t have to debug all the things with me 🙂

    Best regards,
    Patrick

    Thread Starter stuffmc

    (@stuffmc)

    Folks — to sum up (and close this thread), Patrick was VERY helpful and discovered my hoster was still running PHP 5.3.

    I upgraded to 5.6 and will soon upgrade to 7.0 when I have the feedback that everything works fine in 5.6.

    Dunno if it’s clear enough somewhere that this plugin should only work in 5.6 — I totally understand it makes no sense to support 5.3!

    This plugin is awesome and I can only recommend it!

    I still have the same issue, I have the latest Version 3.1.5, “syntax error, unexpected ‘[‘ in /home5/rosannal/ttmsimson.rosannalopes.com/wp/wp-content/plugins/content-protector/src/sessions/DatabaseHandler.php on line 120”

    Hey @rlopes123,

    thanks for your report.
    Can you tell me which PHP version do you use?

    Best regards,
    Patrick

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

The topic ‘Syntax error in DatabaseHandler.php on line 120’ is closed to new replies.