When the search box pane has no #default_value and there is no value in the form_state this error shows after clearing the cache:

Notice: Undefined index: args in apachesolr_panels_form_apachesolr_panels_search_form_alter() (line 138 of sites/all/modules/contrib/apachesolr_panels/plugins/content_types/apachesolr_form.inc).
Notice: Undefined index: args in apachesolr_panels_form_apachesolr_panels_search_form_alter() (line 142 of sites/all/modules/contrib/apachesolr_panels/plugins/content_types/apachesolr_form.inc).

After inspecting lines 138 and 142 of the file apachesolr_form.inc, if either $arg[1] and $arg[3] variables are empty then this notice will show.

I'll be submitting a patch shortly.

Comments

jcmartinez created an issue. See original summary.

jcmartinez’s picture

Issue summary: View changes
jcmartinez’s picture

This is a small patch that checks whether a value is not empty before using it.

acbramley’s picture

Version: 7.x-1.1 » 7.x-1.x-dev
Status: Active » Needs work

Thanks @jcmartinez but this needs to be rolled relative to the module directory, and against 7.x-1.x

jason.bell’s picture

Status: Needs work » Needs review
StatusFileSize
new877 bytes

Having the same issue. Recreated the patch from module root relative to current 7.x-1.x

  • jason.bell authored 61755d7 on 7.x-1.x
    Issue #2669242 by jcmartinez, jason.bell: Unidentified index args
    
acbramley’s picture

Status: Needs review » Closed (fixed)

Thanks :)