Title: Cannot activate the plugin
Last modified: August 30, 2016

---

# Cannot activate the plugin

 *  Resolved [morokei](https://wordpress.org/support/users/morokei/)
 * (@morokei)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/cannot-activate-the-plugin-7/)
 * Hi,
    When I’m trying to activate the plugin I get this error message:
 *     ```
       Plugin could not be activated because it triggered a fatal error.
       Parse error: syntax error, unexpected '[' in /home/clients/ftp1/domains/*******.com/html/wp-content/plugins/json-ld-for-article/json-ld-article.php on line 23
       ```
   
 * My WP is up to date.
 * [https://wordpress.org/plugins/json-ld-for-article/](https://wordpress.org/plugins/json-ld-for-article/)

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

 *  Plugin Author [Mikko Piippo](https://wordpress.org/support/users/mikko-piippo/)
 * (@mikko-piippo)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/cannot-activate-the-plugin-7/#post-6389451)
 * Hi,
 * Strange – there should be no [ on line 23. Did you install the plugin using WordPress’
   plugin installer or ftp?
 * Mikko
 *  Thread Starter [morokei](https://wordpress.org/support/users/morokei/)
 * (@morokei)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/cannot-activate-the-plugin-7/#post-6389461)
 * Strange indeed. I tried to install it both ways: through WordPress and via FTP.
   I also tried different blogs – same error every time I’m trying to activate it.
   All the blogs are hosted on the same host, so I’m starting to think it might 
   be it. I don’t have any problems with any other plugins, though.
 *  Plugin Author [Mikko Piippo](https://wordpress.org/support/users/mikko-piippo/)
 * (@mikko-piippo)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/cannot-activate-the-plugin-7/#post-6389472)
 * It could indeed have something to do with your webhost.
 * I just uninstalled the plugin from a couple of my sites and reinstalled it from
   the repository with no problems.
 * Do you know which version of php your hosting service uses?
 *  Plugin Author [Mikko Piippo](https://wordpress.org/support/users/mikko-piippo/)
 * (@mikko-piippo)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/cannot-activate-the-plugin-7/#post-6389473)
 * Oh yes: and what other plugins you are using currently? I could try to replicate
   the issue myself.
 *  Thread Starter [morokei](https://wordpress.org/support/users/morokei/)
 * (@morokei)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/cannot-activate-the-plugin-7/#post-6389492)
 * I don’t think other plugins can be the cause, since one of the blogs don’t have
   any installed, but the issue still appears.
 * I just asked my webhost and they said they use php 5.2 on my server.
 *  Plugin Author [Mikko Piippo](https://wordpress.org/support/users/mikko-piippo/)
 * (@mikko-piippo)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/cannot-activate-the-plugin-7/#post-6389530)
 * Ok, the php version is actually the problem: some of the code in the script functions
   only with php 5.4 and later versions. If this is a common issue, we must think
   about a workaround.
 * Thank you very much for your input – this is our first published plugin and we
   are still learning 🙂
 * Greetings,
 * Mikko
 *  Thread Starter [morokei](https://wordpress.org/support/users/morokei/)
 * (@morokei)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/cannot-activate-the-plugin-7/#post-6389536)
 * Glad you found the problem. 5.2 is pretty old, I guess. I should ask my webhost
   if they can update it.

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/json-ld-for-article_c2c2c2.svg)
 * [JSON-LD for Article](https://wordpress.org/plugins/json-ld-for-article/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-ld-for-article/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-ld-for-article/)
 * [Active Topics](https://wordpress.org/support/plugin/json-ld-for-article/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-ld-for-article/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-ld-for-article/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [morokei](https://wordpress.org/support/users/morokei/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/cannot-activate-the-plugin-7/#post-6389536)
 * Status: resolved