Closed (fixed)
Project:
Apache Solr Search
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Sep 2011 at 15:01 UTC
Updated:
24 Oct 2011 at 17:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
nick_vhI tried it out and I did not see any notice disappear nor appear.
Could you please add a working prototype example (written as in content type with certain field) or a screenshot to make sure we don't add unneeded code?
Comment #2
nick_vhMarking as needs work
Comment #3
josh waihi commentedWorks for me! Here are the logs I am currently getting:
This patch fixes all but this one for me:
Comment #4
lazysoundsystem commentedHere's the patch again with an extra check for the remaining error.
Nick_vh - the errors appear if php E_NOTICE errors are turned on (http://randyfay.com/node/76).
Comment #5
pwolanin commentedFor this case, you should use empty(), not isset().
e.g.:
empty() returns TRUE is the variable is not set (or is 0 or FALSE or '' or array()).
Comment #6
lazysoundsystem commentedEdit: missed pwolanin's last comment - rewriting patch now - skip this patch for comment 8.
Comment #7
lazysoundsystem commentedHere it is with pwolanin's improvement included. Thanks! - skip this patch too for comment 8.
Comment #8
lazysoundsystem commentedSorry, one more time with error removed.
Comment #9
pwolanin commentedThe same pattern using empty() should be applied to all 3 hunks.
Comment #10
elianmThis worked for me too!
I was getting "Notice: Undefined index: facets in apachesolr_facetapi_facet_info() (line 269 of..."
Thanks a lot.
Comment #11
lazysoundsystem commentedSorry, Peter, and thanks for your patience, it was that sort of day.
Here's the patch again, for - hopefully - the final time...
Comment #12
nick_vhLooking good, marking as reviewed and tested :)
Comment #13
nick_vhjust for your info, the patch you submitted failed to apply somehow.
Included is a patch that works. I'd guess the problem was in the filename so please review your patch creation process :)
Comment #14
pwolanin commentedNeed to change all 3 spots to just test empty()
Comment #15
pwolanin commentedto clarify: the ternary is overly complex
can be written as:
Comment #16
jweowu commentedRe-rolling to fix issue from #15, and upper-case the constants as per coding standards.
Comment #17
jweowu commentedActually, there was some other slight untidiness in that patch. Revised version attached.
Comment #18
pwolanin commentedComment #19
pwolanin commentedthanks