Getting this error on PHP 5.6. It looks like the problem is in Views but it means the code in here needs to match Views. I've run into this same issue in other modules and know how to fix it.

Strict warning: Declaration of gmap_plugin_style_gmap::options_validate() should be compatible with views_plugin::options_validate($form, &$form_state) in views_include_handler() (line 98 of /sites/all/modules/contrib/views/includes/handlers.inc).

Comments

Michelle created an issue. See original summary.

michelle’s picture

Issue summary: View changes
Status: Active » Needs review
Issue tags: +PHP 5.4
StatusFileSize
new627 bytes

Here's the patch.

Status: Needs review » Needs work

The last submitted patch, 2: gmap-options_validate-2559557-2.patch, failed testing.

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 2: gmap-options_validate-2559557-2.patch, failed testing.

michelle’s picture

Well, I haven't the foggiest idea why this patch is failing. It's the same change that was needed for other projects to make it compatible with Views in PHP 5.6. In Views, it is "function options_validate($form, &$form_state) { }" with no "&" on it so other modules that use that have to match.

michelle’s picture

StatusFileSize
new928 bytes

Updated the patch to account for another warning.

michelle’s picture

Title: Strict warning: Declaration of gmap_plugin_style_gmap::options_validate() should be compatible with views_plugin::options_validate » Strict warnings
Status: Needs work » Needs review

Forgot to set it needs review plus fixing title.