I'm not sure if this is the right place for our problem. Anyhow I try and hope for a helpful tip ;-)

Since our Drupal Update to 6.22 we got (and continually get) this error message twice with every cron job:

mysqli_get_server_info() expects parameter 1 to be mysqli, resource given in /.../sites/all/modules/mapstraction_cck/includes/mapstraction_cck.block.inc in line 26.

Excerpt mapstraction_cck.block.inc (line 26ff):

if($GLOBALS['db_type'] == 'pgsql' || mysqli_get_server_info($GLOBALS['active_db']) == '5.1.35-snapshot20090630'){
$blocks[1] = array(
'info' => t('Shows the nearest nodes')
, 'weight' => 0
, 'status' => 1
, 'cache' => BLOCK_NO_CACHE
, 'region' => 'left');
}
return $blocks;
.
.
.

Additional Infos: The given file is unchanged, the error message didn't appear before that Drupal update, the used DB is MySQL 5.1.49 and our Webhoster has no idea.

Thanks in advance

Comments

sano’s picture

For your information, I created an issue in the mapstraction cck issue tracker: http://drupal.org/node/1352742 as I think the problem might be in that module.

plopesc’s picture

Hello

I'm running cron on my local machine without any problem.
My main config options are:

  • OS: Ubunut 11.10
  • Server: Apache 2.2
  • PHP: 5.3.6
  • MySQL: 5.1.58

Could you give me more details about your installation? Or even better, could you debug tour code to find which is the state of the $GLOBALS['active_db'] variable when the cron task is broken?

Regards

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.