I tried to install this module in D9.0.2 using version 8.x-2.0-alpha1+2-dev. I got this error:
Error: Call to undefined function file_unmanaged_copy() in media_entity_facebook_install() (line 27 of xxx/modules/contrib/media_entity_facebook/media_entity_facebook.install)

Comments

PROMES created an issue. See original summary.

kunal_singh’s picture

Assigned: Unassigned » kunal_singh
kunal_singh’s picture

StatusFileSize
new648 bytes
kunal_singh’s picture

Assigned: kunal_singh » Unassigned
Status: Active » Needs review
promes’s picture

Kunal, thanks for your fast response. The install completed with this warning:
Warning: Use of undefined constant FILE_EXISTS_ERROR - assumed 'FILE_EXISTS_ERROR' (this will throw an Error in a future version of PHP) in media_entity_facebook_install() (line 28 of xxx/modules/contrib/media_entity_facebook/media_entity_facebook.install)

kunal_singh’s picture

StatusFileSize
new643 bytes

I think this will resolve the warning.

promes’s picture

Thanks. After patching the code I deinstalled and reinstalled the module with no errros or warnings.

beltofte’s picture

Priority: Normal » Critical

Raising to critical as the module can't be installed on D9 due to deprecated code [file_unmanaged_copy()].

maurizio.ganovelli’s picture

StatusFileSize
new664 bytes

With D9 i get this warning during "drush en" command:
[warning] Use of undefined constant EXISTS_ERROR - assumed 'EXISTS_ERROR' (this will throw an Error in a future version of PHP) media_entity_facebook.install:27
Attached patch make use of FileSystemInterface::EXISTS_ERROR instead of EXISTS_ERROR constant.

petr illek’s picture

Hi,
with this patch I was able to install the module on Drupal core 9.1.5. But I'm not getting any output on the page. I've setup a field on a node and also tried to embed it in CK Editor. Both with no avail. The media entity is printed, but with empty <div class="field__item"></div>.

bkosborne’s picture

Status: Needs review » Fixed

Thanks everyone, committed.

#10 is unrelated and likely due to issue with Facebook removing the oembed API the module currently relies on. That will be fixed in a separate issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.