this error happens at php 7.1
i can insert any link.

AjaxError: AJAX HTTP error.
HTTP: 200
/editor/dialog/link/basic_html?_wrapper_format=drupal_modal&ajax_form=1
ArgumentCountError: Too few arguments to function _editor_advanced_link_attributes_validate(), 2 passed and exactly 3 expected in _editor_advanced_link_attributes_validate() (line 134 of /home/motokale/public_html/modules/editor_advanced_link/editor_advanced_link.module).

1

Comments

fomenkoandrey created an issue. See original summary.

dripa’s picture

Same issue here. Seems like it's fixed in the dev version though

fomenkoandrey’s picture

updated to dev version, seems to work.

wengerk’s picture

StatusFileSize
new679 bytes

It's due to the recent change of PHP 7.1

Implemented RFC: Replace "Missing argument" warning with "\ArgumentCountError" exception.

I code a patch you can apply it using composer.

"extra": {
    "patches": {
        "drupal/editor_advanced_link": {
          "Fix php71 ArgumentCountError": "https://www.drupal.org/files/issues/editor_advanced_link.php71.patch"
        }
    }
}
duaelfr’s picture

Version: 8.x-1.3 » 8.x-1.x-dev
Status: Active » Closed (duplicate)
Related issues: +#2823686: Repeated error: missing argument 3

Already solved by #2823686: Repeated error: missing argument 3
I'll make a new release soon