Kunena 7.0.4 Released

The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] 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

Solved Upgrade To 5.0.7 Today Crashed My Front End

More
9 years 1 month ago #184776 by Srki94
I think that this is related to the PHP version used on our side:
5.4.45-0+deb7u7 on me currently.
Problematic line :
if (empty(trim($content)))
I'm not PHP developer so I don't know how to fix it though and I don't want to try SO solutions.

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

More
9 years 1 month ago #184777 by Srki94
Solved it thanks to a help from a web programmer friend :

if (version_compare(PHP_VERSION, '5.6.0', '>'))
{
$trimmed=trim($content);

if (empty($trimmed))
{
echo '<div class="alert alert-error">' . JText::_('COM_KUNENA_LIB_BBCODE_MAP_ERROR_CITY_MISSING') . '</div>';

return;
}
}

I'm not saying that that is good or solution, because I don't code in PHP, but it sure did help me to skip waiting for the patch.

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

More
9 years 1 month ago #184778 by diamondisc
Hmm, ok thanks... what do I do with that code?

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

More
9 years 1 month ago - 9 years 1 month ago #184779 by Srki94

diamondisc wrote: Hmm, ok thanks... what do I do with that code?


Don't do anything unless it's burning bellow your legs.
Wait for the developer to respond, if he approves it then try my solution.

Though it does seem that it was the only issue over here, I'm managing my forum since I applied the fix and wrote here. No errors so far.

Anyway, what you need to do with the code is to download the php file mentioned in the error.
Make a copy of it and keep original safe.
Open the copy, modify the code on the line 1475.

There will be the following line :
if (empty(trim($content)))

Change it into :

$trimmed=trim($content);

if (empty($trimmed))

That if block should look like the one I pasted in my previous post.
Save the file, upload it back to the server and overwrite the old one and that's it.

But as I said, wait for the developer to respond. I basically just made the new forum for the first time ever using this extension, so I have nothing to lose even if I mess something up.

Speaking of which, Kunena is great.
I'm so surprised by the available options. I wanted to get phpbb for my forum but this totally removes that need and it looks amazing on my website. Thanks developers ^^
Last edit: 9 years 1 month ago by Srki94.

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

More
9 years 1 month ago #184781 by 810
Ok i have changed it, try now the package on the download page

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

More
9 years 1 month ago #184788 by diamondisc
I somehow missed Kunena's reply earlier that asked me to "try the download again". I did that (now for a third time) and it's working great. Everything is back to normal!

Thanks Kunena!

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

Time to create page: 0.801 seconds