Needs review
Project:
Apache Solr Search
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 Apr 2013 at 07:46 UTC
Updated:
1 Aug 2015 at 17:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
PatchRanger commentedReason
After some investigation it became clear that the problem is that in 'Solr Search Environments' test case we are checking for a notice appearing that the server is offline at the page that doesn't exist: we are looking for
admin/config/search/apachesolr/search-pages, which is missing due to disabled apachesolr_search module, it is triggering default page load (which isadmin/config/search/apachesolr) - and fails because its $environment variable is not empty, but doesn't have 'env_id' and others either: see http://drupalcode.org/project/apachesolr.git/blob/refs/heads/7.x-1.x:/ap... .Please note that this bug only occurs in PHP since 5.4 because of stricter typization: in earlier versions of PHP this bug exists too but doesn't appear as a warning because it is silently suppressed.
Solution
Just enable apachesolr_search during testing - as it is supposed to be.
Comment #2
pwolanin commentedlooks reasonable to me
Comment #3
jantoine commentedHaving the same issue with 6.x.
Comment #4
pwolanin commentedthanks committed. Here's a possible 6.x backport
Comment #6
PatchRanger commented#4: 1978404-4.patch queued for re-testing.
Comment #6.0
PatchRanger commentedCorrect link to orginal
Comment #7
michelle(tagging)
Comment #8
pwolanin commentedAnyone verify this fixes the issue with that branch?