Kunena 6.3.7 Released

The Kunena team has announce the arrival of Kunena 6.3.7 [K 6.3.7] in stable which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x/5.1.x/5.2.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 and issues discovered during the last development stages of K 6.3
Note: Please go to the Kunena Dashboard after an upgrade so that the Kunena database tables are also updated.

Solved Upgrade To 5.0.7 Today Crashed My Front End

More
7 years 8 months ago #1 by diamondisc


Hi all - I'd appreciate any help or tips you might have. I've been running 5.0.6.1 just fine, did an update today and no-errors when updating. Now when I go to my front end to login, I get the attached error. I've run the diagnostics and everything is ok (now... there were two errors initially). Everything seems fine in the back end, no errors at all, but the front end won't work - tried two different logins. Any ideas? Need more info?

Thanks!

-Doug

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

More
7 years 8 months ago #2 by 810
please enable kunena debug on the kunena config.

Then login as admin on the frontend and go to the page where you get the error, you will now see the real error message.

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

More
7 years 8 months ago #3 by diamondisc
Thanks so much!

Yes, now it has the error...

Fatal Error was detected!

The error was detected in the Libraries.

Fatal Error: Can't use function return value in write context in libraries/kunena/bbcode/bbcode.php on line 1473

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

More
7 years 8 months ago #4 by 810
download the package again, and try again

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

More
7 years 8 months ago - 7 years 8 months ago #5 by Srki94
Hi.
I really picked a bad timing.
I installed Kunena for the first time ever and I get exactly the same error that the OP is having, when I access /forum of my website.
Would it be fine to remove all Kunena extensions from the back end and install the previous version?

I'm running 3.6.
Last edit: 7 years 8 months ago by Srki94.

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

More
7 years 8 months ago - 7 years 8 months ago #6 by diamondisc
Yeah, that was the first thing I tried (re-installing), but it didn't work. I tried a 2nd time just now and still the same error.
Last edit: 7 years 8 months ago by diamondisc.

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

More
7 years 8 months ago #7 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
7 years 8 months ago #8 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
7 years 8 months ago #9 by diamondisc
Hmm, ok thanks... what do I do with that code?

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

More
7 years 8 months ago - 7 years 8 months ago #10 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: 7 years 8 months ago by Srki94.

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

Time to create page: 0.381 seconds