Warning: strpos() expects parameter 1 to be string, array given in _db_maintenance_determine_software() (line 241 of /var/aegir/platforms/pf92dev/sites/all/modules/db_maintenance/db_maintenance.module).

Looks like a PHP 5.3 compatibility issue.

Comments

nowrap’s picture

Version: 6.x-1.2 » 6.x-1.3

Using drush to execute the cron there are 2 warnings:
strpos() expects parameter 1 to be string, array given in /share/websites/drupal/sites/all/modules/db_maintenance/db_maintenance.module on line 241.
strpos() expects parameter 1 to be string, array given in /share/websites/drupal/sites/all/modules/db_maintenance/db_maintenance.module on line 245.

Also using PHP 5.3

deekayen’s picture

Status: Active » Fixed

I changed the methodology for how that function works. It'll be in the next version of 6.x-1.x-dev snapshot.

Status: Fixed » Closed (fixed)

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

yngens’s picture

Status: Closed (fixed) » Active

With 6.x-1.3 the error persists:

warning: strpos() expects parameter 1 to be string, array given in /usr/drupal/sites/all/modules/db_maintenance/db_maintenance.module on line 241.
warning: strpos() expects parameter 1 to be string, array given in /usr/drupal/sites/all/modules/db_maintenance/db_maintenance.module on line 245.

Couldn't find 6.x-1.x-dev, so changing this to active again.

robcarr’s picture

I'm getting the same errors (in 6.x-1.3) but I'm using PHP 5.2.13

*EDIT* Likewise, cannot find a DEV release for 6.x

maczkojanos’s picture

Hello,

here is DEV release:

git clone --branch 6.x-1.x http://git.drupal.org/project/db_maintenance.git

maczkojanos

drupalgideon’s picture

Any news on a 1.4 release with this fix in?

deekayen’s picture

Status: Active » Fixed

tagged for release

Status: Fixed » Closed (fixed)

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