Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello.
Could you see what is happening and why I got this notice ? Cannot figure it out...
Any help is welcome...
Comment | File | Size | Author |
---|---|---|---|
#5 | media-1313454-5-undefined_index.patch | 587 bytes | kehan |
Comments
Comment #1
erikwebb CreditAttribution: erikwebb commentedCan you include the field that was being filtered that caused this notice?
Comment #2
felixvang CreditAttribution: felixvang commentedhelp 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.
Comment #3
Dave Reid@felixvang: Your error is completely unrelated to the Media module. File an issue with the smtp module instead.
Comment #4
Devin Carlson CreditAttribution: Devin Carlson commentedClosing 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.
Comment #5
kehan CreditAttribution: kehan commentedHi,
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
The attached patch makes sure that the delimiter is present in the child elements before exploding them
Comment #6
ParisLiakos CreditAttribution: ParisLiakos commentedshould be fixed in 2.x-dev first and then backported
Comment #7
ParisLiakos CreditAttribution: ParisLiakos commentedComment #8
Mat77 CreditAttribution: Mat77 commentedLooks 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
Comment #9
jerry CreditAttribution: jerry commentedFWIW, patch in #5 appears to have fixed the problem for me in 7.x-1.3 as well.
Comment #10
Devin Carlson CreditAttribution: Devin Carlson commented5: media-1313454-5-undefined_index.patch queued for re-testing.
Comment #12
longlivelance CreditAttribution: longlivelance commented5: media-1313454-5-undefined_index.patch queued for re-testing.
Comment #14
greggmarshallThe #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.
Comment #15
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedClosing 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