Page 1 of 1

New to PHP with a problem

Posted: Tue Aug 04, 2009 4:53 am
by fallenangel1979
I keep getting this error on a Component for Joomla

PHP Notice: Trying to get property of non-object in E:\ftproot\domain\folder\libraries\joomla\html\html\list.php on line 125

this is the code

$ordering = '<input type="hidden" name="ordering" value="'. $row->ordering .' />'. $text;

has anyone got any ideas as to what is wrong with this?

Re: New to PHP with a problem

Posted: Tue Aug 04, 2009 5:13 am
by jayshields
$row is not an object, and you're trying to retrieve a property from it - like the error says.

Have you modified the code at all? Post the modified lines.

Re: New to PHP with a problem

Posted: Tue Aug 04, 2009 5:26 am
by fallenangel1979
Hi thanks for the reply

i havent modified anything that was the code that came with the install, what woruld i need to change?

Edit - Solved the problem, just removed the "$srow" and sorted some of the quote marks.

Thanks