• Resolved steponafish

    (@steponafish)


    I’m getting Parse error: syntax error, unexpected ‘[‘, expecting ‘)’ in /home/content/40/10699440/html/wp-content/plugins/timesheet/timesheet.php on line 293

    I took a peek into your code and I didn’t see anything wrong with it. So What can I do now?

    https://wordpress.org/plugins/timesheet/

Viewing 1 replies (of 1 total)
  • Plugin Author bestwebsoft

    (@bestwebsoft)

    Hi,

    We apologize for the inconvenience. Please open file “timesheet.php” and replace the following lines:

    $tmsht_datetime_options = array(
        'locale'         => explode( '_', get_locale() )[0],
        'dayOfWeekStart' => get_option( 'start_of_week' )
    );

    with

    $locale = explode( '_', get_locale() );
    $tmsht_datetime_options = array(
        'locale'         => $locale[0],
        'dayOfWeekStart' => get_option( 'start_of_week' )
    );

    Also, please find the line 1396 and replace <? } else { with <?php } else {.

    Sincerely,
    BestWebSoft Support Team

Viewing 1 replies (of 1 total)
  • The topic ‘Can't activate plugin’ is closed to new replies.