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 Infinite loop in libraries/kunena/error.php

More
10 years 6 months ago #173936 by stanimir
Steps to reproduce the issue

Open post that cannot be found. The kunena start executing error.php.

Expected result

libraries/kunena/error.php should not get into cycle.

Actual result

libraries/kunena/error.php should not exhaust the server resources.

System information (as much as possible)

Joomla version: 3.4.8
Kunena version: 4.0.10
Php version: 5.6.19
Database version:

cpsrvd 11.52.2.5
Database client version: libmysql - 5.1.73
PHP extension: mysqli

Additional comments

I have migrated the forum from Joomla 1.5.26 to 3.4.8, kunena 2.0.4 to 4.0.10. Basically, I recreate the tables from old version of kunena and missing fields. It's working properly. But now, the hosting company stops the execution of the script because it's exhausting the server resources. I am waiting for some kind of profiler for error.php file in order to get what exactly cause the cycling.

This message contains confidential information

Database collation check: The collation of your table fields are correct

Joomla! SEF: Disabled | Joomla! SEF rewrite: Disabled | FTP layer: Disabled |

This message contains confidential information
htaccess: Exists | PHP environment: Max execution time: 30 seconds | Max execution memory: 136M | Max file upload: 10M

Kunena menu details:

Warning: Spoiler!

Joomla default template details : fontaine_j3 | author: arrowthemes | version: 2.5.0 | creationdate: July 2012

Kunena default template details : Crypsis | author: Kunena Team | version: 4.0.10 | creationdate: 2016-02-18

Kunena version detailed: Kunena 4.0.10 | 2016-02-18 [ Villavicencio ]
| Kunena detailed configuration:

Warning: Spoiler!
| Kunena integration settings:
Warning: Spoiler!
| Joomla! detailed language files installed:
Warning: Spoiler!

Third-party components: CommunityBuilder 2.0.14 | UddeIM 3.8

Third-party SEF components: None

Plugins: None

Modules: Kunena Latest 3.1.2.1 | Kunena Stats 3.1.2


I have submit the issue here as well - github.com/Kunena/Kunena-Forum/issues/3758

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

More
10 years 6 months ago #173937 by 810
try to recreate menu, this will fix the issue i think

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

More
10 years 6 months ago - 10 years 6 months ago #173941 by stanimir
I have recreated the home menu as well as kunena menu from menu page in the administration. But the issue is still reproducing.

I turn on the debug mode in kunena and this is shown as issue -

Fatal error: Allowed memory size of 142606336 bytes exhausted (tried to allocate 75 bytes) in /home/metalde/public_html/test/libraries/joomla/database/driver/mysqli.php on line 567

I have tried to add more memory but it's taking all resource again. This is an example of url that causes the issue - test.metaldetecting.bg/index.php?option=...&id=11081&Itemid=126 .

When the debug mode is turn off and blank page is shown. Sometime is shown error message 500 Internal Server Error, Please contact the site owner. After a long time of loading.
Last edit: 10 years 6 months ago by stanimir.

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

More
10 years 6 months ago #173944 by xillibit
Hello,

Do-you have an error message if enable debug mode in Joomla! and Kunena configuration panel ?

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
10 years 6 months ago #173945 by stanimir
No, I am getting this error only - Fatal error: Allowed memory size of 142606336 bytes exhausted (tried to allocate 75 bytes) in /home/metalde/public_html/test/libraries/joomla/database/driver/mysqli.php on line 567

After further investigation it turns out that if the Itemid is not in the menu, joomla get into that loop. Do you know how to resolve that?

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

More
10 years 6 months ago - 10 years 6 months ago #173946 by stanimir
I found the problem in Ice Mega Menu - forum.joomla.org/viewtopic.php?f=624&t=672876&view=next

Adding a break in order to avoid looping:

function getCurrentMenuItem()

{

global $mainframe;

$itemId = JRequest::getInt("Itemid",0);

if(!empty($itemId))

{

$db = JFactory::getDBO();

$parent = $itemId;

while($parent >0)

{

$query = "SELECT id,parent_id FROM #__menu WHERE id = ".$parent;

$db->setQuery($query);

$row = $db->loadObject();

if(!empty($row))

{

$parent = $row->parent_id;

if($parent == 1)

{

$itemId = $row->id;

}

}else {
break;
}

}


$this->_currentItemId = $itemId;

}

}
Last edit: 10 years 6 months ago by stanimir.

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

Time to create page: 0.173 seconds