- Posts: 7
- Thank you received: 0
Kunena 7.0.4 Released
The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0
Sticky [Resolved] Fatal error: Call to a member function authorisedLevels() on a non-object in /administrator/components/com_kunena/libraries/integration/joomla16/access.php on line 57
- giveortake
-
- Offline
- New Member
-
From the previous post I followed:
"My solution was to put the following PHP code on line 56 to force the Joomla session to restart:
if(is_null($user)){jimport('joomla.session.session');JSession::destroy();}"
It gives:
mod_fcgid: stderr: PHP Notice: Trying to get property of non-object in [path to website's folder]/libraries/joomla/factory.php on line 224
mod_fcgid: stderr: PHP Notice: Undefined property: KunenaAccessJoomla16::$_state in [path to website's folder]/libraries/joomla/session/session.php on line 559
mod_fcgid: stderr: PHP Warning: session_destroy(): Trying to destroy uninitialized session in [path to website's folder]/libraries/joomla/session/session.php on line 576
mod_fcgid: stderr: PHP Fatal error: Call to a member function authorisedLevels() on a non-object in [path to website's folder]/administrator/components/com_kunena/libraries/integration/joomla16/access.php on line 57
Thank you
btw just noticed I posted in the "Archive" I hope it's ok :whistle:
Please Log in or Create an account to join the conversation.
- giveortake
-
- Offline
- New Member
-
- Posts: 7
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- BLaCKie_MoRGaN
-
- Offline
- Junior Member
-
- Posts: 31
- Thank you received: 0
In addition logging in to the backend responds with
You do not have access to the administrator section of this site.
Please Log in or Create an account to join the conversation.
This issue has been a tricky one to identify what's caused the problem for a handful of people, or so it appears, and I don't know if it's a good suggestion or a workable fix to hack the file ../administrator/components/com_kunena/libraries/integration/joomla16/access.php. The reason I don't know is because this issue has only been reported by a handful of people and it either fixed itself (and that doesn't help the developers, does it) or it's really difficult to reproduce the problem. Further, I don't subscribe to hacking unless only as an absolute last resort.giveortake wrote: BTW I just noticed I posted in the "Archive" I hope it's OK :whistle:
Let's revisit the originally-stated cause of the problem and see if these conditions apply to you:
chris_z wrote:
So let's look at the issues here:I found the error occurred after waking my computer from sleep. With the web browser still open to the Kunena "Recent Topics" page I went to reload the page and got the 500 error. I hypothesize this has something to do with trying to reload the page with the original session long expired. Loading a different web browser on my computer, the page loaded with no error.
(1) The problem occurs intermittently.
(2) The problem seems to be time-related. This leads us to suspect that the problem is session-related. Assuming a "standard" Joomla setup, this is my standard response in these cases:
sozzled wrote:
What are your settings for
Turn off server caching and make Global Configuration session lifefime (in minutes) the same as Kunena session lifetime (in seconds). If Kunena session lifetime is 1800 seconds, make Global sessions lifetime = 30 minutes.
- Global Configuration » Server » Cache Settings » Cache
- Global Configuration » Server » Session Settings » Session Lifetime
- Forum Configuration » General » Basic Settings » Session Lifetime
In your case, giveortake, you have Kunena session lifetime is 9600 seconds. This may explain why you're having this issue.
Blue Eagle vs. Crypsis reference guide
Read my blog and
Please Log in or Create an account to join the conversation.
That's much more important but is has nothing to do with Kunena. Logging into your backend is a Joomla matter. Please refer your problem to the Joomla support forum for more advice.BLaCKie_MoRGaN wrote: In addition logging in to the backend responds with
You do not have access to the administrator section of this site.
Blue Eagle vs. Crypsis reference guide
Read my blog and
Please Log in or Create an account to join the conversation.
- giveortake
-
- Offline
- New Member
-
- Posts: 7
- Thank you received: 0
it seemed to fit with the error message.
sozzled wrote: Let's revisit the originally-stated cause of the problem and see if these conditions apply to you:
(1) The problem occurs intermittently.
(2) The problem seems to be time-related. This leads us to suspect that the problem is session-related. Assuming a "standard" Joomla setup, this is my standard response in these cases:
I think that is where my troubles differ: I get the error messages in my logs every single time the forum page is browsed (by guest, user or admin), from clean browser (tested several) or not, even after rebooting the webserver, it looks like the session is not "seen" by kunena at all.I don't have any hack on joomla (from a clean install not an upgrade), and the session handler is joomla's default (database).
sozzled wrote:
What are your settings for
Turn off server caching and make Global Configuration session lifefime (in minutes) the same as Kunena session lifetime (in seconds). If Kunena session lifetime is 1800 seconds, make Global sessions lifetime = 30 minutes.
- Global Configuration » Server » Cache Settings » Cache
- Global Configuration » Server » Session Settings » Session Lifetime
- Forum Configuration » General » Basic Settings » Session Lifetime
In your case, giveortake, you have Kunena session lifetime is 9600 seconds. This may explain why you're having this issue.
I corrected the lifetime to match joomla, thank you for noticing this one. :blush:
I have encountered the errors using a variety of options:
-using APC
-using "file"
-using "xcache"
And also without cache and the system cache plugin disabled.
Following your advice I just disabled all cache again and matched the session time (30 min in joomla 1800 in Kunena), rebooted the server for good measure, fully cleaned my browser cache and displaying the forum page bring up the same errors in the log:
mod_fcgid: stderr: PHP Notice: Trying to get property of non-object in ***/libraries/joomla/factory.php on line 224
mod_fcgid: stderr: PHP Notice: Undefined property: KunenaAccessJoomla16::$_state in ***/libraries/joomla/session/session.php on line 559
mod_fcgid: stderr: PHP Warning: session_destroy(): Trying to destroy uninitialized session in ***/libraries/joomla/session/session.php on line 576
mod_fcgid: stderr: PHP Fatal error: Call to a member function authorisedLevels() on a non-object in ***/administrator/components/com_kunena/libraries/integration/joomla16/access.php on line 57
It must be something else, I am lost.I can PM you the server's details if you need, I am completely stuck.Your help is greatly appreciated, thank you again.
Please Log in or Create an account to join the conversation.