Actions

Difference between revisions of "Error notice using search"

From Joomla! Documentation

(Created page with "=== Issue === When making a search within the search module, the next notice appears: <pre> Notice: Trying to get property of non-object in /path/to/joomla/plugins/search/content...")
 
Line 6: Line 6:
  
 
=== Fix ===
 
=== Fix ===
You have to replace in plugins/search/content/content.php line 234 with the following line:
 
 
<pre>
 
<pre>
 +
 +
 +
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 : '';
 
$itemid = isset($item->id) ? '&Itemid='.$item->id : '';
 +
Save
 +
 
</pre>
 
</pre>
  

Revision as of 15:51, 8 March 2012

Issue

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



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