Kunena 7.0.11 & Kunena 6.4.16 – Security Updates Released and K7.1 in RC1 2

The Kunena team has announce the arrival of three simultaneous security release : K6.4.16, K7.0.11 and K7.1 RC2. Just a reminder K6.4.16 receives only securities fixes untill end of 2026, so it's advised for users to upgrade to K7.0.11. K7.0.11 is the last release of the K7.0 because it's replaced by K7.1 branch with the stable release in the corner. The translations for K7.1 on crowdin.com/project/kunena-forum-7-1 needs to be checked or improved becasue it has been generated by TM (Translation Machine).

Solved PHP 7.0.6 and Kunena 4.0.10 and 5.0b4

More
10 years 5 months ago #175062 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
10 years 5 months ago #175063 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
10 years 5 months ago #175064 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
10 years 5 months ago #175065 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
10 years 5 months ago - 10 years 5 months ago #175084 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: 10 years 5 months ago by Saka.

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

More
10 years 5 months ago - 10 years 5 months ago #175137 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: 10 years 5 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.

Time to create page: 0.118 seconds