While this isn't a bug in this module per se, the vendor plugin that this module depends on - embed/embed - makes this module entirely unusable for a number of our clients.
We saw the following error:
Embed\Exceptions\EmbedException: The temporary folder "/tmp" is not writable in Embed\RequestResolvers\Curl->resolve() (line 147 of /vendor/embed/embed/src/RequestResolvers/Curl.php).
The embed plugin has the following code:
self::$tmpCookies = str_replace('//', '/', sys_get_temp_dir().'/embed-cookies.'.uniqid());
sys_get_temp_dir() returns the server defined temporary directory, NOT the one defined in drupal.
In our client's case, there are a large number of sub clients on the same server, and as a result they have extremely strict open_basedir restrictions. The server temp path of '/tmp' is simply not open for writing.
If it's possible to use a different vendor that might be a good idea. (Or figure out how to pass the Drupal temp directory setting to that vendor and have them use that instead.)
Comments
Comment #2
charly71 commented+1 ..I've the same problem
Comment #3
justcaldwellSince this is really a vendor issue, you might consider opening an ticket in the Embed queue. If the maintainer is willing to implement a way accept an alternative path for the temp directory, url_embed could take advantage of that in a future release.
Comment #4
justcaldwellSetting to Feature Request since this is not a bug in url_embed. Postponed pending outcome of this ticket on Embed/embed.