Title: Fatal error in activating plugin
Last modified: August 30, 2016

---

# Fatal error in activating plugin

 *  Resolved [kerepes.andras](https://wordpress.org/support/users/kerepesandras/)
 * (@kerepesandras)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-in-activating-plugin-1/)
 * Hi,
 * I installed the plugin succesfully, but the activation failed with this error:
   
   Plugin could not be activated because it triggered a fatal error. Parse error:
   syntax error, unexpected ‘[‘ in /home/…/wp-content/plugins/switch-video-quality/
   switch_video_quality.php on line 298
 * [https://wordpress.org/plugins/switch-video-quality/](https://wordpress.org/plugins/switch-video-quality/)

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

 *  Plugin Author [team-ok](https://wordpress.org/support/users/team-ok/)
 * (@team-ok)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-in-activating-plugin-1/#post-6513736)
 * Hi,
 * sorry for my late reply. My son was born a few days ago and I’ve been quite busy
   with beeing happy and looking at him 😉
 * I couldn’t reproduce your error. Can you check the version of php your server
   is running? It has to be 5.4 and above (since March 2012) to support the square
   bracket notation for arrays that is used on line 298.
    Maybe you can ask your
   server administrator to update?
 *  Thread Starter [kerepes.andras](https://wordpress.org/support/users/kerepesandras/)
 * (@kerepesandras)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-in-activating-plugin-1/#post-6513767)
 * Hi,
 * Thank you for your reply.
    Our PHP version is 5.3.20, this is the problem. I 
   am in a shared host, so the administrator unfortunately do not will update the
   php version. If there is possible to change the code for older php versions, 
   the plugin will have more compatibility.
 *  Plugin Author [team-ok](https://wordpress.org/support/users/team-ok/)
 * (@team-ok)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-in-activating-plugin-1/#post-6513768)
 * I changed the square bracket notation to the old array() style.
    Tested with 
   php version 5.3.8 and it works.

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

The topic ‘Fatal error in activating plugin’ is closed to new replies.

 * ![](https://ps.w.org/switch-video-quality/assets/icon-128x128.png?rev=1233901)
 * [Switch Video Quality](https://wordpress.org/plugins/switch-video-quality/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/switch-video-quality/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/switch-video-quality/)
 * [Active Topics](https://wordpress.org/support/plugin/switch-video-quality/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/switch-video-quality/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/switch-video-quality/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [team-ok](https://wordpress.org/support/users/team-ok/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-in-activating-plugin-1/#post-6513768)
 * Status: resolved