Call to undefined function App\Http\Controllers\curl_init()
Hi guys!
I have just deployed my Laravel app to aws ubuntu 18, php7.3, apache2, MySQL8, cURL 7.58.0 and don´t know why it is not working. The error is on this post title.
It works just fine at my dev mac.
I have done everything I found on Google and nothing seems to resolve this issue.
Any helps, please?
Thanks, @thureos , It is working now. I realized that I was PHP 7.2 and PHP 7.3 installed at the same time. So I uninstalled both and reinstalled only 7.3
It works perfectly on my dev computer. Can´t be syntax error...
That doesn't mean anything though, unless your php version is exactly the same on both dev and production and using the exact same php.ini in both places, and using the same OS/version in both places. Are they? Individual commands can be disabled via php.ini, so you can't just make an assumption like that unless environments are identical.
All right. Now it is working. I realised that my server had PHP 7.2 and 7.3 at same time. Uninstall both and reinstalled 7.3.
Now is working like a breeze!
Thank You all!