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

fbmfbm's avatar

updated server from ubuntu 14.04 to 16.04 and php 7.2.24 and pdo return empty result for querry

I'm updated my server from ubuntu 14.04 to 16.06 and php from 5.6 to 7.2.24 and now postgresql pdo querry return empty result for querry !!!!

I'm running the same laravel app localy and all is working in same configuration (php 7.2) . I have updated laravel from 5.5 to 5.8.

exemple :

Config::where('key','=', 'contact_email')->first(); 

return empty result without error on the server but return data localy on php artisan serve command on the same postgres server url....

What about this ???

0 likes
4 replies
jlrdw's avatar

Are you sure you updated laravel (app) prior to running composer update, which updates the framework.

Clear all cache.

fbmfbm's avatar

Yes, cause i use capistrano to deploy my laravel app ( deploy system application) that is run composer dump autoload on each deployement). I have clear all cache and config to ;((

I have tested on tinker on the server, to test the .env file using by the app and i can verify that the database is well defined .

Sinnbeck's avatar

Did you try rewriting config?

php artisan config:cache
fbmfbm's avatar

yes, config:cache, cache:clear , clear-compiled ...tested to.

In tinker if I test the env commande, it give me local, so I think it's the .env file defined. I tested to with the env('DB_HOST') commande to test database hoste and it return the good database host to my app...

Please or to participate in this conversation.