HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

The renderExcerpt FUNCTION give a crash

SophiaSophia New
edited February 2022 in Vanilla 3.x Help

release: Vanilla 2021.011

when click on the Comments in the profile page of certain users, the code cause an error and display "Something as gone wrong".

The file that cause the error is profilecomments.php

at row 27 there's:

<div class="Message">

<?php echo htmlspecialchars(Gdn::formatService()->renderExcerpt ($Comment->Body, $Comment->Format)); ?>

</div>

The debug return this message about the paramaters passed to renderExcerpt: "must be of the type string, null given"

In fact, the users have comments that can be read also doing a search by user.

the tip can be a way to replace the NULL when given (perhaps due a database error) with an empity string.

Someone can help givin' the code, please?

Comments

  • As far as I know, that version wasn't working flawlessly for most users. The last reliably usable version has been 2021.009

Sign In or Register to comment.