Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    Bug-reports    Topic: error 500 - mod_fcgid: stderr: PHP Notice: Undefined property: stdClass::$access
Pages: [1]   Go Down
  Print  
Author Topic: error 500 - mod_fcgid: stderr: PHP Notice: Undefined property: stdClass::$access  (Read 2968 times)
0 Members and 1 Guest are viewing this topic.
capella
Newbie
*

Karma: 0
Offline Offline

Posts: 46


Email
« on: February 04, 2011, 12:44:50 »

I am moving to ec2 cluster and while deploying site there, i am getting following error in apache. can you please tell me the solution for this?

mod_fcgid: stderr: PHP Notice: Undefined property: stdClass::$access in /home/xxxx/public_html/plugins/content/jcomments.php on line 108
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #1 on: February 13, 2011, 22:54:54 »

This very strange because article's object must have such property. You can remove this notice by replacing in line 108:

Code: (php)
if ($article->access <= $user->get('aid', 0)) {
with
Code: (php)
if (@$article->access <= $user->get('aid', 0)) {

But this modification will hide this notice but will not fix the problem. Actually I do not know why JComments plugin is called with the incomplete object. Any case this code must not produce a 500 error because this is only notice not fatal error. Try to make change I have suggested and write here about results.
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
hkandrew
Newbie
*

Karma: 0
Offline Offline

Posts: 1


Email
« Reply #2 on: May 30, 2011, 16:32:39 »

Dear Support Team,

I like much your component as it's very easy to implement on any Joomla site.
But I'm getting the following similar error in my Apache server log:
PHP Notice:  Undefined property:  stdClass::$state in /home/xxxxx/public_html/plugins/content/jcomments.php on line 102
This same error gets repeated very often in the server log which becomes very annoying, is there any quick solution to this?
Just to note that I'm using Joomla 1.5.22 and JComments 2.2.0.2 [12/09/2010] version.

I'm noticing the above error on 2 of my live sites. Hope you can help me fix it.

Cheers,
Samy
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Bug-reports    Topic: error 500 - mod_fcgid: stderr: PHP Notice: Undefined property: stdClass::$access
 
Jump to: