- Affected Version
- WoltLab Suite 5.5
Hello fellow woltlabbers. I just freshly installed Woltlab and am getting the following error when trying to access Filebase and Gallery.
QuoteDisplay MoreAn error has occurred while trying to handle your request and execution has been terminated. Please forward the above error code to the site administrator.
The error code can be used by an administrator to lookup the full error message in the Administration Control Panel via “Logs » Errors”. In addition the error has been written to the log file located at */log/2022-07-20.txt and can be accessed with an FTP program or similar.
Notice: The error code was randomly generated and has no use beyond looking up the full message.
System Information
PHP Version:
8.1.8
WoltLab Suite Core:
5.5.2
Peak Memory Usage:
5.375/128 MiB
Request URI:
GET /filebase/
Referrer:
https://www.gameofclassics.com/
User Agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36
Error
Error Type:
wcf\system\exception\ErrorException
Error Message:
round(): Passing null to parameter #1 ($num) of type int|float is deprecated
File:
*/lib/system/WCF.class.php (341)
Template Context:
<div class="boxContent">
<ul class="inlineList dotSeparated">
<li><?=wcf\util\StringUtil::formatNumeric($this->v['stats']['authors']);?> Author<?php if ($this->v['stats']['authors'] != 1) { ?>s<?php } ?></li>
<li><?=wcf\util\StringUtil::formatNumeric($this->v['stats']['files']);?> File<?php if ($this->v['stats']['files'] != 1) { ?>s<?php } ?></li>
====> <li><?=$this->pluginObjects['wcf\system\template\plugin\FilesizeModifierTemplatePlugin']->execute([$this->v['stats']['size']], $this);?> Total File Size</li>
<li><?=wcf\util\StringUtil::formatNumeric($this->v['stats']['downloads']);?> Download<?php if ($this->v['stats']['downloads'] != 1) { ?>s<?php } ?> (<?=wcf\util\StringUtil::formatNumeric($this->v['stats']['downloadsPerDay']);?> Download<?php if ($this->v['stats']['downloadsPerDay'] != 1) { ?>s<?php } ?> per Day)</li>
<li><?=wcf\util\StringUtil::formatNumeric($this->v['stats']['comments']);?> Comment<?php if ($this->v['stats']['comments'] != 1) { ?>s<?php } ?></li>
</ul>
</div>
</section>
<?php } ?>
Stack Trace:
#0 */../../../../[internal function] (?):
wcf\system\WCF::handleError(8192, 'round(): Passing null to parameter #1 ($num) of type int|float is deprecated', '*/lib/util/FileUtil.class.php', 392)
#1 */lib/util/FileUtil.class.php (392):
round(null, 2)
#2 */lib/system/template/plugin/FilesizeModifierTemplatePlugin.class.php (27):
wcf\util\FileUtil::formatFilesize(null)
#3 */templates/compiled/0_filebase_2_fileList.php (2367):
wcf\system\template\plugin\FilesizeModifierTemplatePlugin->execute([ 0 => ], wcf\system\template\TemplateEngine)
#4 */lib/system/template/TemplateEngine.class.php (350):
include('*/templates/compiled/0_filebase_2_fileList.php')
#5 */lib/page/AbstractPage.class.php (390):
wcf\system\template\TemplateEngine->display('fileList', 'filebase')
#6 */lib/page/AbstractPage.class.php (135):
wcf\page\AbstractPage->show()
#7 */lib/system/request/Request.class.php (90):
wcf\page\AbstractPage->__run()
#8 */lib/system/request/RequestHandler.class.php (107):
wcf\system\request\Request->execute()
#9 */filebase/index.php (11):
wcf\system\request\RequestHandler->handle('filebase')
Any clues to what could be causing this?