Title: Error while activating the plugin
Last modified: February 1, 2019

---

# Error while activating the plugin

 *  Resolved [paxol](https://wordpress.org/support/users/paxol/)
 * (@paxol)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/error-while-activating-the-plugin-5/)
 * When I activate the latest version of Events Manager I get this error:
    Fatal
   error: Cannot use object of type WP_Error as array in /var/www/vhosts/420hempfest.
   com/httpdocs/wp-content/plugins/wpml-translation-management/inc/actions/wpml-
   tm-post-actions.class.php on line 192
 * I’m on the latest version of WPML.
    WP Version: 5.0.3 PHP Version: 5.6.40
 * Also tried with PHP 7, same error:
    Fatal error: Uncaught Error: Cannot use object
   of type WP_Error as array in /var/www/vhosts/420hempfest.com/httpdocs/wp-content/
   plugins/wpml-translation-management/inc/actions/wpml-tm-post-actions.class.php:
   192 Stack trace: #0 /var/www/vhosts/420hempfest.com/httpdocs/wp-content/plugins/
   wpml-translation-management/inc/actions/wpml-tm-post-actions.class.php(50): WPML_TM_Post_Actions-
   >save_translation_priority(4421) #1 /var/www/vhosts/420hempfest.com/httpdocs/
   wp-content/plugins/wpml-translation-management/inc/wpml-private-actions.php(65):
   WPML_TM_Post_Actions->save_post_actions(4421, Object(WP_Post), false) #2 /var/
   www/vhosts/420hempfest.com/httpdocs/wp-includes/class-wp-hook.php(286): wpml_tm_save_post(
   4421, Object(WP_Post), false) #3 /var/www/vhosts/420hempfest.com/httpdocs/wp-
   includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #4 /var/
   www/vhosts/420hempfest.com/httpdocs/wp-includes/plugin.php(453): WP_Hook->do_action(
   Array) #5 /var/www/vhosts/420hempfest.com/httpdocs/wp-content/plugins/sitepress-
   multiling in /var/www/vhosts/420hempfest.com/httpdocs/wp-content/plugins/wpml-
   translation-management/inc/actions/wpml-tm-post-actions.class.php on line 192
    -  This topic was modified 7 years, 4 months ago by [paxol](https://wordpress.org/support/users/paxol/).

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

 *  [timrv](https://wordpress.org/support/users/timrv/)
 * (@timrv)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/error-while-activating-the-plugin-5/#post-11158514)
 * Hello,
 * I have noticed that you have already tried on PHP 7, Please stick with PHP 7.
   Can you perhaps disable the plugin called “wpml-translation-management” or can
   you make sure you’re using the latest versions for both plugins? The error that
   is showing is based on that plugin and not from Events Manager.
 *  Thread Starter [paxol](https://wordpress.org/support/users/paxol/)
 * (@paxol)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/error-while-activating-the-plugin-5/#post-11158540)
 * Hello,
 * Tanks for your reply.
    I disabled all wpml plugins, than activated Events Manager
   and after re-activated all wpml plugin and it works. Tanks for your time!

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

The topic ‘Error while activating the plugin’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

## Tags

 * [errors](https://wordpress.org/support/topic-tag/errors/)
 * [installation](https://wordpress.org/support/topic-tag/installation/)

 * 2 replies
 * 2 participants
 * Last reply from: [paxol](https://wordpress.org/support/users/paxol/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/error-while-activating-the-plugin-5/#post-11158540)
 * Status: resolved