Cronjobfehler

  • Benutzt du einen Webspace, selbstverwalteten Webserver oder die WoltLab Cloud?
    selbstverwalteter Webserver
    Welche WSC-Version benutzt du?
    WoltLab Suite 5.5
    Welche PHP-Version benutzt du?
    PHP 8.1
    Welche Plugin-Version benutzt du?
    2.5.1
    Wann trat das Problem/der Bug auf?
    1. März 2023

    Hallo ihr Lieben,

    ich habe mit der API folgendes Problem:

    Call to a member function getDiscordApi() on null

    Spoiler anzeigen

    Sat, 04 Mar 2023 20:48:29 +0000

    Message: Call to a member function getDiscordApi() on null

    PHP version: 8.1.16

    WoltLab Suite version: 5.5.9

    Request URI: POST /index.php?ajax-proxy/&t=0c8f7d639e97aee3dd0b766cc7811dd801ba39a74e9e83963b019d28e5b1627b-BJh5rY3KcqChIKrkoGsvCQ==

    Referrer: ****

    User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/110.0

    Peak Memory Usage: 7405928/536870912

    ======

    Error Class: Error

    Error Message: Call to a member function getDiscordApi() on null

    Error Code: 0

    File: /var/www/html/lib/system/discord/DiscordSync.class.php (110)

    Extra Information: -

    Stack Trace: [{"file":"\/var\/www\/html\/lib\/system\/cronjob\/DiscordRefreshOauth2Cronjob.class.php","line":25,"function":"getAnyDiscordApi","class":"wcf\\system\\discord\\DiscordSync","type":"->","args":[]},{"file":"\/var\/www\/html\/lib\/system\/cronjob\/CronjobScheduler.class.php","line":272,"function":"execute","class":"wcf\\system\\cronjob\\DiscordRefreshOauth2Cronjob","type":"->","args":[]},{"file":"\/var\/www\/html\/lib\/system\/cronjob\/CronjobScheduler.class.php","line":75,"function":"executeCronjob","class":"wcf\\system\\cronjob\\CronjobScheduler","type":"->","args":[]},{"file":"\/var\/www\/html\/lib\/data\/cronjob\/CronjobAction.class.php","line":240,"function":"executeCronjobs","class":"wcf\\system\\cronjob\\CronjobScheduler","type":"->","args":[]},{"file":"\/var\/www\/html\/lib\/data\/AbstractDatabaseObjectAction.class.php","line":216,"function":"executeCronjobs","class":"wcf\\data\\cronjob\\CronjobAction","type":"->","args":[]},{"file":"\/var\/www\/html\/lib\/action\/AJAXProxyAction.class.php","line":92,"function":"executeAction","class":"wcf\\data\\AbstractDatabaseObjectAction","type":"->","args":[]},{"file":"\/var\/www\/html\/lib\/action\/AJAXInvokeAction.class.php","line":111,"function":"invoke","class":"wcf\\action\\AJAXProxyAction","type":"->","args":[]},{"file":"\/var\/www\/html\/lib\/action\/AbstractAction.class.php","line":57,"function":"execute","class":"wcf\\action\\AJAXInvokeAction","type":"->","args":[]},{"file":"\/var\/www\/html\/lib\/action\/AJAXInvokeAction.class.php","line":65,"function":"__run","class":"wcf\\action\\AbstractAction","type":"->","args":[]},{"file":"\/var\/www\/html\/lib\/system\/request\/Request.class.php","line":90,"function":"__run","class":"wcf\\action\\AJAXInvokeAction","type":"->","args":[]},{"file":"\/var\/www\/html\/lib\/system\/request\/RequestHandler.class.php","line":107,"function":"execute","class":"wcf\\system\\request\\Request","type":"->","args":[]},{"file":"\/var\/www\/html\/index.php","line":11,"function":"handle","class":"wcf\\system\\request\\RequestHandler","type":"->","args":[]}]

    Der Fehler wird ausgespuckt wenn ich den Cronjob Aktualisiert die Discord OAuth2 Tokens manuell ausführen will oder er automatisch gestartet wird.

    Liebe Grüße

    Phil

  • Dieses Thema enthält 3 weitere Beiträge, die nur für registrierte Benutzer sichtbar sind, bitte registriere dich oder melde dich an um diese lesen zu können.