silverstripe / cwp-core

CWP basic compatibility module
BSD 3-Clause "New" or "Revised" License
3 stars 12 forks source link

PHP Notice: Undefined index: remotepath on Solr_Configure #66

Open emteknetnz opened 5 years ago

emteknetnz commented 5 years ago

When running /dev/tasks/Solr_Configure on CWP 1.9.1, I get the following notice in graylog:

PHP Notice: Undefined index: remotepath in /sites/mysite-uat/releases/2019051234/cwp-core/code/CwpSolrConfigStore.php on line 18

As far as I can tell, this does not actually affect the functionality of solr, it just creates an unexplained bad looking thing in Graylog which isn't good for confidence when doing a go-live

I've replicated this on 2 CWP sites on UAT

Both sites appear to be correctly using the cwp-4 solr configuration

I think this happens because Cwpsolr.php -> options_for_cwp() -> 'indexstore' does not contain the key 'remotepath'

robbieaverill commented 5 years ago

Fancy a pull request? =D