# Tuupola JWT Auth giving error on shared hosting

**URL:** <https://discourse.slimframework.com/t/tuupola-jwt-auth-giving-error-on-shared-hosting/2593>\
**Category:** Questions\
**Created:** [August 18, 2018, 7:20am UTC](https://discourse.slimframework.com/t/tuupola-jwt-auth-giving-error-on-shared-hosting/2593 "2018-08-18T07:20:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![derrickkorku](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@derrickkorku](https://discourse.slimframework.com/u/derrickkorku)\
**Post date:** [August 18, 2018, 7:20am UTC](https://discourse.slimframework.com/t/tuupola-jwt-auth-giving-error-on-shared-hosting/2593/1 "2018-08-18T07:20:50Z")

</div>

Error details as follows:

# Slim Application Error

The application could not run because of the following error:

## Details

**Type:** ParseError

**Message:** syntax error, unexpected ‘|’, expecting variable (T\_VARIABLE)

**File:** /home/peter10/affiliateuni/vendor/tuupola/slim-jwt-auth/src/JwtAuthentication.php

**Line:** 126

## Trace

#0 /home/peter10/affiliateuni/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile(’/home/peter10/a…’) #1 [internal function]: Composer\Autoload\ClassLoader-\>loadClass(‘Tuupola\Middlew…’) #2 /home/peter10/affiliateuni/app/middleware.php(26): spl\_autoload\_call(‘Tuupola\Middlew…’) #3 /home/peter10/affiliateuni/vendor/pimple/pimple/src/Pimple/Container.php(118): {closure}(Object(Slim\Container)) #4 /home/peter10/affiliateuni/vendor/slim/slim/Slim/Container.php(123): Pimple\Container-\>offsetGet(‘JwtAuthenticati…’) #5 /home/peter10/affiliateuni/vendor/slim/slim/Slim/CallableResolver.php(86): Slim\Container-\>get(‘JwtAuthenticati…’) #6 /home/peter10/affiliateuni/vendor/slim/slim/Slim/CallableResolver.php(67): Slim\CallableResolver-\>resolveCallable(‘JwtAuthenticati…’) #7 /home/peter10/affiliateuni/vendor/slim/slim/Slim/CallableResolverAwareTrait.php(45): Slim\CallableResolver-\>resolve(‘JwtAuthenticati…’) #8 /home/peter10/affiliateuni/vendor/slim/slim/Slim/DeferredCallable.php(36): Slim\DeferredCallable-\>resolveCallable(‘JwtAuthenticati…’) #9 [internal function]: Slim\DeferredCallable-\>\_\_invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\App)) #10 /home/peter10/affiliateuni/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call\_user\_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\App)) #11 /home/peter10/affiliateuni/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App-\>Slim{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response)) #12 /home/peter10/affiliateuni/vendor/slim/slim/Slim/App.php(406): Slim\App-\>callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response)) #13 /home/peter10/affiliateuni/vendor/slim/slim/Slim/App.php(314): Slim\App-\>process(Object(Slim\Http\Request), Object(Slim\Http\Response)) #14 /home/peter10/affiliateuni/index.php(23): Slim\App-\>run() #15 {main}

---

<div class="post-metadata">

**Author:** ![tflight](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/tflight/32/1205_2.png) [@tflight](https://discourse.slimframework.com/u/tflight)\
**Post date:** [August 18, 2018, 1:42pm UTC](https://discourse.slimframework.com/t/tuupola-jwt-auth-giving-error-on-shared-hosting/2593/2 "2018-08-18T13:42:00Z")

</div>

What version of PHP are you running?

---

<div class="post-metadata">

**Author:** ![derrickkorku](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@derrickkorku](https://discourse.slimframework.com/u/derrickkorku)\
**Post date:** [August 18, 2018, 6:48pm UTC](https://discourse.slimframework.com/t/tuupola-jwt-auth-giving-error-on-shared-hosting/2593/3 "2018-08-18T18:48:26Z")

</div>

I am running php v7.0

---

<div class="post-metadata">

**Author:** ![tflight](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/tflight/32/1205_2.png) [@tflight](https://discourse.slimframework.com/u/tflight)\
**Post date:** [August 18, 2018, 6:51pm UTC](https://discourse.slimframework.com/t/tuupola-jwt-auth-giving-error-on-shared-hosting/2593/4 "2018-08-18T18:51:11Z")

</div>

Which version of slim-jwt-auth are you running? Which version of PHP did you run the composer install from? I suspect you might be running a version of slim-jwt-auth which requires a higher version of PHP than your host is running.

---

<div class="post-metadata">

**Author:** ![derrickkorku](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@derrickkorku](https://discourse.slimframework.com/u/derrickkorku)\
**Post date:** [August 19, 2018, 2:41pm UTC](https://discourse.slimframework.com/t/tuupola-jwt-auth-giving-error-on-shared-hosting/2593/5 "2018-08-19T14:41:25Z")

</div>

The problem is coming from running higher version of slim-jwt-auth (7.1). Thanks for the help, sir
