Error notice using search
From Joomla! Documentation
(Difference between revisions)
Rajeshblue (Talk | contribs) |
m (heading reduction as for FAQ inclusion DPL test) |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
| − | === Issue === | + | ===Issue=== |
When making a search within the search module, the next notice appears: | When making a search within the search module, the next notice appears: | ||
<pre> | <pre> | ||
| Line 5: | Line 5: | ||
</pre> | </pre> | ||
| − | === Fix === | + | ===Fix=== |
<pre> | <pre> | ||
| − | |||
| − | |||
Go to plugins/search/content/content.php | Go to plugins/search/content/content.php | ||
| Line 17: | Line 15: | ||
$itemid = isset($item->id) ? '&Itemid='.$item->id : ''; | $itemid = isset($item->id) ? '&Itemid='.$item->id : ''; | ||
| + | |||
| + | |||
Save | Save | ||
</pre> | </pre> | ||
| − | == See also == | + | ===See also=== |
* [http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=27853 issue in the tracker] (bug tracker #27853) | * [http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=27853 issue in the tracker] (bug tracker #27853) | ||
| − | [[Category:Version 2.5 FAQ]] | + | <noinclude>[[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]]</noinclude> | ||
Latest revision as of 23:18, 1 September 2012
[edit] 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
[edit] 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
[edit] See also
- issue in the tracker (bug tracker #27853)