Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fatal error: Call to undefined function oci_connect() in Wamp

There are similar topics in here but the solutions did not fix my problem.

My OS is Windows 7-64 bit

I use Wampserver 2.5-64 bit

I downloaded instantclient_12_1 64 bit and put it into the D:/ directory

I added the PATH which shows the directory of the instant client.(To the system)

I delete ";" characters in php.ini file(I am using 11g oracle environment)

;extension=php_oci8.dll      ; Use with Oracle 10gR2 Instant Client
extension=php_oci8_11g.dll  ; Use with Oracle 11gR2 Instant Client

I can see OCI definitions when I look at the phpinfo() in localhost

I restarted the pc after I made changes

I restarted the wampserver after I made changes

I tried many ways and advices to come up with the problem but they did not fix the problem

like image 357
Mehmet Akif Güzey Avatar asked Jan 28 '26 01:01

Mehmet Akif Güzey


1 Answers

At the end of the 3 day, I found my fault. When I describe PATH in the "Environment Variables" menu, I add the "PATH" to "User Variables" part, not to "System Variables" part. The error was that simple and it costs me 3 day, pay attention!

like image 140
Mehmet Akif Güzey Avatar answered Jan 30 '26 15:01

Mehmet Akif Güzey



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!