Difference between revisions of "Error notice using search"

From Joomla! Documentation

Line 26: Line 26:
 
[[Category:Version 2.5 FAQ]]
 
[[Category:Version 2.5 FAQ]]
 
[[Category:Version 2.5.1 FAQ]]
 
[[Category:Version 2.5.1 FAQ]]
 +
[[Category:Version 2.5.2 FAQ]]
 +
[[Category:Version 2.5.3 FAQ]]

Revision as of 10:08, 15 March 2012

Issue[edit]

When making a search within the search module, the next notice appears:

Notice: Trying to get property of non-object in /path/to/joomla/plugins/search/content/content.php on line 234

Fix[edit]

Go to  plugins/search/content/content.php 


Search $itemid = isset($item) ? '&Itemid='.$item->id : '';

Replace with the following line:

$itemid = isset($item->id) ? '&Itemid='.$item->id : '';


Save

See also[edit]