Create a URL resources (mod url) with invalid external link "hhttps://yoursite.com" (intentional double 'h' in 'hhttps' )
Set Display setting as 'Open'
Save the URL
Click on the mod URL
Confirm that it rediect to: 'https://yoursite.com/mod/url/<a></a>'
Error when running 'sudo -u www-data php admin/tool/crawler/cli/crawler.php --verbose=2'
Crawling https://<moodlesite>/mod/url/view.php?id=3878052 => https:/<moodlesite>/mod/url/<a></a>/ (404)
Default exception handler: error/invalidpersistenterror Debug: redirect: Data submitted is invalid
Error code: invalidpersistenterror
$a contents: Data submitted is invalid
* line 528 of /lib/classes/persistent.php: core\invalid_persistent_exception thrown
* line 672 of /admin/tool/crawler/classes/robot/crawler.php: call to core\persistent->update()
* line 577 of /admin/tool/crawler/classes/robot/crawler.php: call to tool_crawler\robot\crawler->crawl()
* line 81 of /admin/tool/crawler/lib.php: call to tool_crawler\robot\crawler->process_queue()
* line 55 of /admin/tool/crawler/cli/crawler.php: call to tool_crawler_crawl()
Step to replicate:
'https://yoursite.com/mod/url/<a></a>'
Error when running 'sudo -u www-data php admin/tool/crawler/cli/crawler.php --verbose=2'