Problem/Motivation

Notice: Trying to access array offset on value of type null in linkchecker_form_field_ui_field_edit_form_alter() (line 1130 of /.../linkchecker.module).

Steps to reproduce

Enable the linkchecker module on an existing site which already have link fields.
Go to the Field UI form.

Proposed resolution

Check that if the variable is not NULL, and the array key is exists.

$linkchecker_excludes = variable_get('linkchecker_exclude');

Comments

Sweetchuck created an issue. See original summary.

sweetchuck’s picture

Status: Active » Needs review
StatusFileSize
new744 bytes
rclemings’s picture

Works for me, PHP 8.1, Drupal 7.94, Linkchecker 7.x-1.5.

cboyden’s picture

cboyden’s picture

quadrexdev’s picture

Status: Needs review » Closed (outdated)

Closing this as it was fixed. But in case anyone else can reproduce this somehow:

D7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.

If the issue remains relevant for D10+ versions, merge requests with proposed solutions for a new module version (D10+) are welcome in a new follow-up issue.

Thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.