- Affected Version
- WoltLab Suite 5.3
- Affected App
- WoltLab Suite Filebase
Hallo zusammen,
ich habe schon seit langer Zeit regelmäßig Fehler im Logfile, die ich bisher erfolgreich ignoriert habe, da mir keine Auswirkungen aufgefallen sind - nun würde ich dem Ganzen aber gern auf den Grund gehen.
QuoteDisplay MoreTue, 15 Feb 2022 12:56:38 +0000
Message: Call to a member function getCategory() on null
PHP version: 7.4.27
WoltLab Suite version: 5.3.19
Request URI: GET /download/file/images/style-22/headerSlideshow4.jpg
Referrer: https://www.trainz.de/download/file/…rt-von-neoklai/
User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:97.0) Gecko/20100101 Firefox/97.0
Peak Memory Usage: 7973696/134217728
======
Error Class: Error
Error Message: Call to a member function getCategory() on null
Error Code: 0
File: /var/www/vhosts/trainz.de/httpdocs/download/lib/page/FilePage.class.php (374)
Extra Information: -
Stack Trace: [{"file":"\/var\/www\/vhosts\/trainz.de\/httpdocs\/download\/lib\/system\/condition\/file\/FileCategoryCondition.class.php","line":62,"function":"getCategory","class":"filebase\\page\\FilePage","type":"->","args":[]},{"file":"\/var\/www\/vhosts\/trainz.de\/httpdocs\/lib\/system\/notice\/NoticeHandler.class.php","line":51,"function":"showContent","class":"filebase\\system\\condition\\file\\FileCategoryCondition","type":"->","args":[]},{"file":"\/var\/www\/vhosts\/trainz.de\/httpdocs\/templates\/compiled\/17_wcf_2_userException.php","line":2881,"function":"getVisibleNotices","class":"wcf\\system\\notice\\NoticeHandler","type":"->","args":[]},{"file":"\/var\/www\/vhosts\/trainz.de\/httpdocs\/lib\/system\/template\/TemplateEngine.class.php","line":334,"args":["\/var\/www\/vhosts\/trainz.de\/httpdocs\/templates\/compiled\/17_wcf_2_userException.php"],"function":"include","class":"","type":""},{"file":"\/var\/www\/vhosts\/trainz.de\/httpdocs\/lib\/system\/exception\/NamedUserException.class.php","line":39,"function":"display","class":"wcf\\system\\template\\TemplateEngine","type":"->","args":[]},{"file":"\/var\/www\/vhosts\/trainz.de\/httpdocs\/lib\/system\/exception\/IllegalLinkException.class.php","line":31,"function":"show","class":"wcf\\system\\exception\\NamedUserException","type":"->","args":[]},{"file":"\/var\/www\/vhosts\/trainz.de\/httpdocs\/lib\/system\/request\/RequestHandler.class.php","line":110,"function":"show","class":"wcf\\system\\exception\\IllegalLinkException","type":"->","args":[]},{"file":"\/var\/www\/vhosts\/trainz.de\/httpdocs\/download\/index.php","line":9,"function":"handle","class":"wcf\\system\\request\\RequestHandler","type":"->","args":[]}]
oder auch
QuoteDisplay MoreTue, 15 Feb 2022 12:45:08 +0000
Message: Call to a member function getCategory() on null
PHP version: 7.4.27
WoltLab Suite version: 5.3.19
Request URI: GET /download/file/images/style-22/pageBG.jpg
Referrer: https://www.trainz.de/download/file/1609-kinderkarussell/
User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:97.0) Gecko/20100101 Firefox/97.0
Peak Memory Usage: 7973848/134217728
======
Error Class: Error
Error Message: Call to a member function getCategory() on null
Error Code: 0
File: /var/www/vhosts/trainz.de/httpdocs/download/lib/page/FilePage.class.php (374)
Extra Information: -
Stack Trace: [{"file":"\/var\/www\/vhosts\/trainz.de\/httpdocs\/download\/lib\/system\/condition\/file\/FileCategoryCondition.class.php","line":62,"function":"getCategory","class":"filebase\\page\\FilePage","type":"->","args":[]},{"file":"\/var\/www\/vhosts\/trainz.de\/httpdocs\/lib\/system\/notice\/NoticeHandler.class.php","line":51,"function":"showContent","class":"filebase\\system\\condition\\file\\FileCategoryCondition","type":"->","args":[]},{"file":"\/var\/www\/vhosts\/trainz.de\/httpdocs\/templates\/compiled\/17_wcf_2_userException.php","line":2881,"function":"getVisibleNotices","class":"wcf\\system\\notice\\NoticeHandler","type":"->","args":[]},{"file":"\/var\/www\/vhosts\/trainz.de\/httpdocs\/lib\/system\/template\/TemplateEngine.class.php","line":334,"args":["\/var\/www\/vhosts\/trainz.de\/httpdocs\/templates\/compiled\/17_wcf_2_userException.php"],"function":"include","class":"","type":""},{"file":"\/var\/www\/vhosts\/trainz.de\/httpdocs\/lib\/system\/exception\/NamedUserException.class.php","line":39,"function":"display","class":"wcf\\system\\template\\TemplateEngine","type":"->","args":[]},{"file":"\/var\/www\/vhosts\/trainz.de\/httpdocs\/lib\/system\/exception\/IllegalLinkException.class.php","line":31,"function":"show","class":"wcf\\system\\exception\\NamedUserException","type":"->","args":[]},{"file":"\/var\/www\/vhosts\/trainz.de\/httpdocs\/lib\/system\/request\/RequestHandler.class.php","line":110,"function":"show","class":"wcf\\system\\exception\\IllegalLinkException","type":"->","args":[]},{"file":"\/var\/www\/vhosts\/trainz.de\/httpdocs\/download\/index.php","line":9,"function":"handle","class":"wcf\\system\\request\\RequestHandler","type":"->","args":[]}]
Ich habe ehrlich gesagt keine Erklärung, was da passiert.
Dem Referrer nach sind allesamt Einträge in der Filebase betroffen.
Meiner Vermutung nach liegt es am Stil über eine fehlerhafte Einbindung von Grafiken?
Die Pfade oben (Request URL) ergeben jedenfalls wenig Sinn.
Via erweitertes CSS wird zB. die genannte Datei in Beispiel 2 so eingebunden:
Wo liegt da der Fehler?
Vielen Dank schonmal
Sebastian