Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

elo's avatar
Level 3

API call FatalErrorException

Hi guys, I deployed an API service built with Lumen 5.4 on shared hosting. When i try to test the API routes, i get this error

(1/1) FatalErrorException
Illuminate\Support\ServiceProvider::mergeConfigFrom(): Failed opening required '' (include_path='.:/opt/cpanel/ea-php56/root/usr/share/pear')

in ServiceProvider.php (line 59)

at Application->handleShutdown()
in RegistersExceptionHandlers.php (line 54)

at Application->Laravel\Lumen\Concerns\{closure}()

but test on my development system with Postman was successful. I have no idea what the problem and need help fixing this error.

0 likes
4 replies
meeshka's avatar

Did you install composer packages as part of deployment?

elo's avatar
Level 3

@meeshka yes I installed OAuth. I quickly created a new project and left out OAuth, deployed it again and API routes are working properly. For situations where I install a composer package, how do I stop my project from throwing errors like this?

meeshka's avatar

You project required OAuth and it was not available, so it failed? That means composer.json doesn't have that package listed and hence it was not installed. So, composer require the OAuth package.

elo's avatar
Level 3

@meeshka Thanks for breaking it down. I will install the package and test again.

1 like

Please or to participate in this conversation.