Title: Error &#8211; Cannot activate the plugin
Last modified: August 21, 2016

---

# Error – Cannot activate the plugin

 *  Resolved [webi](https://wordpress.org/support/users/webi/)
 * (@webi)
 * [12 years ago](https://wordpress.org/support/topic/error-cannot-activate-the-plugin/)
 * Hi,
 * After activation the plugin the following message appears:
 * > Plugin could not be activated because it triggered a fatal error.
   > Parse error: syntax error, unexpected ‘[‘ in /home/webimpr/public_html/wp-content/
   > plugins/wp-songbook/inc/wpsongs-contenthooks.php on line 36
 * [https://wordpress.org/plugins/wp-songbook/](https://wordpress.org/plugins/wp-songbook/)

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

 *  Plugin Author [sjiamnocna](https://wordpress.org/support/users/sjiamnocna/)
 * (@sjiamnocna)
 * [12 years ago](https://wordpress.org/support/topic/error-cannot-activate-the-plugin/#post-4956143)
 * Its a pitty… On testing page, it works well.
    Try to replace line 36 with this:
 *     ```
       $postmeta=(is_array(get_post_meta($songid,'songbook_filebox',true)))?get_post_meta($songid,'songbook_filebox',true)[0]:get_post_meta($songid,'songbook_filebox',true);
           $songbook_fileval=(is_array(get_post_meta($songid,'songbook_filebox',true)))?$postmeta:get_post_meta($songid,'songbook_filebox',true);
       ```
   
 * I will try to solve it in next version 🙂
 *  Thread Starter [webi](https://wordpress.org/support/users/webi/)
 * (@webi)
 * [12 years ago](https://wordpress.org/support/topic/error-cannot-activate-the-plugin/#post-4956145)
 * Still the same error…
 *  Plugin Author [sjiamnocna](https://wordpress.org/support/users/sjiamnocna/)
 * (@sjiamnocna)
 * [12 years ago](https://wordpress.org/support/topic/error-cannot-activate-the-plugin/#post-4956146)
 * I’m not sure, if it’s not caused by something different becouse on all my websites
   it works. Try deactivating plugins and then reactivating. Did it start, with 
   new installation, or with updating?
 *  Thread Starter [webi](https://wordpress.org/support/users/webi/)
 * (@webi)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/error-cannot-activate-the-plugin/#post-4956180)
 * Hi,
 * I made a new wordpress installation on 3.9.1 and Installed the plugin from wordpress
   installer and then I get the following error when I try to activate it. All other
   plugins are deactivated.
 * `Parse error: syntax error, unexpected '[' in ..../wp-content/plugins/wp-songbook/
   inc/wpsongs-contenthooks.php on line 35`
 *  [rebetoselida](https://wordpress.org/support/users/rebetoselida/)
 * (@rebetoselida)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/error-cannot-activate-the-plugin/#post-4956181)
 * Hi [@sjiamnocna](https://wordpress.org/support/users/sjiamnocna/)
 * still not working.. Please could you try to fix it, it should not be something
   so important..
 * Thanks
 *  Plugin Author [sjiamnocna](https://wordpress.org/support/users/sjiamnocna/)
 * (@sjiamnocna)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/error-cannot-activate-the-plugin/#post-4956182)
 * What PHP version are you running? Who do you have your webpages hosted by? I 
   dont get any error, on any my test pages. Maybe I can test it and try to solve,
   but I know nothing about it. I have to test this plugin with your PHP version,
   and try to solve it 🙂
 *  Thread Starter [webi](https://wordpress.org/support/users/webi/)
 * (@webi)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/error-cannot-activate-the-plugin/#post-4956183)
 * Here is the information from my hosting:
 * cPanel Version 11.42.1 (build 21)
    Theme x3 Apache version 2.4.9 PHP version 
   5.3.26 MySQL version 5.5.32-31.0 Architecture x86_64 Operating system linux Perl
   version 5.10.1 Kernel version 2.6.32-431.11.2.el6.x86_64 cPanel Pro 1.0 (RC1)
 * What PHP version do you use?
 *  Plugin Author [sjiamnocna](https://wordpress.org/support/users/sjiamnocna/)
 * (@sjiamnocna)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/error-cannot-activate-the-plugin/#post-4956184)
 * Hi, I have 3 online sites, running WordPress, that I test everytime I’m updating
   files
    PHP 5.4.21 PHP 5.4 PHP 5.5.14 all with MySQL latest
 * Everything works nice there, but maybe It’ll solve with next plugin update, try
   and let me know, if it works 🙂
 *  Thread Starter [webi](https://wordpress.org/support/users/webi/)
 * (@webi)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/error-cannot-activate-the-plugin/#post-4956187)
 * Hi, It works now. Thank you for the last plugin update!
 *  Plugin Author [sjiamnocna](https://wordpress.org/support/users/sjiamnocna/)
 * (@sjiamnocna)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/error-cannot-activate-the-plugin/#post-4956188)
 * Thank you for referring this mistake 😉

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

The topic ‘Error – Cannot activate the plugin’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-songbook.svg)
 * [WP Songbook](https://wordpress.org/plugins/wp-songbook/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-songbook/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-songbook/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-songbook/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-songbook/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-songbook/reviews/)

 * 10 replies
 * 3 participants
 * Last reply from: [sjiamnocna](https://wordpress.org/support/users/sjiamnocna/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/error-cannot-activate-the-plugin/#post-4956188)
 * Status: resolved