Title: Syntax error in DatabaseHandler.php on line 120
Last modified: September 25, 2018

---

# Syntax error in DatabaseHandler.php on line 120

 *  Resolved [stuffmc](https://wordpress.org/support/users/stuffmc/)
 * (@stuffmc)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/syntax-error-in-databasehandler-php-on-line-120/)
 * 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)

 *  [patrickposner](https://wordpress.org/support/users/patrickposner/)
 * (@patrickposner)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/syntax-error-in-databasehandler-php-on-line-120/#post-10722758)
 * Hey [@stuffmc](https://wordpress.org/support/users/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](https://wordpress.org/support/users/stuffmc/)
 * (@stuffmc)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/syntax-error-in-databasehandler-php-on-line-120/#post-10723859)
 * 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?! 🙂
 *  [patrickposner](https://wordpress.org/support/users/patrickposner/)
 * (@patrickposner)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/syntax-error-in-databasehandler-php-on-line-120/#post-10726122)
 * Hey [@stuffmc](https://wordpress.org/support/users/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](https://wordpress.org/support/users/stuffmc/)
 * (@stuffmc)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/syntax-error-in-databasehandler-php-on-line-120/#post-10727843)
 * 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?
 *  [patrickposner](https://wordpress.org/support/users/patrickposner/)
 * (@patrickposner)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/syntax-error-in-databasehandler-php-on-line-120/#post-10728005)
 * Hey [@stuffmc](https://wordpress.org/support/users/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](https://passster.io/wp-content/uploads/2018/09/passster-find-settings.png)
 * Best regards,
    Patrick
 *  Thread Starter [stuffmc](https://wordpress.org/support/users/stuffmc/)
 * (@stuffmc)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/syntax-error-in-databasehandler-php-on-line-120/#post-10728026)
 * Thanks. That’s what I was afraid of. There’s no “Passter” in “Settings” for me.
 * Any idea why?
 *  [patrickposner](https://wordpress.org/support/users/patrickposner/)
 * (@patrickposner)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/syntax-error-in-databasehandler-php-on-line-120/#post-10728089)
 * Hey [@stuffmc](https://wordpress.org/support/users/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 [hello@patrickposner.de](https://wordpress.org/support/topic/syntax-error-in-databasehandler-php-on-line-120/hello@patrickposner.de?output_format=md)
   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](https://wordpress.org/support/users/stuffmc/)
 * (@stuffmc)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/syntax-error-in-databasehandler-php-on-line-120/#post-10731792)
 * 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!
 *  [rlopes123](https://wordpress.org/support/users/rlopes123/)
 * (@rlopes123)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/syntax-error-in-databasehandler-php-on-line-120/#post-10838712)
 * 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”
 *  [patrickposner](https://wordpress.org/support/users/patrickposner/)
 * (@patrickposner)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/syntax-error-in-databasehandler-php-on-line-120/#post-10839440)
 * Hey [@rlopes123](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/content-protector/assets/icon-256x256.png?rev=2206760)
 * [Passster - Password Protect Pages and Content](https://wordpress.org/plugins/content-protector/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/content-protector/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/content-protector/)
 * [Active Topics](https://wordpress.org/support/plugin/content-protector/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/content-protector/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/content-protector/reviews/)

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)
 * [db](https://wordpress.org/support/topic-tag/db/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 10 replies
 * 3 participants
 * Last reply from: [patrickposner](https://wordpress.org/support/users/patrickposner/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/syntax-error-in-databasehandler-php-on-line-120/#post-10839440)
 * Status: resolved