-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
curl_exec() is missing #1998
Comments
@jcvignoli Curl requires networking to work correctly. Could you please try it again with |
@bgrgicak I tried with networking set to yes, and got the following:
The line 105 throws an exception if curl fails. Here is the method that fails, with numbered lines:
This method perfectly works on a server, and the link "https://www.imdb.com/find?s=tt&q=fight+club" is available. |
@jcvignoli because Playground is running in the browser, the URL being requested needs to be CORS enabled for playground.wordpress.net. Could you check the network tab of your browser's developer tools if you can see the request being made there? Edit: There have been efforts to create a CORS proxy but it's not ready yet. |
Looping in @brandonpayton on advancing the CORS proxy and moving it to another domain to enable expanding the support. |
Hi @akirk |
Following the implementation of Curl, I tried to use my plugin with playground.
It seems something is still missing, as I get the error
PHP Fatal error: Uncaught Error: Call to undefined function Imdb\curl_exec() in /wordpress/wp-content/plugins/lumiere-movies/vendor/jcvignoli/imdbphp/src/Imdb/Request.php:99
where line 99 reads as
$this->page = curl_exec($this->ch);
Thanks!
The text was updated successfully, but these errors were encountered: