Admin menu -> Content authoring-> Link Checker -> under MAINTENANCE tab -> Clear link data and analyze content for links and Reanalyze content for links
As a click on below links under maintenance tab, it executes batch process, somehow it breaks with below error:
TypeError: Argument 1 passed to Drupal\linkchecker\LinkExtractorService::extractFromEntity() must implement interface Drupal\Core\Entity\FieldableEntityInterface, null given, called in /linkchecker/src/LinkExtractorBatch.php on line 116 in Drupal\linkchecker\LinkExtractorService->extractFromEntity() (line 92 of /linkchecker/src/LinkExtractorService.php)
Comments
Comment #2
harshit97 commentedComment #3
harshit97 commentedComment #4
harshit97 commentedUpdated below code in linkchecker\src\LinkExtractorBatch.php
Comment #5
harshit97 commentedComment #7
avpadernoUntil the project code isn't changed, this bug isn't fixed.
Comment #8
pavnish commentedComment #9
pavnish commentedPlease review this patch
Comment #10
avpadernoThe patch fixes the exception shown in the OP.
Comment #11
tomefa commentedThe patch work also for me and correct the error.
Comment #12
joseph.olstadSomeone needs to take ownership of this project or find a new co-maintainer.
we need this patch and two others just to get this module to work on recent Drupal releases
#3118940: Route "entity.linkcheckerlink.canonical" does not exist
#3058014-27: Add support for Redirect module
#3132326-9: Link Extract Issue
Comment #13
c-logemannIn my Testing setups I cannot reproduce this error. Maybe this depends on PHP version. But this is not needed because of the RTBC comments above and there was nothing broken in my test setups :-) So I will commit this small change.
Comment #15
c-logemannTanks everyone who helps on coding and testing the fix.