×
Kunena 6.0.6 & Kunena 5.2.13 & blue eagle5 1.6.8 released as security release (28 Nov 2022)

The Kunena team has announce the arrival of Kunena 6.0.6 [K 6.0.6] which is now available for download as a native Joomla extension for J! 4.2.x. This is a security release.

× 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
10 years 7 months ago - 10 years 7 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: 10 years 7 months ago by ggpanta.

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

More
10 years 7 months ago - 10 years 7 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: 10 years 7 months ago by Matias.

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

More
10 years 7 months ago - 10 years 7 months ago #3 by ggpanta

Rendering Error in layout Message/Item: array_keys(): Argument #1 ($array) must be of type array, null given in /home/dafl6903/public_html/plugins/content/geshi/geshi/geshi.php on line 2023
Layout was rendered in /home/dafl6903/public_html/components/com_kunena/template/crypsis/layouts/topic/item/message/default.php on line 26

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

More
10 years 7 months ago - 10 years 7 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: 10 years 7 months ago by Matias.

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

More
10 years 7 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
10 years 7 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.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Time to create page: 0.267 seconds