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 #228520 by alemar
Replied by alemar on topic StripBBCodeFunction
Rendering Error in layout Message/Item: Kunena\Forum\Libraries\Html\KunenaParser::stripBBCode(): Argument #1 ($txt) must be of type string, null given, called in C:\inetpub\wwwroot\webcolf42b\libraries\kunena\src\Layout\C:\inetpub\wwwroot\webcolf42b\libraries\kunena\src\Layout\ on line 329
Layout was rendered in C:\inetpub\wwwroot\webcolf42b\components\com_kunena\template\nts_kay\layouts\topic\item\message\ on line 34this is the error after the modify

Andrea

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

More
2 years 11 months ago #228526 by xillibit
Replied by xillibit on topic StripBBCodeFunction
Did-you have the same error with aurelia template ?

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 #228529 by alemar
Replied by alemar on topic StripBBCodeFunction
HI,
error appears also in aurelia template.

The error below appers in Aurelia Template and NTS Kay Template

Can i report a image screen of error ?
It remove link after post here






Andrea
Last edit: 2 years 11 months ago by alemar.

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

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

Tell me if we this change github.com/Kunena/Kunena-Forum/commit/25...d728bde3d36b1125e032 , it's better ?

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 #228535 by alemar
Replied by alemar on topic StripBBCodeFunction
HI,
i test solution but i stil get the error:Rendering Error in layout Message/Item: Kunena\Forum\Libraries\Html\KunenaParser::stripBBCode(): Argument #1 ($txt) must be of type string, null given, called in C:\inetpub\wwwroot\webcolf42b\libraries\kunena\src\Layout\C:\inetpub\wwwroot\webcolf42b\libraries\kunena\src\Layout\ on line 329
Layout was rendered in C:\inetpub\wwwroot\webcolf42b\components\com_kunena\template\nts_kay\layouts\topic\item\message\ on line 34An error semms here

$title = KunenaParser::stripBBCode($topic->first_post_message, 200, false); on line 329 in KunenaLayoutphp

if i set title = '' its seems ok but i don't know if its ok. In my opinion the point is here

i use ntskay template the bold lines seems to give error

<div class="kmsg-body message-<?php echo $this->message->getState(); ?>">
                <?php echo $this->subLayout('Message/Item')->setProperties($this->getProperties()); ?>
                <?php echo $this->subRequest('Message/Item/Actions')->set('mesid', $this->message->id); ?>

                <?php if ($quick != 2) : ?>
                    <?php echo $this->subLayout('Message/Edit')->set('message', $this->message)
                        ->set('captchaEnabled', $this->captchaEnabled)->setLayout('quickReply'); ?>
                <?php endif; ?>
      </div>

i have edited :
if ($title === null) {
            if ($action instanceof KunenaMessage) {
                $title = '';
                if (!empty($topic->first_post_message))
                {                 
                    $title = KunenaParser::stripBBCode($topic->first_post_message, 200, false);
                }
       

But i don't know if globally it can be good

Thank you

Andrea

 
Last edit: 2 years 11 months ago by alemar.

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

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

I'am not able to reproduce the issue here on kunena.org and neither on my local machine, i will look later i could be in another place

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.389 seconds