When browsing to /admin/config/development/coder/review I was getting the warning:

    *  Warning: Illegal offset type in _coder_review_get_default_settings() (line 671 of /var/www/head/sites/all/modules/coder/coder_review/coder_review.module).
    * Notice: Array to string conversion in drupal_validate_utf8() (line 1157 of /var/www/head/includes/bootstrap.inc).
    * Warning: preg_match() expects parameter 2 to be string, array given in drupal_validate_utf8() (line 1163 of /var/www/head/includes/bootstrap.inc).

This appeared to be caused because $arg is an array and the value I think we want is $arg['args'][0]

I've attached a patch which fixes this but I'm not sure why the change to the structure of $arg has happened and whether it's permanent, I'll try to investigate more.

Comments

matason’s picture

StatusFileSize
new870 bytes

I spent some more time on this tonight and actually spotted what looks like an obvious mistake in the function coder_review_page_form signature, the attached patch changes

function coder_review_page_form($form_state, $arg = '')

to

function coder_review_page_form($form, $form_state, $arg = '')

Please ignore the patch submitted on the actual issue.

blackdog’s picture

Status: Needs review » Reviewed & tested by the community

Manually patched, i.e. not tested the patch file itself, and everything works as expected.

nancydru’s picture

+1 RTBC

ctmattice1’s picture

Patch works for me.

Thanks

sun’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for reporting, reviewing, and testing! Committed a bit more complete patch.

A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.