Bug #28255
closedWarning in log when displaying report
100%
Description
When displaying the report the TYPO3 log is filled with warnings like:
Core: Error handler (BE): PHP Warning: filesize(): stat failed for /var/www/conet/htdocs/typo3/atibility.js in /var/www/conet/htdocs/typo3_src-4.5.2/t3lib/class.t3lib_compressor.php line 341
I described this earlier in #25303 but assumed that this is an error in the template class. Investigating this again, I found out that it's actually an error in linkvalidator.
modfuncreport/class.tx_linkvalidator_modfuncreport.php creates a template object in line 295. In the next line, setModuleTemplate is called which internally adds the js/iecompatiblity.js to the renderer. To do this properly, it needs the backPath. BUT the backPath of the template object is set only one line later.
So, the solution is to swap lines 296 and 297, thus setting the backPath immediately after the creating of the template object.