Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
If the parameters group
and group.ngroups
are set, the result page doesn't return any results and produces PHP Notices.
Notice: Undefined property: stdClass::$response in apachesolr_search_process_response() (line 1285 of /var/www/kroton/code/modules/contrib/apachesolr/apachesolr_search.module).
Notice: Trying to get property of non-object in apachesolr_search_process_response() (line 1285 of /var/www/kroton/code/modules/contrib/apachesolr/apachesolr_search.module).
Proposed resolution
Treat these parameters properly to make them return the results based on selected group field(s).
Comment | File | Size | Author |
---|---|---|---|
#7 | interdiff-2885444-5-7.txt | 788 bytes | chgasparoto |
#7 | parameters_group_and-2885444-7-php53.patch | 2.81 KB | chgasparoto |
| |||
#5 | parameters_group_and-2885444-5.patch | 2.77 KB | chgasparoto |
#2 | parameters_group_and-2885444-2.patch | 2.9 KB | chgasparoto |
Comments
Comment #2
chgasparoto CreditAttribution: chgasparoto as a volunteer and at CI&T commentedI made a patch to handle this situation.
Please review!
Thanks.
Comment #4
chgasparoto CreditAttribution: chgasparoto as a volunteer and at CI&T commentedComment #5
chgasparoto CreditAttribution: chgasparoto as a volunteer and at CI&T commentedThe patch was generated with the full path.
The new file fixes this path of the diff.
Please review.
Thanks!
Comment #7
chgasparoto CreditAttribution: chgasparoto as a volunteer and at CI&T commentedFixing the code to pass the test on PHP 5.3, because array dereferencing was added on PHP 5.4.
Interdiff is attached.
Thanks.
Comment #8
chgasparoto CreditAttribution: chgasparoto as a volunteer and at CI&T commented