Deprecated function: MongoBinData::__construct(): The default value for type will change to 0 in the future. Please pass in '2' explicitly. in DrupalMongoDBCache->set() (line 131 of ......../sites/all/modules/mongodb/mongodb_cache/mongodb_cache.inc).

I believe this doesnt seem to be much of an issue, but it does affect the performance a little as it keeps on flooding the watchdog with every request.

Files: 
CommentFileSizeAuthor
#1 0001-Issue-1786330-MongoBinData-__construct-needed-an-exp.patch975 bytesfgm
FAILED: [[SimpleTest]]: [MySQL] 11 pass(es), 6 fail(s), and 0 exception(s).
[ View ]

Comments

Status:Active» Needs review
StatusFileSize
new975 bytes
FAILED: [[SimpleTest]]: [MySQL] 11 pass(es), 6 fail(s), and 0 exception(s).
[ View ]

Note: this warning is new in version 1.2.11 of the extension.

Going further, I wonder whether there would not be more to gain from alway using a MongoBinData::BYTE_ARRAY instead of routing each string data through drupal_validate_utf8() as the check currently does.

This probably needs performance testing, but that would be a followup issue.

Status:Needs review» Needs work

The last submitted patch, 0001-Issue-1786330-MongoBinData-__construct-needed-an-exp.patch, failed testing.

+1 flooding the watchdog on each cache operation is bad.

Status:Needs work» Reviewed & tested by the community

Applied patch from #1 and it seems to be not flooding the logs anymore. Should consider this to be comitted :)

Thanks fgm!

Status:Reviewed & tested by the community» Needs work

The last submitted patch, 0001-Issue-1786330-MongoBinData-__construct-needed-an-exp.patch, failed testing.

How can I make it go away ?? I uninstalled the mongodb_cache submodule, and no results.

Deprecated function: MongoBinData::__construct(): The default value for type will change to 0 in the future. Please pass in '2' explicitly. in DrupalMongoDBCache->set() (line 131 of /D723/sites/all/modules/mongodb/mongodb_cache/mongodb_cache.inc).

If I remove from settings.php

<?php
#   # -- Configure Cache
  
$conf['cache_backends'][] =
    
'sites/all/modules/mongodb/mongodb_cache/mongodb_cache.inc';
  
$conf['cache_default_class']         = 'DrupalMongoDBCache';
#   # -- Don't touch SQL if in Cache
  
$conf['page_cache_without_database'] = TRUE;
  
$conf['page_cache_invoke_hooks']     = FALSE;
?>

I get white screen with the following error:

2013/09/15 20:39:25 [error] 2242#0: *2661 FastCGI sent in stderr: "PHP message: PHP Catchable fatal error:  Argument 2 passed to SelectQuery::fields() must be of the type array, null given, called in /D723/includes/entity.inc on line 279 and defined in /D723/includes/database/select.inc on line 1300" while reading response header from upstream, client: 00.000.000.00, server: domain.com, request: "GET /admin/reports/status/run-cron HTTP/1.0", upstream: "fastcgi://unix:/tmp/php-fpm.sock:", host: "domain.com", referrer: "http://domain.com/"

Any help appreciated.
Thanks for the module.

Update: doesn't matter, started a new instance as the sub module full filled my setup with errors. Im using nginx, varnish, memcache, Maria DB and Mongo DB. Skipping from the beginning mongodb cache and mongodb block solved my problems. cheers.

Issue summary:View changes

Added formatting.