Title: Syntax Error when activating
Last modified: August 21, 2016

---

# Syntax Error when activating

 *  Resolved [hiegl](https://wordpress.org/support/users/lingtyp/)
 * (@lingtyp)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/syntax-error-when-activating/)
 * Hi, when I try to activate the plugin I get this:
 * Parse error: syntax error, unexpected T_STATIC, expecting T_STRING or T_VARIABLE
   or ‘$’ in /…/wp-content/plugins/subtitles/public/class-subtitles.php on line 
   150
 * Any idea?
    Thanks in advance!
 * [https://wordpress.org/plugins/subtitles/](https://wordpress.org/plugins/subtitles/)

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

 *  Plugin Author [Philip Arthur Moore](https://wordpress.org/support/users/philiparthurmoore/)
 * (@philiparthurmoore)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/syntax-error-when-activating/#post-5010621)
 * Hi lingtyp. This is certainly a weird one. How have you gone about installing
   Subtitles? Are you seeing this error after manually uploading the .zip file for
   the plugin or when you download it directly from WordPress.org and attempt to
   activate it? I’m unable to reproduce this error so any additional information
   you can give me about this would be great.
 *  Plugin Author [Philip Arthur Moore](https://wordpress.org/support/users/philiparthurmoore/)
 * (@philiparthurmoore)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/syntax-error-when-activating/#post-5010622)
 * Also, can you give me more information about which version of WordPress and PHP
   you’re using?
 *  Thread Starter [hiegl](https://wordpress.org/support/users/lingtyp/)
 * (@lingtyp)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/syntax-error-when-activating/#post-5010623)
 * I installed directly via wordpress.org from the backend of my WP. Tried it several
   times now and always get this error. WP is 3.9.1 and PHP is 5.3.x, unable to 
   look for the exact version right now.
 * I tested it on another WP on the same server right now and it was successfull.
   So it must have to do with something in the specific WP.
 *  Plugin Author [Philip Arthur Moore](https://wordpress.org/support/users/philiparthurmoore/)
 * (@philiparthurmoore)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/syntax-error-when-activating/#post-5010625)
 * Hi hiegl. Thank you for the update. This _might_ have something to do with the
   fact that I’m using [late static binding](http://php.net/manual/en/language.oop5.late-static-bindings.php),
   which is only available in 5.3.0 and later. If you are using an older version,
   then this may be failing. Can you please try this again and if things are still
   wonky, open an [issue for me on GitHub](https://github.com/philiparthurmoore/Subtitles/issues/new)
   and I will look into this as soon as possible.
 *  Thread Starter [hiegl](https://wordpress.org/support/users/lingtyp/)
 * (@lingtyp)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/syntax-error-when-activating/#post-5010627)
 * I am already planing an update to PHP 5.4 soon. As the two WP installations (
   the one with the problem and the other one, where it works), I mentioned above,
   are on the same server and this server is on PHP 5.3.x it shouldn’t be a problem
   of PHP I guess.
 *  Plugin Author [Philip Arthur Moore](https://wordpress.org/support/users/philiparthurmoore/)
 * (@philiparthurmoore)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/syntax-error-when-activating/#post-5010628)
 * Hi hiegl. Okay. I’m not sure what else to say other than please do let me know
   if there’s any way that I can assist if you find out more information about potential
   conflicts with your installation and the plugin. I’m going to close this now 
   but please feel free to open another thread on here or GitHub (preferable) if
   you can tell me how to reproduce the error so I can attempt to fix it. Thanks
   so much.
 *  Plugin Author [Philip Arthur Moore](https://wordpress.org/support/users/philiparthurmoore/)
 * (@philiparthurmoore)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/syntax-error-when-activating/#post-5010799)
 * Hi hiegl. Heads up that I’ve just released an update to this that should fix 
   the PHP 5.2.4 issue. Upgrade to v1.0.3 and if things are still breaking, let 
   me know on GitHub. Cheers.

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

The topic ‘Syntax Error when activating’ is closed to new replies.

 * ![](https://ps.w.org/subtitles/assets/icon-256x256.png?rev=1063614)
 * [Subtitles](https://wordpress.org/plugins/subtitles/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/subtitles/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/subtitles/)
 * [Active Topics](https://wordpress.org/support/plugin/subtitles/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/subtitles/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/subtitles/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Philip Arthur Moore](https://wordpress.org/support/users/philiparthurmoore/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/syntax-error-when-activating/#post-5010799)
 * Status: resolved