Title: fatal error upon activating plugin
Last modified: December 30, 2016

---

# fatal error upon activating plugin

 *  [shadow_boi](https://wordpress.org/support/users/shadow_boi/)
 * (@shadow_boi)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-upon-activating-plugin/)
 * 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)

 *  [alexdiesel](https://wordpress.org/support/users/alexdiesel/)
 * (@alexdiesel)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-upon-activating-plugin/#post-8622885)
 * 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.

 * ![](https://ps.w.org/jwt-authentication-for-wp-rest-api/assets/icon-256x256.jpg?
   rev=3372068)
 * [JWT Authentication for WP REST API](https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jwt-authentication-for-wp-rest-api/)
 * [Active Topics](https://wordpress.org/support/plugin/jwt-authentication-for-wp-rest-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jwt-authentication-for-wp-rest-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jwt-authentication-for-wp-rest-api/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [alexdiesel](https://wordpress.org/support/users/alexdiesel/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-upon-activating-plugin/#post-8622885)
 * Status: not resolved