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.
This might be an easy fix, but I'm seeing this when opening the link popup and making a link.
Warning: Missing argument 3 for _editor_advanced_link_attributes_validate() in _editor_advanced_link_attributes_validate()
Comment | File | Size | Author |
---|---|---|---|
#6 | editor_advanced_link-missing-argument-2856342-6.patch | 675 bytes | weseze |
#4 | editor_advanced_link-missing-argument-2856342-4.patch | 673 bytes | myLies |
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedvilepickle created an issue. See original summary.
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedIt looks like this may have already been fixed in dev...
Comment #3
Paul Dudink CreditAttribution: Paul Dudink commentedI haven't checked whether or not this issue has been fixed, however I have been looking at the code and the "issue" is still there in the dev code:
The third parameter is $form, but $form is not being used in the function, so why is there in the first place?
The parameter should be removed.
Comment #4
myLies CreditAttribution: myLies as a volunteer commented@vrijdenker - you are right, form validation\submit callback should have same hook_form_alter parameters
attached patch should fix it
Comment #5
Paul Dudink CreditAttribution: Paul Dudink commentedI'm sorry I have to take back my last comment. I may have been looking at old code, since I just switched to the dev-branch and the third parameter is gone after all. So indeed the bug has been fixed in the dev-branch.
@myLies: I'm not sure whether your patch should be applied or not. The bug as mentioned by @vilepickle has been fixed after all.
Comment #6
weseze CreditAttribution: weseze commentedAttached patch should fix it against the stable release 1.3.
Comment #7
DuaelFrAlready solved by #2823686: Repeated error: missing argument 3
I'll make a new release soon