Title: Cannot Activate Plugin
Last modified: November 7, 2019

---

# Cannot Activate Plugin

 *  Resolved [ginaantonini](https://wordpress.org/support/users/ginaantonini/)
 * (@ginaantonini)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/cannot-activate-plugin-58/)
 * I’m not able to activate the HubSpot plugin. This is the message I’m getting:
 * Plugin could not be activated because it triggered a fatal error.
 * Fatal error: Can’t use function return value in write context in /home/kombuchaindy/
   public_html/wp-content/plugins/leadin/admin/class-leadinadmin.php on line 138
 * If I look on line 138 this is what I see…
 * } elseif ( ! empty( get_option( ‘leadin_portalId’ ) ) && isset( $_GET[‘page’])&&‘
   leadin’ === $_GET[‘page’] ) { // phpcs:ignore WordPress.Security.NonceVerification.
   Recommended

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

 *  [alortega](https://wordpress.org/support/users/alortega/)
 * (@alortega)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/cannot-activate-plugin-58/#post-12126453)
 * Hello [@ginaantonini](https://wordpress.org/support/users/ginaantonini/)
 * Thanks for your enquiry. Can you please specify in which version of PHP is your
   WordPress running? This error is caused oh PHP versions older than 5.6.
 * Can you try updating your PHP version?
 * Thanks,
    Alvaro.
 *  [David Ly Khim](https://wordpress.org/support/users/davidlykhim/)
 * (@davidlykhim)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/cannot-activate-plugin-58/#post-12173919)
 * [@ginaantonini](https://wordpress.org/support/users/ginaantonini/) Did you get
   a chance to take a look at this? Let us know if you’re still having trouble.
 *  [David Ly Khim](https://wordpress.org/support/users/davidlykhim/)
 * (@davidlykhim)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/cannot-activate-plugin-58/#post-12418114)
 * Hi [@ginaantonini](https://wordpress.org/support/users/ginaantonini/) I’ll go
   ahead and mark this as resolved as the issue should have been fixed in a previous
   update. But please let me know if you’re still having issues and we can revisit.

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

The topic ‘Cannot Activate Plugin’ is closed to new replies.

 * ![](https://ps.w.org/leadin/assets/icon-256x256.png?rev=3041936)
 * [HubSpot All-In-One Marketing - Forms, Popups, Live Chat](https://wordpress.org/plugins/leadin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/leadin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/leadin/)
 * [Active Topics](https://wordpress.org/support/plugin/leadin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/leadin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/leadin/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [David Ly Khim](https://wordpress.org/support/users/davidlykhim/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/cannot-activate-plugin-58/#post-12418114)
 * Status: resolved