Project

General

Profile

Bug #85328

Updated by schmitz no-lastname-given almost 6 years ago

<pre><code class="text"> 
 mod.linkvalidator { 
	 searchFields { 
		 pages = media,url 
		 tt_content = bodytext,header_link,records 
		 tt_news = bodytext,links 
	 } 
	 linktypes = db,file,external 
	 checkhidden = 0 
	 showCheckLinkTab = 1 
	 mail { 
		 fromname = Linkvalidator 
		 fromemail = Linkvalidator@example.com 
		 replytoname = 
		 replytoemail = 
		 subject = TYPO3 Linkvalidator report 
	 } 
	 linkhandler.reportHiddenRecords = 0 
 } 
 </code></pre> 

 searchFields for linkvalidator still includes tt_news which results in the following error, while using the linkvalidator check in TYPO3 8.7: 

 <pre><code class="text"> 
 Argument *Argument 3 passed to TYPO3\CMS\Core\Database\Query\QueryBuilder::select() must be of the type string, null given, called in [...]/typo3/sysext/linkvalidator/Classes/LinkAnalyzer.php on line 189 
 </code></pre> 
 

 189*  

 Maybe this configuration would be better? 

 <pre><code class="text"> 
 mod.linkvalidator { 
	 searchFields { 
		 pages = media,url 
		 tt_content = bodytext,header_link,records 
		 tx_news = bodytext,related_links 
		 tx_news_domain_model_link = uri 
	 } 
	 linktypes = db,file,external 
	 checkhidden = 0 
	 showCheckLinkTab = 1 
	 mail { 
		 fromname = Linkvalidator 
		 fromemail = Linkvalidator@example.com 
		 replytoname = 
		 replytoemail = 
		 subject = TYPO3 Linkvalidator report 
	 } 
	 linkhandler.reportHiddenRecords = 0 
 } 
 </code></pre> 


 Furthermore, when scanning links like http://www.chemmedchem.org/ I get this error: 

 <pre><code class="text"> 
 Call to a member function getStatusCode() on null 

 Error thrown in file 
 [...]/typo3/sysext/linkvalidator/Classes/Linktype/ExternalLinktype.php in line 93. 

 16 TYPO3\CMS\Linkvalidator\Linktype\ExternalLinktype::checkLink("http://www.chemmedchem.org/", array, TYPO3\CMS\Linkvalidator\LinkAnalyzer) 
 </code></pre> 

Back