Mir ist im Fehlerlog aufgefallen, dass 2 News aufgerufen wurden, die aber bereits gar nicht mehr existieren und das bringt dann den Fehler Trying to get property of non-object.
Hier die beiden Fehlermeldungen:
Code
Thu, 26 Apr 2018 09:15:42 +0000
Message: Trying to get property of non-object
PHP version: 7.1.16-1+ubuntu16.04.1+deb.sury.org+1
WoltLab Suite version: 3.1.2 pl 1
Request URI: /deals/news/115-gamesplanet-deal-sniper-ghost-warrior-steam-f%C3%BCr-nur-80-cent/
Referrer:
User Agent: Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)
Peak Memory Usage: 8278112/268435456
======
Error Class: wcf\system\exception\ErrorException
Error Message: Trying to get property of non-object
Error Code: 0
File: /var/www/compiware-forum.de/htdocs/compiware-forum.de/lib/system/WCF.class.php (346)
Extra Information: -
Stack Trace: [{"file":"\/var\/www\/compiware-forum.de\/htdocs\/compiware-forum.de\/deals\/lib\/page\/AbstractNewsPage.class.php","line":149,"function":"handleError","class":"wcf\\system\\WCF","type":"::","args":[8,"Trying to get property of non-object","\/var\/www\/compiware-forum.de\/htdocs\/compiware-forum.de\/deals\/lib\/page\/AbstractNewsPage.class.php",149,[]]},{"file":"\/var\/www\/compiware-forum.de\/htdocs\/compiware-forum.de\/deals\/lib\/page\/NewsPage.class.php","line":101,"function":"readParameters","class":"news\\page\\AbstractNewsPage","type":"->","args":[]},{"file":"\/var\/www\/compiware-forum.de\/htdocs\/compiware-forum.de\/lib\/page\/AbstractPage.class.php","line":113,"function":"readParameters","class":"news\\page\\NewsPage","type":"->","args":[]},{"file":"\/var\/www\/compiware-forum.de\/htdocs\/compiware-forum.de\/lib\/system\/request\/Request.class.php","line":83,"function":"__run","class":"wcf\\page\\AbstractPage","type":"->","args":[]},{"file":"\/var\/www\/compiware-forum.de\/htdocs\/compiware-forum.de\/lib\/system\/request\/RequestHandler.class.php","line":96,"function":"execute","class":"wcf\\system\\request\\Request","type":"->","args":[]},{"file":"\/var\/www\/compiware-forum.de\/htdocs\/compiware-forum.de\/deals\/index.php","line":10,"function":"handle","class":"wcf\\system\\request\\RequestHandler","type":"->","args":["news"]}]
Alles anzeigen
Code
Thu, 26 Apr 2018 23:47:27 +0000
Message: Trying to get property of non-object
PHP version: 7.1.16-1+ubuntu16.04.1+deb.sury.org+1
WoltLab Suite version: 3.1.2 pl 1
Request URI: /deals/news/113-tom-clancy-s-ghost-recon-future-soldier-standard-deluxe-f%C3%BCr-nur-3-99-6-80-eur-be/
Referrer:
User Agent: Mozilla/5.0 (compatible; AhrefsBot/5.2; +http://ahrefs.com/robot/)
Peak Memory Usage: 8311104/268435456
======
Error Class: wcf\system\exception\ErrorException
Error Message: Trying to get property of non-object
Error Code: 0
File: /var/www/compiware-forum.de/htdocs/compiware-forum.de/lib/system/WCF.class.php (346)
Extra Information: -
Stack Trace: [{"file":"\/var\/www\/compiware-forum.de\/htdocs\/compiware-forum.de\/deals\/lib\/page\/AbstractNewsPage.class.php","line":149,"function":"handleError","class":"wcf\\system\\WCF","type":"::","args":[8,"Trying to get property of non-object","\/var\/www\/compiware-forum.de\/htdocs\/compiware-forum.de\/deals\/lib\/page\/AbstractNewsPage.class.php",149,[]]},{"file":"\/var\/www\/compiware-forum.de\/htdocs\/compiware-forum.de\/deals\/lib\/page\/NewsPage.class.php","line":101,"function":"readParameters","class":"news\\page\\AbstractNewsPage","type":"->","args":[]},{"file":"\/var\/www\/compiware-forum.de\/htdocs\/compiware-forum.de\/lib\/page\/AbstractPage.class.php","line":113,"function":"readParameters","class":"news\\page\\NewsPage","type":"->","args":[]},{"file":"\/var\/www\/compiware-forum.de\/htdocs\/compiware-forum.de\/lib\/system\/request\/Request.class.php","line":83,"function":"__run","class":"wcf\\page\\AbstractPage","type":"->","args":[]},{"file":"\/var\/www\/compiware-forum.de\/htdocs\/compiware-forum.de\/lib\/system\/request\/RequestHandler.class.php","line":96,"function":"execute","class":"wcf\\system\\request\\Request","type":"->","args":[]},{"file":"\/var\/www\/compiware-forum.de\/htdocs\/compiware-forum.de\/deals\/index.php","line":10,"function":"handle","class":"wcf\\system\\request\\RequestHandler","type":"->","args":["news"]}]
Alles anzeigen
Wenn ich das richtig sehe, sind die Links von Bots aufgerufen worden. Diese beiden IDs 113 und 115 gibt es aber gar nicht mehr. In der DB sind sie auch nicht mehr in der Tabelle news1_news vorhanden.
Lässt sich das vielleicht unterbinden, dass in diesem Fall eine Fehlermeldung ins Log gespeichert wird? Hier wäre doch eine "Seite nicht gefunden" Meldung angebrachter oder?