Adding images from a remote source with media internet doesn't work.
Could replicate on a clean Drupal 7.41 installation with media 7.x-2.0-beta1 and file entity 7.x-2.0-beta2.
Also happens with the last dev version.
Errors follow:
Unable to add file http://www.animatour.it/images/articoli_blog/sardegna_foto_6.jpg
Notice: Undefined index: upload in file_entity_add_upload_submit() (line 344 of /home/drupalpro/websites/prove.dev/sites/all/modules/file_entity/file_entity.pages.inc).
Warning: array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 175 of /home/drupalpro/websites/prove.dev/includes/entity.inc).
Notice: Trying to get property of non-object in file_entity_file_type() (line 45 of /home/drupalpro/websites/prove.dev/sites/all/modules/file_entity/file_entity.file.inc).
Notice: Trying to get property of non-object in file_entity_file_type() (line 45 of /home/drupalpro/websites/prove.dev/sites/all/modules/file_entity/file_entity.file.inc).
Notice: Trying to get property of non-object in file_entity_file_type() (line 45 of /home/drupalpro/websites/prove.dev/sites/all/modules/file_entity/file_entity.file.inc).
Notice: Trying to get property of non-object in file_entity_file_type() (line 45 of /home/drupalpro/websites/prove.dev/sites/all/modules/file_entity/file_entity.file.inc).
Notice: Undefined index: upload in file_entity_add_upload_submit() (line 344 of /home/drupalpro/websites/prove.dev/sites/all/modules/file_entity/file_entity.pages.inc).
Warning: array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 175 of /home/drupalpro/websites/prove.dev/includes/entity.inc).
Notice: Trying to get property of non-object in file_entity_file_is_writeable() (line 2186 of /home/drupalpro/websites/prove.dev/sites/all/modules/file_entity/file_entity.module).
Notice: Trying to get property of non-object in file_entity_add_upload_submit() (line 374 of /home/drupalpro/websites/prove.dev/sites/all/modules/file_entity/file_entity.pages.inc).
Notice: Undefined index: upload in file_entity_add_upload_submit() (line 400 of /home/drupalpro/websites/prove.dev/sites/all/modules/file_entity/file_entity.pages.inc).
Warning: array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 175 of /home/drupalpro/websites/prove.dev/includes/entity.inc).
Notice: Undefined index: upload in file_entity_add_upload_submit() (line 424 of /home/drupalpro/websites/prove.dev/sites/all/modules/file_entity/file_entity.pages.inc).
Warning: array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 175 of /home/drupalpro/websites/prove.dev/includes/entity.inc).
An error occurred and no file was uploaded.
Thanks
Comments
Comment #2
filippo.ledda CreditAttribution: filippo.ledda commentedComment #3
steinmb CreditAttribution: steinmb as a volunteer commentedComment #4
mrwell CreditAttribution: mrwell as a volunteer commentedCiao Filippo hai risolto in qualche modo? io ho lo stesso problema ma con media 7.x-1.5 e file entity 7.x-1.5
Comment #5
jerry CreditAttribution: jerry commentedI'm observing the same failure that the OP described, using the same versions of D7, Media and File Entity.
Comment #6
loparr CreditAttribution: loparr commentedsame here, not possible to upload from remote url
Comment #7
pdesai CreditAttribution: pdesai commented+1 - any update on this?
Comment #8
mlhyyl CreditAttribution: mlhyyl commentedsame here when trying to add an remote mp3 via web tab.
Comment #9
demonde CreditAttribution: demonde commentedThe error still appears in 7.x-2.0-beta2.
Comment #10
demonde CreditAttribution: demonde commentedComment #11
steinmb CreditAttribution: steinmb as a volunteer commentedThe lack of activity tell me that this is not a common problem. I would take a long and hard look at your PHP settings/permissions. Your private server, shared server with special settings enabled etc.
Comment #12
demonde CreditAttribution: demonde commentedAfter moving my page where the error occured to a new server the problem has vanished.
Therefore some server settings should be responsible.
Comment #13
steinmb CreditAttribution: steinmb as a volunteer commentedComment #14
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedRecent versions of media have resolved most of peoples concerns and is compatible with entity translation, multilingual and various advanced configurations. Due to the high volume of inactive and most often irrelevant issues we are Closing this as (outdated). If for whatever reason this issue is important to you AND you still have issues after checking the media recipe documentation, then let us know and we will review your concerns.
Otherwise, see the recipe documentation for how to configure media and for troubleshooting tips OR refer to the media_dev distribution if you want to see a working media setup.
As mentioned, feel free to make some noise in this issue if you still feel it is important to you or someone else.
Thanks,
Media team
Comment #15
Vinoth M CreditAttribution: Vinoth M commentedHi,
Any update on this?