Closed luqmanrom closed 8 years ago
Only thing i can think of is that the php_sybase extension is not enabled on your production server
It is enabled I believe. But I fixed it by upgrading the FreeTDS to version 1.0 instead of the old one version 0.91 which is in the repositories of the RedHat
I am using uepg/laravel-sybase package to connect to a remote Sybase database. I had an issue where sometimes the request I made from API call returned a correct result by querying the remote Sybase server but sometimes it is giving me this error.
After I check the
SybaseConnection.php
file, it turned out that it is actually a class extending Illuminate\Database\Connection and the error happened when I thinkgetPDO()
from the Connection class is called and it returns null.It is working perfectly fine on my local, on staging using Ubuntu but not on production using RedHat. Any idea why?