Title: Can&#039;t activate
Last modified: August 21, 2016

---

# Can't activate

 *  Resolved [SickSquirrel](https://wordpress.org/support/users/sicksquirrel/)
 * (@sicksquirrel)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/cant-activate-15/)
 * Parse error: syntax error, unexpected T_FUNCTION in /***************************.
   com/wp-content/plugins/wp-hotkeys/lib/admin/admin.php on line 353
 * Uploaded, tried to activate
 * [https://wordpress.org/plugins/wp-hotkeys/](https://wordpress.org/plugins/wp-hotkeys/)

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

 *  Thread Starter [SickSquirrel](https://wordpress.org/support/users/sicksquirrel/)
 * (@sicksquirrel)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/cant-activate-15/#post-4686112)
 * **Plugin could not be activated because it triggered a fatal error.
    
   
    Happened
   on nine sites. Researched but could not find an answer.
 *  Plugin Author [Mickey Kay](https://wordpress.org/support/users/mcguive7/)
 * (@mcguive7)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/cant-activate-15/#post-4686186)
 * Hi SickSquirrel,
 * Apologies for the delay – I was out of town on vacation.
 * Anyhow, I took a look at this and realized the issue arose because my code was
   calling an anonymous function – something that’s okay in PHP 5.3+ but throws 
   a fatal error in previous versions of PHP.
 * I’ve uploaded version 0.9.5 of this plugin, which should fix the issue. Thanks
   for your feedback and patience.
 * All the best,
    Mickey
 *  Thread Starter [SickSquirrel](https://wordpress.org/support/users/sicksquirrel/)
 * (@sicksquirrel)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/cant-activate-15/#post-4686191)
 * Thank you! I’ve been sick and not at my laptop in four days. Tomorrow I should
   be well enough to download then upload to all sites. I’ll test it on one first
   to be sure all errors are gone. I’ll let you know how it goes.
 *  Thread Starter [SickSquirrel](https://wordpress.org/support/users/sicksquirrel/)
 * (@sicksquirrel)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/cant-activate-15/#post-4686223)
 * My host disabled it on all sites. Sites weren’t loading, error logs were filling.
 *  Plugin Author [Mickey Kay](https://wordpress.org/support/users/mcguive7/)
 * (@mcguive7)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/cant-activate-15/#post-4686224)
 * Oh no! This is not good.
 * Any way of seeing those error logs? It’s running fine on all my sites on numerous
   hosts. Are you sure you tried the latest version?
 * Thanks.
 *  Thread Starter [SickSquirrel](https://wordpress.org/support/users/sicksquirrel/)
 * (@sicksquirrel)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/cant-activate-15/#post-4686226)
 * From my host:
    ** The site was not loading because of a problem with one of the
   plugins: _ PHP Parse error: syntax error, unexpected T\_FUNCTION in /mnt/glusterfs/
   apache/hosting-dir/118568997/user\_dir/domain.com/wp-content/plugins/wp-hotkeys/
   lib/admin/admin.php on line 353_
 * I renamed the plugin folder to something else and the site is loading ok
 * I then checked other sites and none would load until I renamed the plugin.
 * **Version 0.9.6 | By MIGHTYminnow** |
 * I believe that is the latest version. Hope this helps
 *  Plugin Author [Mickey Kay](https://wordpress.org/support/users/mcguive7/)
 * (@mcguive7)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/cant-activate-15/#post-4686232)
 * Aha, I see the problem. Thanks a ton for your help. Bottom line: version 0.9.7,
   which I’ve just added, should solve this for you.
 * The issue was arising because of an “anonymous function call,” which isn’t allowed
   in older versions of PHP. I’ve replaced this function call with a more backwards-
   compatible method, so things should work for you now. You may want to speak with
   your host about upgrading your PHP version as well, as there are a lot of benefits
   to newer versions.
 * Thanks so much for your help and patience on this one, and please do let me know
   if you encounter any further issues.
 * All the best,
    Mickey
 *  Plugin Author [Mickey Kay](https://wordpress.org/support/users/mcguive7/)
 * (@mcguive7)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/cant-activate-15/#post-4686242)
 * Once again, apologies on this one. I think somehow I must have accidentally reverted
   the code, since this issue was resolved in version 0.9.5 and was somehow reintroduced.
   Should all be fixed now though 🙂

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

The topic ‘Can't activate’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-hotkeys_8fdae1.svg)
 * [WP Hotkeys](https://wordpress.org/plugins/wp-hotkeys/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-hotkeys/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-hotkeys/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-hotkeys/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-hotkeys/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [Mickey Kay](https://wordpress.org/support/users/mcguive7/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/cant-activate-15/#post-4686242)
 * Status: resolved