Support » Plugin: Task Manager » Error when activating plugin

  • 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 6 months, 4 weeks ago by  lhamide00.
    • This topic was modified 6 months, 4 weeks ago by  lhamide00.
Viewing 1 replies (of 1 total)
  • 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.