When the module cannot connect to the server, various errors are thrown on the admin/reports/apachesolr page. Everything is fine when the module can connect to the server, however the module should handle connection issues more gracefully on this page. The errors received are listed below:

  • Strict warning: Creating default object from empty value in apachesolr_index_report() (line 524 of apachesolr.admin.inc).
  • Notice: Undefined property: stdClass::$index in apachesolr_index_report() (line 527 of apachesolr.admin.inc).
  • Notice: Trying to get property of non-object in apachesolr_index_report() (line 527 of apachesolr.admin.inc).

Thanks,
Chris

Comments

nick_vh’s picture

Status: Active » Needs review
StatusFileSize
new3.62 KB

This should fix it and be cleaner since it uses renderable arrays

Status: Needs review » Needs work

The last submitted patch, 1424578-1.patch, failed testing.

nick_vh’s picture

Status: Needs work » Needs review
StatusFileSize
new3.11 KB
nick_vh’s picture

Version: 7.x-1.x-dev » 6.x-3.x-dev
Status: Needs review » Patch (to be ported)

Committed for 7.x-1.x. Thanks for reporting!

nick_vh’s picture

Status: Patch (to be ported) » Fixed
StatusFileSize
new3.38 KB

bacported this patch to work with 6.x-3.x and committed

nick_vh’s picture

Status: Fixed » Closed (fixed)