Kunena 6.3.0 released

The Kunena team has announce the arrival of Kunena 6.3.0 [K 6.3.0] in stable which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x/5.1.x. This version addresses most of the issues that were discovered in K 6.2 and issues discovered during the last development stages of K 6.3

Solved PHP 7.0.6 and Kunena 4.0.10 and 5.0b4

More
7 years 11 months ago #1 by GJSchaller
Last night, our host (SiteGround) updated PHP from 7.0.4 to 7.0.6 - when they did, Kunena began giving errors on multiple sites on the same server. Rolling back to PHP 5.6 resolved them, but I wanted to note the issue so it could be addressed.

This was happening on multiple live sites running Kunena 4.0.10, as well as my test site running 5.0b4.

I'll post the logs / errors below.

Geoffrey Schaller
Technical Officer
Knight Realms

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

More
7 years 11 months ago #2 by GJSchaller
[11-May-2016 09:03:10 CST6CDT] PHP Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unknown on line 0

I believe this is the error, it's the only one in php_errorlog

Geoffrey Schaller
Technical Officer
Knight Realms

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

More
7 years 11 months ago #3 by sulpher
Here are more details about this issue:
github.com/Kunena/Kunena-Forum/issues/3934

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

More
7 years 11 months ago #4 by GJSchaller
Sample URL: template.knightrealms.com/community/forums.html

Error: 0 - Call to a member function get() on string

Geoffrey Schaller
Technical Officer
Knight Realms

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

More
7 years 11 months ago - 7 years 11 months ago #5 by Saka
I get the same error on PHP 7.0.6 (Kunena 4.0.10). Worked fine on PHP 7.0.5.

Emir Sakic
www.sakic.net
Last edit: 7 years 11 months ago by Saka.

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

More
7 years 11 months ago - 7 years 11 months ago #6 by Saka
I investigated the issue and it seems that the problem is in libraries/kunena/forum/category/helper.php
On line 805 there is this line:
Code:
$instances = (array) $db->loadObjectList('id', 'KunenaForumCategory');
Normally this should instantiate each row with KunenaForumCategory constructor but in PHP 7.0.6, by some reason, it doesn't. My temporary solution is to do a manual instantiation right below like this:
Code:
foreach ($instances as &$instance) { $instance = new KunenaForumCategory(array('id'=>$instance->id)); $instance->load(); }
Works fine for me after that.

Emir Sakic
www.sakic.net
Last edit: 7 years 11 months ago by Saka.
The following user(s) said Thank You: 810, juliank92, SvenL

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

More
7 years 11 months ago #7 by xillibit
@Sake: it's not a good solution like matias said here : github.com/Kunena/Kunena-Forum/issues/39...suecomment-219026057

So stick on PHP 7.0.5 untill PHP 7.0.7 is released with the fix in it and PHP 5.6.21 has the same bug

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
7 years 11 months ago #8 by Saka
As said, temporary solution that works fine for me until 7.0.7 release (as downgrading to 7.0.5 is too much of a hassle). Nobody said it should be incorporated into the core. :)

Emir Sakic
www.sakic.net

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

Time to create page: 0.519 seconds