Notice: Undefined property: stdClass::$checked_out

For Joomla! 1.0 Coding related discussions.
Locked
jasonbash
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Feb 20, 2008 10:42 am
Contact:

Notice: Undefined property: stdClass::$checked_out

Post by jasonbash » Wed Feb 20, 2008 11:07 am

Joomla version: 1.10.13

Hi Folks,

When I try to call the following Joomla class function,
mosCommonHTML::CheckedOutProcessing($row, $i);

I get the following error:
Notice: Undefined property: stdClass::$checked_out

Any ideas anyone?

Thanks!

harro_wasu
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Feb 12, 2009 12:56 am

Re: Notice: Undefined property: stdClass::$checked_out

Post by harro_wasu » Mon Jun 01, 2009 1:30 pm

Hi

Go to Administrators/components/com_fpslideshow/admin.fpslideshow.html.php

Replace linenr: 171

$checked = JHTML::_('grid.checkedout', $row, $i );

with

$checked = JHTML::_('grid.id', $i, $row->id );

Save the file and retry it.

This should solve the problem. It did with me.

Good luck

Harro

yiun
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Fri Nov 26, 2010 1:13 am

Re: Notice: Undefined property: stdClass::$checked_out

Post by yiun » Fri Feb 04, 2011 1:06 am

Alternatively you can add to your component-table the column "checked_out" with e.g. tinyint(11) and the default value "0".

When you get the error "Notice: Undefined property: stdClass::$id in /var/www/joomla/libraries/joomla/html/html/grid.php on line 109" then you have to specify the column-name of the id-column (should has another than "id" e.g. "product_id").

Just change
JHTML::_('grid.checkedout', $row, $i)
to
JHTML::_('grid.checkedout', $row, $i, "product_id")

Best regards
Last edited by ooffick on Fri Feb 04, 2011 9:51 am, edited 1 time in total.
Reason: Mod Note: Removed self promotion. Please read the Forum rules for details.


Locked

Return to “Joomla! 1.0 Coding”