Hello.
Could you see what is happening and why I got this notice ? Cannot figure it out...
Any help is welcome...

CommentFileSizeAuthor
#5 media-1313454-5-undefined_index.patch587 byteskehan

Comments

erikwebb’s picture

Can you include the field that was being filtered that caused this notice?

felixvang’s picture

help me out please:
Notice: Undefined offset: 1 in SmtpMailSystem->mail() (line 125 of /var/www/drupal/sites/all/modules/smtp/smtp.mail.inc).
Notice: Undefined offset: 1 in SmtpMailSystem->mail() (line 125 of /var/www/drupal/sites/all/modules/smtp/smtp.mail.inc).
Unable to send e-mail. Contact the site administrator if the problem persists.

dave reid’s picture

@felixvang: Your error is completely unrelated to the Media module. File an issue with the smtp module instead.

devin carlson’s picture

Status: Active » Closed (cannot reproduce)

Closing this because I haven't been able to duplicate it and no activity has occurred for a long time. Feel free to reopen with updated info if issue still remains.

kehan’s picture

Version: 7.x-2.x-dev » 7.x-1.2
Status: Closed (cannot reproduce) » Needs review
StatusFileSize
new587 bytes

Hi,
I just found this. The Wysiwyg module had somehow stuck some extraneous elements in the json that creates the media field. The offending $declarations that came through were as follows

padding: 5px; margin-left: 5px; ;
WIDTH: 90px; HEIGHT: 67px;
Array;;;

The attached patch makes sure that the delimiter is present in the child elements before exploding them

ParisLiakos’s picture

Version: 7.x-1.2 » 7.x-2.x-dev

should be fixed in 2.x-dev first and then backported

ParisLiakos’s picture

Category: support » bug
Mat77’s picture

Looks like the patch fixed the bug for me, but as the notice appears totally randomly, I can't be sure.

I'll let you know if it comes back.

Using Media 7.x-1.3

jerry’s picture

FWIW, patch in #5 appears to have fixed the problem for me in 7.x-1.3 as well.

devin carlson’s picture

Status: Needs review » Needs work

The last submitted patch, 5: media-1313454-5-undefined_index.patch, failed testing.

longlivelance’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 5: media-1313454-5-undefined_index.patch, failed testing.

greggmarshall’s picture

Issue summary: View changes

The #5 patch worked to resolve an issue on our Media 1.4 site.

Oddly this site was affected, but a "sister" site that was built as a clone of the code/database of this site, didn't have any issues. Go figure.

chris matthews’s picture

Status: Needs work » Closed (outdated)

Closing this issue as outdated. However, if you think this issue is still important, please let us know and we will gladly re-open it for review.
sincerely,
- the Drupal Media Team