Closed (fixed)
Project:
Media Entity Facebook
Version:
8.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Jul 2020 at 12:02 UTC
Updated:
2 Apr 2021 at 16:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
kunal_singh commentedComment #3
kunal_singh commentedComment #4
kunal_singh commentedComment #5
promesKunal, 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)
Comment #6
kunal_singh commentedI think this will resolve the warning.
Comment #7
promesThanks. After patching the code I deinstalled and reinstalled the module with no errros or warnings.
Comment #8
beltofteRaising to critical as the module can't be installed on D9 due to deprecated code [file_unmanaged_copy()].
Comment #9
maurizio.ganovelliWith 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.
Comment #10
petr illekHi,
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>.Comment #11
bkosborneThanks 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.