Closed (fixed)
Project:
OpenSearch feed
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
25 Dec 2009 at 08:37 UTC
Updated:
8 Jan 2010 at 23:50 UTC
It appears that the modules assumes that search results have all the standard data, like snippet, score, and data. I have to look into if they're optional, but I think they might be. So if you use a core 'user' search or similar, you'll see messages like these:
# Notice: Undefined index: date in opensearch_feed() (line 157 of /home/dave/Projects/www/drupal6dev/sites/all/modules/opensearch/opensearch.pages.inc).
# Notice: Undefined index: score in opensearch_feed() (line 158 of /home/dave/Projects/www/drupal6dev/sites/all/modules/opensearch/opensearch.pages.inc).
# Notice: Undefined variable: items in opensearch_feed() (line 158 of /home/dave/Projects/www/drupal6dev/sites/all/modules/opensearch/opensearch.pages.inc).
# Notice: Undefined index: snippet in opensearch_feed() (line 158 of /home/dave/Projects/www/drupal6dev/sites/all/modules/opensearch/opensearch.pages.inc).
# Notice: Undefined index: pager_total_items in opensearch_feed() (line 162 of /home/dave/Projects/www/drupal6dev/sites/all/modules/opensearch/opensearch.pages.inc).
# Notice: Undefined index: pager_page_array in opensearch_feed() (line 163 of /home/dave/Projects/www/drupal6dev/sites/all/modules/opensearch/opensearch.pages.inc).
Comments
Comment #1
dave reidFixed most of the errors in CVS except for 'date' and 'snippet'.
http://drupal.org/cvs?commit=306428
Comment #2
dave reidAll PHP notices are gone now. Hooray!
Comment #3
avpadernoYippee!!
I will miss the little PHP notices, but I will survive. :-)