Title: PHP Parse error: syntax error, unexpected &#8216;Jwt_Auth_Loader&#8217;
Last modified: October 16, 2022

---

# PHP Parse error: syntax error, unexpected ‘Jwt_Auth_Loader’

 *  [Erik](https://wordpress.org/support/users/erkdahl/)
 * (@erkdahl)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-jwt_auth_loader/)
 * After upgrading to the latest version of JWT Authentication for WP REST API (
   from 1.3.0 > 1.3.1) my site stopped working with this error:
 * PHP Parse error: syntax error, unexpected ‘Jwt_Auth_Loader’ (T_STRING), expecting
   function (T_FUNCTION) or const (T_CONST) in /var/www/html/wp-content/plugins/
   jwt-authentication-for-wp-rest-api/includes/class-jwt-auth.php on line 35
 * Any idea on how to fix this?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [eduardfuentes](https://wordpress.org/support/users/eduardfuentes/)
 * (@eduardfuentes)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-jwt_auth_loader/#post-16133992)
 * Hola tengo el mismo problema: Parse error: syntax error, unexpected ‘Jwt_Auth_Loader’(
   T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in /home/miigztvw/
   public_html/wp-content/plugins/jwt-authentication-for-wp-rest-api/includes/class-
   jwt-auth.php on line 35
 * No se como solucionarlo, alguien os puede guiar en este problema
 *  [jobfinder](https://wordpress.org/support/users/jobfinder/)
 * (@jobfinder)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-jwt_auth_loader/#post-16389803)
 * Hi there,
 * we get the same error-Message if we use CLI-Commands. 
   Did anyone got a solution
   for this?
 * img = [https://ibb.co/nzFwgZ1](https://ibb.co/nzFwgZ1)
    -  This reply was modified 3 years, 4 months ago by [jobfinder](https://wordpress.org/support/users/jobfinder/).
    -  This reply was modified 3 years, 4 months ago by [jobfinder](https://wordpress.org/support/users/jobfinder/).
    -  This reply was modified 3 years, 4 months ago by [jobfinder](https://wordpress.org/support/users/jobfinder/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP Parse error: syntax error, unexpected ‘Jwt_Auth_Loader’’ 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/)

 * 2 replies
 * 3 participants
 * Last reply from: [jobfinder](https://wordpress.org/support/users/jobfinder/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-jwt_auth_loader/#post-16389803)
 * Status: not resolved