Undefined Constant "Yajra\Pdo\OCI_DEFAULT"
yasar-salim opened this issue · comments
i am getting Undefined Constant "Yajra\Pdo\OCI_DEFAULT" error when calling model from controller but its working fine from scheduler command after server restart.
System details
- Operating System: ubuntu 22.02
- PHP Version: 8.1.2
- Laravel Version: 10.12
- Laravel-OCI8 Version: 10
Same problem here, haven't tried to use it outside controller.
System details
Operating System: Debian 11
PHP Version: 8.2.0
Laravel Version: 10
Laravel-OCI8 Version: 10
This is a common issue and it all boils down to an OCI8 extension installation/setup error. The solution varies depending on OS and versions.
Some items to check:
- LD library path
- ORACLE_HOME path
- Try
ldconfig
- 2 php.ini for fpm & cli, make oci8.so is enabled on both config
I have the same issue, I installed yajra and run DB by locally , but have the issue, someone have a solution?
Thanks
Hello. I had the same problem and I solved it by installing this lib:
apt-get install -y libaio1
This issue is stale because it has been open for 30 days with no activity.
reinstalled the oci and it worked