• Barton

    (@thebarton)


    I got this in my logs also:

    PHP Parse error: syntax error, unexpected ‘Jwt_Auth_Loader’ (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in /wp-content/plugins/jwt-authentication-for-wp-rest-api/includes/class-jwt-auth.php on line 35

Viewing 3 replies - 1 through 3 (of 3 total)
  • jamesmarquez

    (@jamesmarquez)

    @thebarton is your PHP version 7.3 or below? I’m having the same error with that version but I don’t have that issue in 7.4 and 8

    Thread Starter Barton

    (@thebarton)

    For this website it’s: PHP 7.4.32 (Supports 64bit values)

    And the plugin version is 1.3.2

    We’re experiencing the same issue with PHP 7.4.

    The reason might be that the require statement is processed to late.

    As a solution the plugin may load the Composer autoloader int “jwt-auth.php” and also use it for its own classes. That would completely remove the need for the require statements.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Parse Error Jwt_Auth_Loader’ is closed to new replies.