Implicit conversion from float 885.0645359557468 to int loses precision

  • Affected Version
    WoltLab Suite 6.0
    Affected App
    WoltLab Suite Forum

    Hallo,

    ich habe kürzlich auf Suite 6 aktualisiert.

    In den Fehlermeldungen erscheint nun ab und zu diese Fehlermeldung:

    Implicit conversion from float XXX to int loses precision

    XXX hat immer verschiedene Werte - Beispiel im Themen-Namen.

    Kann ich da was gegen tun?

    Hier mal die komplette Fehlermeldung:

    Sun, 11 Feb 2024 11:51:43 +0000
    Message: Implicit conversion from float 816.7895632444696 to int loses precision
    PHP version: 8.1.22-he.0
    WoltLab Suite version: 6.0.8
    Request URI: POST /wcf/index.php?ajax-upload/&t=a5ccc9302ca8fbdbf638599dab540251291334df11be5aecbacbff969990b22e-j17gKDPoNstlo/QkuRDpXA==
    Referrer: https://www.board.rocket3.org/index.php?thread-add/51/
    User Agent: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Mobile Safari/537.36
    Peak Memory Usage: 13934840/402653184
    ======
    Error Class: wcf\system\exception\ErrorException
    Error Message: Implicit conversion from float 816.7895632444696 to int loses precision
    Error Code: 0
    File: /is/htdocs/wp1150812_DF2ZWG39HE/www/rocket/wbboard/wcf/lib/system/WCF.class.php (368)
    Extra Information: -
    Stack Trace: [{"function":"handleError","class":"wcf\\system\\WCF","type":"::","args":[8192,"Implicit conversion from float 816.7895632444696 to int loses precision","\/is\/htdocs\/wp1150812_DF2ZWG39HE\/www\/rocket\/wbboard\/wcf\/lib\/system\/image\/adapter\/GDImageAdapter.class.php",223],"file":"[internal function]","line":"?"},{"file":"\/is\/htdocs\/wp1150812_DF2ZWG39HE\/www\/rocket\/wbboard\/wcf\/lib\/system\/image\/adapter\/GDImageAdapter.class.php","line":223,"function":"imagecreatetruecolor","args":[1200,816.7895632444696047969046048820018768310546875],"class":"","type":""},{"file":"\/is\/htdocs\/wp1150812_DF2ZWG39HE\/www\/rocket\/wbboard\/wcf\/lib\/system\/image\/adapter\/ImageAdapter.class.php","line":124,"function":"resize","class":"wcf\\system\\image\\adapter\\GDImageAdapter","type":"->","args":[0,0,1763,1200,1200,816.7895632444696047969046048820018768310546875]},{"file":"\/is\/htdocs\/wp1150812_DF2ZWG39HE\/www\/rocket\/wbboard\/wcf\/lib\/system\/event\/listener\/ScaleAttachmentListener.class.php","line":52,"function":"resize","class":"wcf\\system\\image\\adapter\\ImageAdapter","type":"->","args":[0,0,1763,1200,1200,816.7895632444696047969046048820018768310546875]},{"file":"\/is\/htdocs\/wp1150812_DF2ZWG39HE\/www\/rocket\/wbboard\/wcf\/lib\/system\/event\/listener\/ScaleAttachmentListener.class.php","line":32,"function":"rebuild","class":"wcf\\system\\event\\listener\\ScaleAttachmentListener","type":"->","args":["wcf\\data\\attachment\\Attachment"]},{"file":"\/is\/htdocs\/wp1150812_DF2ZWG39HE\/www\/rocket\/wbboard\/wcf\/lib\/system\/event\/EventHandler.class.php","line":162,"function":"execute","class":"wcf\\system\\event\\listener\\ScaleAttachmentListener","type":"->","args":["wcf\\data\\attachment\\AttachmentAction","wcf\\data\\attachment\\AttachmentAction","finalizeAction",[]]},{"file":"\/is\/htdocs\/wp1150812_DF2ZWG39HE\/www\/rocket\/wbboard\/wcf\/lib\/system\/event\/EventHandler.class.php","line":115,"function":"executeListeners","class":"wcf\\system\\event\\EventHandler","type":"->","args":[{"wcf\\system\\event\\listener\\ScaleAttachmentListener":"[redacted]"},"wcf\\data\\attachment\\AttachmentAction","wcf\\data\\attachment\\AttachmentAction","finalizeAction",[]]},{"file":"\/is\/htdocs\/wp1150812_DF2ZWG39HE\/www\/rocket\/wbboard\/wcf\/lib\/system\/event\/EventHandler.class.php","line":204,"function":"executeInheritedActions","class":"wcf\\system\\event\\EventHandler","type":"->","args":["wcf\\data\\attachment\\AttachmentAction","finalizeAction","wcf\\data\\attachment\\AttachmentAction","finalizeAction@wcf\\data\\attachment\\AttachmentAction",[]]},{"file":"\/is\/htdocs\/wp1150812_DF2ZWG39HE\/www\/rocket\/wbboard\/wcf\/lib\/data\/AbstractDatabaseObjectAction.class.php","line":223,"function":"fireAction","class":"wcf\\system\\event\\EventHandler","type":"->","args":["wcf\\data\\attachment\\AttachmentAction","finalizeAction"]},{"file":"\/is\/htdocs\/wp1150812_DF2ZWG39HE\/www\/rocket\/wbboard\/wcf\/lib\/action\/AJAXProxyAction.class.php","line":92,"function":"executeAction","class":"wcf\\data\\AbstractDatabaseObjectAction","type":"->","args":[]},{"file":"\/is\/htdocs\/wp1150812_DF2ZWG39HE\/www\/rocket\/wbboard\/wcf\/lib\/action\/AJAXInvokeAction.class.php","line":110,"function":"invoke","class":"wcf\\action\\AJAXProxyAction","type":"->","args":[]},{"file":"\/is\/htdocs\/wp1150812_DF2ZWG39HE\/www\/rocket\/wbboard\/wcf\/lib\/action\/AbstractAction.class.php","line":56,"function":"execute","class":"wcf\\action\\AJAXInvokeAction","type":"->","args":[]},{"file":"\/is\/htdocs\/wp1150812_DF2ZWG39HE\/www\/rocket\/wbboard\/wcf\/lib\/action\/AJAXInvokeAction.class.php","line":64,"function":"__run","class":"wcf\\action\\AbstractAction","type":"->","args":[]},{"file":"\/is\/htdocs\/wp1150812_DF2ZWG39HE\/www\/rocket\/wbboard\/wcf\/lib\/system\/request\/Request.class.php","line":57,"function":"__run","class":"wcf\\action\\AJAXInvokeAction","type":"->","args":[]},{"file":"\/is\/htdocs\/wp1150812_DF2ZWG39HE\/www\/rocket\/wbboard\/wcf\/lib\/http\/middleware\/HandleValinorMappingErrors.class.php","line":35,"function":"handle","class":"wcf\\system\\request\\Request","type":"->","args":["Laminas\\Diactoros\\ServerRequest"]},{"file":"\/is\/htdocs\/wp1150812_DF2ZWG39HE\/www\/rocket\/wbboard\/wcf\/lib\/system\/request\/RequestHandler.class.php","line":147,"function":"process","class":"wcf\\http\\Pipeline","type":"->","args":["Laminas\\Diactoros\\ServerRequest","wcf\\http\\RequestHandlerMiddleware"]},{"file":"\/is\/htdocs\/wp1150812_DF2ZWG39HE\/www\/rocket\/wbboard\/wcf\/index.php","line":10,"function":"handle","class":"wcf\\system\\request\\RequestHandler","type":"->","args":["wcf"]}]

  • Marcel Werk February 19, 2024 at 10:23 AM

    Added the Label Not a bug

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!