Title: Error when activating plugin
Last modified: August 22, 2018

---

# Error when activating plugin

 *  [lhamide00](https://wordpress.org/support/users/lhamide00/)
 * (@lhamide00)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/error-when-activating-plugin-35/)
 * Hi guys,
 * When I try to activate task manager plugin, I get this:
 * > Plugin could not be activated because it triggered a fatal error.
   > `Parse error: syntax error, unexpected '(int)' (int) (T_INT_CAST) in /home/
   > thegoodnigeriagu/public_html/wp-content/plugins/task-manager/module/import/
   > action/class-import-action.php on line 38`
 * Is there a solution to this problem?
 * I use WordPress 4.9.8 and PHP 5.6
 * Thanks in advance.
    -  This topic was modified 7 years, 9 months ago by [lhamide00](https://wordpress.org/support/users/lhamide00/).
    -  This topic was modified 7 years, 9 months ago by [lhamide00](https://wordpress.org/support/users/lhamide00/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [Agence web Eoxia – Montpellier](https://wordpress.org/support/users/eoxia/)
 * (@eoxia)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/error-when-activating-plugin-35/#post-10616531)
 * Hi,
 * You have to edit ./modules/import/action/class-import-action.php on line 38 from
 * `$task_id = ! empty( $_POST ) && ! empty( (int) $_POST['id'] ) ? (int) $_POST['
   id'] : 0;`
 * to
 * `$task_id = ! empty( $_POST ) && ! empty( $_POST['id'] ) ? (int) $_POST['id']:
   0;`
 * This bug will be fixed for the next update.
 * Best regards, Eoxia.

Viewing 1 replies (of 1 total)

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

 * ![](https://s.w.org/plugins/geopattern-icon/task-manager_f9f9f9.svg)
 * [Task Manager](https://wordpress.org/plugins/task-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/task-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/task-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/task-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/task-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/task-manager/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Agence web Eoxia – Montpellier](https://wordpress.org/support/users/eoxia/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/error-when-activating-plugin-35/#post-10616531)
 * Status: not resolved