Viewing 8 replies - 1 through 8 (of 8 total)
  • Got the same one as well…

    Me too. It can be installed, if you have WordPress on Windows Server, but it can’t be activated, if you have it on Apache. Any idea?

    Parse error: syntax error, unexpected ‘[‘ in /home/legaltec/domains/legaltech.kiev.ua/public_html/wp-content/plugins/cronjob-scheduler/cronjob-scheduler.php on line 295

    I think it’s better to use wp_schedule_event();
    https://www.paulund.co.uk/create-cron-jobs-in-wordpress

    thomasvgeel

    (@thomasvgeel)

    I’ve got the same error on activating the plugin… anyone found any answers on this one?

    Thanks.

    Hi everyone

    In order to solve the follow these steps:
    1) Open file your-plugin-directory/cronjob-scheduler/cronjob-scheduler.php
    2) Remove line number 295 i.e.

    $uniqid = array_keys($_POST['delete'])[0];

    and paste following code

    $uniqid = array_keys($_POST['delete']);
                if(isset($uniqid) && is_array($uniqid)){
                  $uniqid = $uniqid[0];
                }

    Remove line number 328 i.e.

    $uniqid = array_keys($params)[0];

    and paste following code

    $uniqid = array_keys($params);
                if(isset($uniqid) && is_array($uniqid)){
                  $uniqid = $uniqid[0];
                }

    I hope it will help you guys.
    Thanks

    I’ve just applied your suggested patches on a 4.1 wordpress. And yes, now the plugin can be activated.

    Yes work for me!

    Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Error when activating Cronjob Scheduler’ is closed to new replies.