- Posts: 9
- Thank you received: 3
Kunena 7.0.6 & Kunena 6.4.12 – Security Updates Released
The Kunena team has announce the arrival of Kunena 7.0.6 [K 7.0.6] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0.
The Kunena team is also pleased to announce the twelfth version of Kunena 6.4, a native Joomla extension for Joomla! 5.0, 5.1, 5.2, 5.3, 5.4 and 6.0.
Solved StripBBCodeFunction
i have this error 0 - Kunena\Forum\Libraries\Html\KunenaParser::stripBBCode(): Argument #1 ($txt) must be of type string, null given, called in
When i migrate to joomla 4.3.1 and kunena 6.1.1
the problem is this line of code
$first = KunenaParser::stripBBCode($this->topic->first_post_message, 160); Seems that first param is null
stripBBCode function in
How can i solve it?
Thank you
Please Log in or Create an account to join the conversation.
Can-you please enable debug mode like explained here : www.kunena.org/docs/en/troubleshooting/i...er-errors-and-kunena and then you should have a more detailled error. Can-you please add it in your answer ?
I don't provide support by PM, because this can be useful for someone else.
Please Log in or Create an account to join the conversation.
Call stack
# Function Location
1 () JROOT\libraries\kunena\src\Html\:264
2 Kunena\Forum\Libraries\Html\KunenaParser::stripBBCode() JROOT\components\com_kunena\src\Controller\Topic\Item\:585
3 Kunena\Forum\Site\Controller\Topic\Item\TopicItemDisplay->prepareDocument() JROOT\libraries\kunena\src\Controller\:283
4 Kunena\Forum\Libraries\Controller\KunenaControllerDisplay->after() JROOT\components\com_kunena\src\Controller\Topic\Item\:515
5 Kunena\Forum\Site\Controller\Topic\Item\TopicItemDisplay->after() JROOT\libraries\kunena\src\Controller\:162
6 Kunena\Forum\Libraries\Controller\KunenaControllerDisplay->execute() JROOT\libraries\kunena\src\Layout\:127
7 Kunena\Forum\Libraries\Layout\KunenaPage->execute() JROOT\components\com_kunena\template\nts_kay\pages\topic\default\:18
8 include() JROOT\libraries\kunena\src\Layout\:182
9 Kunena\Forum\Libraries\Layout\KunenaBase->render() JROOT\libraries\kunena\src\Layout\:165
10 Kunena\Forum\Libraries\Layout\KunenaLayout->render() JROOT\libraries\kunena\src\Controller\Application\:135
11 Kunena\Forum\Libraries\Controller\Application\Display->execute() JROOT\components\com_kunena\src\Dispatcher\:100
12 Kunena\Forum\Site\Dispatcher\Dispatcher->dispatch() JROOT\libraries\src\Component\:361
13 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT\libraries\src\Application\:208
14 Joomla\CMS\Application\SiteApplication->dispatch() JROOT\libraries\src\Application\:249
15 Joomla\CMS\Application\SiteApplication->doExecute() JROOT\libraries\src\Application\:293
16 Joomla\CMS\Application\CMSApplication->execute() JROOT\includes\:61
17 require_once() JROOT\:32
Please Log in or Create an account to join the conversation.
I have just made this fix, can-you tell me if ok : github.com/Kunena/Kunena-Forum/commit/47...9bfc4c5257df10f20a60 ?
I don't provide support by PM, because this can be useful for someone else.
Please Log in or Create an account to join the conversation.
ok solutions seems good but give me $first does not exists. Can i set $first = "" before this
$first = "";
if (!empty($this->topic->first_post_message))
{
$first = KunenaParser::stripBBCode($this->topic->first_post_message, 160);
$first = $this->topic->subject;
}
Thank you
Andrea
Please Log in or Create an account to join the conversation.
yes i have forgot that, thanks to have checked it
I don't provide support by PM, because this can be useful for someone else.
Please Log in or Create an account to join the conversation.