Kunena 6.2.5 & module Kunena Latest 6.0.7 released

The Kunena team has announce the arrival of Kunena 6.2.5 [K 6.2.5] which is now available for download as a native Joomla extension for J! 4.3.x/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.

Question HTTP 500 for any non registered user

More
11 years 11 months ago - 11 years 11 months ago #1 by ggpanta
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: Enabled | FTP layer: Disabled |htaccess: Missing | PHP environment: Max execution time: 30 seconds | Max execution memory: 128M | Max file upload: 10M

Kunena menu details:
Warning: Spoiler!

Joomla default template details : rt_ionosphere | author: RocketTheme, LLC | version: 1.3 | creationdate: April 10, 2012

Kunena default template details : Yt Kunena | author: SmartAddons.com | version: 1.1 | creationdate: 2012-02-11

Kunena version detailled: Installed version: 1.7.2 | Build: 5215 | Version name: Omega | Kunena detailled configuration:

Warning: Spoiler!

Third-party components: AlphaUserPoints 1.7.2 | Jomsocial 2.6.1 | UddeIm 2.7

Third-party SEF components: sh404sef: The file doesn't exist sh404sef.xml !

Plugins: System - Mootools Upgrade: Disabled | System - Mootools12: Disabled | Kunena Search 1.7.2 | My Kunena Forum Menu 1.7.1 | My Kunena Forum Posts 1.7.1 | Kunena Groups 1.7.1

Modules: Kunena Latest 1.7.2 | Kunena Stats 1.7.2 | Kunena Search 1.7.2


Software Stack Versions:
Joomla 2.5.4, Kunena 1.7.2,

php -v
PHP 5.3.2 (cli) (built: Jun 25 2011 08:26:57)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

nginx -v
nginx version: nginx/0.8.54

mysql --version
mysql Ver 14.14 Distrib 5.1.52, for unknown-linux-gnu (x86_64) using readline 5.1

cat /etc/redhat-release
CentOS Linux release 6.0 (Final)

Web Server error log:
2012/04/19 09:55:29 [error] 22104#0: *809 FastCGI sent in stderr: "PHP Fatal error: Call to a member function authorisedLevels() on a non-object in /usr/share/nginx/html/administrator/components/com_kunena/libraries/integration/joomla16/access.php on line 57" while reading response header from upstream, client: IP.IP.IP.IP, server: _, request: "GET /forum/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "hostname.tld", referrer: " hostname.tld/ "


Whenever the option under the Kunena Configuration -> Security -> Registered Users Only is set to no, all non registered users get a 500 responce and fastcgi throws this error in the nginx logs. All registered users get the forum properly when they are logged in.
If I set it to yes then they get the normal message to login.

Any help would be appreciated.

Regards
Last edit: 11 years 11 months ago by ggpanta.

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

More
11 years 11 months ago - 11 years 11 months ago #2 by Matias
That missing object comes from JFactory::getUser($userid) -- the object should always be present. So this looks like Joomla bug.

Can you add some debugging output on that line:

What does this line output to your screen?
print_r(JFactory::getSession()->get('user'));

You may want to die(); after this in order to see the output.
Last edit: 11 years 11 months ago by Matias.

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

More
11 years 11 months ago - 11 years 11 months ago #3 by ggpanta
I am also getting this one, again an issue with the user id, but jom works fine since it actually gets the user, I am not sure but this is probably due to the kunena plg for jom.:
Code:
2012/04/19 20:30:47 [error] 22103#0: *1714 FastCGI sent in stderr: "PHP Notice: Trying to get property of non-object in /usr/share/nginx/html/libraries/joomla/factory.php on line 223 PHP Notice: Trying to get property of non-object in /usr/share/nginx/html/components/com_community/libraries/user.php on line 50" while reading response header from upstream, client: IP.IP.IP.IP, server: _, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "hostname.tld"

Unfortunatelly fcgi dies before the debug message is shown. If I set "registered users only" to no I get this which seems propper:
Code:
JUser Object ( [isRoot:protected] => 1 [id] => 42 [name] => Super User [username] => root [email] => [email protected] [password] => Hash-Here [password_clear] => [usertype] => deprecated [block] => 0 [sendEmail] => 1 [registerDate] => 2012-04-18 18:07:35 [lastvisitDate] => 2012-04-19 17:27:40 [activation] => 0 [params] => {"update_cache_list":1} [groups] => Array ( [8] => 8 ) [guest] => 0 [_params:protected] => JRegistry Object ( [data:protected] => stdClass Object ( [update_cache_list] => 1 ) ) [_authGroups:protected] => Array ( [0] => 1 [1] => 8 ) [_authLevels:protected] => Array ( [0] => 1 [1] => 1 ) [_authActions:protected] => [_errorMsg:protected] => [_errors:protected] => Array ( ) [aid] => 0 )

--
Edit:
I am using the default theme now just to make sure.
Also all mods/plugins in the site for kunena report that they cant find kunena 1.7 installed.
Last edit: 11 years 11 months ago by ggpanta.

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

More
11 years 11 months ago - 11 years 11 months ago #4 by Matias
Looks like JomSocial doesn't have the user object either..

In the last I proposed adding die(); to the code if you couldn't see the output. :)

So add this just before line 57, where Kunena dies:

print_r(JFactory::getSession()->get('user')); die();

Second question: Modules cannot see Kunena unless you have 'System - Kunena' plugin enabled.
Last edit: 11 years 11 months ago by Matias.

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

More
11 years 11 months ago #5 by ggpanta
This is the only thing echoed:
Notice: Trying to get property of non-object in /usr/share/nginx/html/libraries/joomla/factory.php on line 223

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

More
11 years 11 months ago #6 by Matias
That basically means that JFactory::getSession()->get('user') returns NULL.

Can you check if this fix helps:
www.kunena.org/forum/168-K-17-Support/12...-Kunena-1-7-2#122860

It looks like something happens in the session that causes user object to become null. If the above fix doesn't help, check which user/system plugins you have enabled and try if disabling some of them fixes the issue.

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

Time to create page: 0.415 seconds