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

filippo.ledda created an issue. See original summary.

filippo.ledda’s picture

Title: Cannot add media from remote » Unable to add file from remote url
steinmb’s picture

Version: 7.x-2.0-beta1 » 7.x-2.x-dev
mrwell’s picture

Ciao 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

jerry’s picture

I'm observing the same failure that the OP described, using the same versions of D7, Media and File Entity.

loparr’s picture

same here, not possible to upload from remote url

pdesai’s picture

+1 - any update on this?

mlhyyl’s picture

same here when trying to add an remote mp3 via web tab.

demonde’s picture

The error still appears in 7.x-2.0-beta2.

  • An error occurred and no file was uploaded.
  • Unable to add file.
demonde’s picture

Priority: Normal » Major
steinmb’s picture

The 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.

demonde’s picture

After moving my page where the error occured to a new server the problem has vanished.

Therefore some server settings should be responsible.

steinmb’s picture

Category: Bug report » Support request
Priority: Major » Normal
Chris Matthews’s picture

Status: Active » Closed (outdated)

Recent 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

Vinoth M’s picture

Hi,

Any update on this?