- Posts: 9
- Thank you received: 3
Kunena 7.0.8 Released
The Kunena team has announce the arrival of Kunena 7.0.8 [K 7.0.8] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x./6.1.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
Solved StripBBCodeFunction
3 years 1 month ago - 3 years 1 month 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
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: 3 years 1 month ago by alemar. Reason: d
Please Log in or Create an account to join the conversation.
3 years 1 month ago #228501
by xillibit
I don't provide support by PM, because this can be useful for someone else.
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 ?
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.
3 years 1 month ago - 3 years 1 month 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
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: 3 years 1 month ago by alemar.
The following user(s) said Thank You: xillibit
Please Log in or Create an account to join the conversation.
3 years 1 month ago #228513
by xillibit
I don't provide support by PM, because this can be useful for someone else.
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 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.
3 years 1 month 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
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.
3 years 1 month ago #228519
by xillibit
I don't provide support by PM, because this can be useful for someone else.
Replied by xillibit on topic StripBBCodeFunction
Hi,
yes i have forgot that, thanks to have checked it
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.238 seconds