Notice: Undefined index: #options in media_internet_form_file_entity_add_upload_alter() (line 166 of /home/build24v/public_html/profiles/commons/modules/contrib/media/modules/media_internet/media_internet.module).

Comments

vlooivlerke’s picture

I have the same problem when installed the latest dev

Unable to embed youtube or vemo

vlooivlerke’s picture

Version: 7.x-2.0-alpha3 » 7.x-2.x-dev
Category: Support request » Bug report

This is a bug, not a support request.

cybertrail’s picture

I updated my version of File entity (7.x-2.x-dev - 04-Jun-02) and this fixed the error message but Web uploads just fail without any error message now.

cybertrail’s picture

Actually they uploaded without any notification. I just had a look in Libraries and both images are there.

jlporter’s picture

StatusFileSize
new879 bytes

Quick fix attached. I see some error message between submitting embed url and the media embed final form. It changes too fast for me to see.

I know the paths are wrong but this patch is just a start.

$form['#options'] does not exist if you dpm($form) there. Not sure how this ever worked.

devin carlson’s picture

Status: Active » Fixed

This should now be fixed in the latest -dev releases of Media and File Entity.

kaizerking’s picture

This error still exists

claymarshall’s picture

Subscribing. See the same error still existing in latest dev.

valross.nu’s picture

Can confirm that the bug still exists but it was solved by updating to latest dev of Media and File Entity.
We did upgrade core and other modules in need of updates at the same time - so try that if you still have problems and have pending updates =)

Or a patch might interfere with something something... You never know ;)

DonnyYouwe’s picture

Patch works great! Thanks :)

_antonioFazari’s picture

StatusFileSize
new1.07 KB

Altered the patch so it has the correct path.

Status: Fixed » Closed (fixed)

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

shushu’s picture

Status: Closed (fixed) » Active

@Devin, seems this patch did not get into dev branch.
See media_internet_form_file_entity_add_upload_alter() current code.

shushu’s picture

Status: Active » Needs review
StatusFileSize
new724 bytes
devin carlson’s picture

Status: Needs review » Postponed (maintainer needs more info)

@shushu It sounds like you aren't using the same versions of Media and File Entity (ie -dev and -dev).

shushu’s picture

I am not sure what you mean.
To verify I cloned clean media repository and looked into media_internet.module. The current code is:

/**
 * Implements hook_form_FORM_ID_alter().
 */
function media_internet_form_file_entity_add_upload_alter(&$form, &$form_state, $form_id) {
  $step = $form['#step'];
  $options = $form['#options'];

All the patch does is to put the $options into an if block.

arosboro’s picture

@shushu, I had the same issue, wasn't using the dev version of both media and file_entity. This patch is not necessary if you are comfortable running both modules in dev.

shushu’s picture

It seems #2284861: File size error on first upload after updating to 7.x-2.x-dev touch the same code (and pushed into dev).
Checking whether it solves the issue in a different way.

devin carlson’s picture

Status: Postponed (maintainer needs more info) » Fixed

As mentioned in #17, this is fixed in the latest -dev of Media and File entity (you must be running both).

Status: Fixed » Closed (fixed)

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

Status: Closed (fixed) » Needs review
devin carlson’s picture

Status: Needs review » Closed (fixed)

The last submitted patch, 5: media-oembed-2280941.patch, failed testing.

The last submitted patch, 11: media-oembed-2280941-11.patch, failed testing.

Andrei Tyuhai’s picture

StatusFileSize
new761 bytes
draganeror’s picture

Well done @Andrei Tyuhai, thanks a lot! Quick and clean, nice! ;)

luksak’s picture

Status: Closed (fixed) » Needs review

The patch in #25 fixes an error message I get when having media_youtube and media_vimeo installed. Should we open a new issue for this re-open this one? For now opening this one so we don't forget about it.

Status: Needs review » Needs work

The last submitted patch, 25: media-oembed-2280941-15.patch, failed testing.

ann b’s picture

Status: Needs work » Fixed

This is fixed using the following:

File Entity - 7.x-2.0-beta3

Media - 7.x-2.0-rc5

Status: Fixed » Closed (fixed)

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