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

More
2 years 11 months ago - 2 years 11 months ago #228489 by alemar
StripBBCodeFunction was created by alemar
Hi at all,

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




 
Last edit: 2 years 11 months ago by alemar. Reason: d

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago #228501 by xillibit
Replied by xillibit on topic StripBBCodeFunction
Hello,

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.

More
2 years 11 months ago - 2 years 11 months ago #228511 by alemar
Replied by alemar on topic StripBBCodeFunction
Thank you for response. I attach the stacktrace

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


                                                       
Last edit: 2 years 11 months ago by alemar.
The following user(s) said Thank You: xillibit

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago #228513 by xillibit
Replied by xillibit on topic StripBBCodeFunction
Hello,

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.

More
2 years 11 months ago #228518 by alemar
Replied by alemar on topic StripBBCodeFunction
Hi,
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



 
The following user(s) said Thank You: xillibit

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago #228519 by xillibit
Replied by xillibit on topic StripBBCodeFunction
Hi,

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.

Time to create page: 0.308 seconds