Kunena 6.2.6 released

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

The error code HTTP 500 Internal Server Error is a general-purpose message this indicates a general error in a web application. Please note that there is no general solution for this general error. You should first read HTTP 500 Internal Server Error before posting in this category.

K 2.0 support will cease on 31 August 2013 and this section of the forum will be closed and archived after that time and no further questions will be answered about this version.

If you are having problems then, for your own benefit, it would save us all a lot of time if you would kindly post your configuration report when you ask for help from this forum. If you do not post your configuration report we will not ask you for it but you will probably not get your problem solved, either.

Question 500 Internal Server Error

More
11 years 9 months ago #1 by foxter
I have joomla 2.5.4,theme purity II, and last kunena 2.0.1

I have this error:

500 Internal Server Error
Fatal Error was detected!

Fatal Error: Call to a member function authorisedLevels() on a non-object in plugins/kunena/joomla/access.php on line 199

The error was detected in the Kunena - Joomla Plugin.

Report Configuration Settings

This message contains confidential information

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

Legacy mode: Disabled | Joomla! SEF: Enabled | Joomla! SEF rewrite: Disabled | FTP layer: Disabled |

This message contains confidential information
htaccess: Exists | PHP environment: Max execution time: 120 seconds | Max execution memory: 1024M | Max file upload: 2M

Kunena menu details:

Warning: Spoiler!

Joomla default template details : ja_purity_ii | author: JoomlArt.com | version: 2.5.0 | creationdate: February 2012

Kunena default template details : Blue Eagle 2.0 | author: Kunena Team | version: 2.0.1 | creationdate: 2012-07-07

Kunena version detailed: Kunena 2.0.1 | 2012-07-07 [ Balozi ]
| Kunena detailed configuration:

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

Third-party components: UddeIM 2.7

Third-party SEF components: None

Plugins: Content - Kunena Discuss 2.0.1

Modules: Kunena Latest 2.0.1 | Kunena Stats 2.0.1 | Kunena Login 1.7.2


How do I fix this?

BR
The topic has been locked.
More
11 years 9 months ago #2 by xillibit
Replied by xillibit on topic 500 Internal Server Error
Hello,

Start by upgrading Joomla! to 2.5.6, upgrade the kunena login module to 2.0.1 version and if it's possible disable safe_mode.

I don't provide support by PM, because this can be useful for someone else.
The following user(s) said Thank You: foxter
The topic has been locked.
More
11 years 9 months ago #3 by foxter
Replied by foxter on topic 500 Internal Server Error
ok,I try.
BR
The topic has been locked.
More
11 years 9 months ago #4 by foxter
Replied by foxter on topic 500 Internal Server Error
Hello,
I updated joomla to 2.5.6 and kunena login 2.0.1. Safe mod is ON


Fatal Error was detected!

Fatal Error: Call to a member function authorisedLevels() on a non-object in plugins/kunena/joomla/access.php on line 199

The error was detected in the Kunena - Joomla Plugin.

For support click here: Kunena Support

Report Configuration Settings

This message contains confidential information

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

Legacy mode: Disabled | Joomla! SEF: Enabled | Joomla! SEF rewrite: Disabled | FTP layer: Disabled |

This message contains confidential information
htaccess: Exists | PHP environment: Max execution time: 120 seconds | Max execution memory: 1024M | Max file upload: 2M

Kunena menu details:

Warning: Spoiler!

Joomla default template details : ja_purity_ii | author: JoomlArt.com | version: 2.5.0 | creationdate: February 2012

Kunena default template details : Blue Eagle 2.0 | author: Kunena Team | version: 2.0.1 | creationdate: 2012-07-07

Kunena version detailed: Kunena 2.0.1 | 2012-07-07 [ Balozi ]
| Kunena detailed configuration:

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

Third-party components: UddeIM 2.7

Third-party SEF components: None

Plugins: Content - Kunena Discuss 2.0.1

Modules: Kunena Latest 2.0.1 | Kunena Stats 2.0.1 | Kunena Login 2.0.1

The topic has been locked.
More
11 years 9 months ago #5 by foxter
Replied by foxter on topic 500 Internal Server Error
After clearing recent history and removing cookies in my firefox is the temporary ok.

How do I fix this?

BR
The topic has been locked.
More
11 years 9 months ago #6 by xillibit
Replied by xillibit on topic 500 Internal Server Error
I need to investigate more deeper

I don't provide support by PM, because this can be useful for someone else.
The topic has been locked.
More
11 years 9 months ago #7 by thepiston
Replied by thepiston on topic 500 Internal Server Error
i had same issue. happened when I was logged out. i logged in and it was fine. logged out and it was fine. not sure what that means but thought i'd share.
The topic has been locked.
More
11 years 9 months ago #8 by Matias
Replied by Matias on topic 500 Internal Server Error
I think I found the issue from Joomla! 2.5.

Here's our bug report from it (need to find workaround for Kunena):
github.com/Kunena/Kunena-2.0/issues/976
The topic has been locked.
More
11 years 9 months ago #9 by Matias
Replied by Matias on topic 500 Internal Server Error
Issue can be fixed by replacing plugins/kunena/joomla/access.php on lines 196-197:
Code:
public function authoriseCategories($userid, array &$categories) { $user = JFactory::getUser($userid);


with the following code:
Code:
public function authoriseCategories($userid, array &$categories) { $user = JFactory::getUser($userid); // WORKAROUND: Joomla! 2.5.6 bug returning NULL if $userid = 0 and session is corrupted. if (!($user instanceof JUser)) { $user = JUser::getInstance(); }

After that Kunena doesn't crash on fatal error, but there might be something else going on, like corrupted session, which could cause other issues.
The following user(s) said Thank You: foxter
The topic has been locked.
More
11 years 9 months ago #10 by foxter
Replied by foxter on topic 500 Internal Server Error
ok, I add one more line :P
Code:
public function authoriseCategories($userid, array &$categories) { $user = JFactory::getUser($userid); if (!($user instanceof JUser)) { $user = JUser::getInstance(); } if(is_null($user)){jimport('joomla.session.session');JSession::destroy();}/*add for sure*/ $accesslevels = (array) $user->authorisedLevels(); $groups_r = (array) JAccess::getGroupsByUser($user->id, true); $groups = (array) JAccess::getGroupsByUser($user->id, false);
The topic has been locked.
Time to create page: 0.429 seconds