• i got the following error when i tried to activate the plugin.

    Parse error: syntax error, unexpected ‘[‘ in /home/km603co/public_html/wp-content/plugins/jwt-authentication-for-wp-rest-api/public/class-jwt-auth-public.php on line 75

    do you know why? thanks.
    version: latest 1.2.3

Viewing 1 replies (of 1 total)
  • open class-jwt-auth-public.php file and change the

    register_rest_route($this->namespace, ‘token’, [
    ‘methods’ => ‘POST’,
    ‘callback’ => array($this, ‘generate_token’),
    ]);
    to
    register_rest_route($this->namespace, ‘token’, array(
    ‘methods’ => ‘POST’,
    ‘callback’ => array($this, ‘generate_token’),
    ));

Viewing 1 replies (of 1 total)
  • The topic ‘fatal error upon activating plugin’ is closed to new replies.