Notice: Mongo::__construct() [mongo.--construct]: parsing servers in sites\all\modules\contrib\mongodb\mongodb.module on line 33

Notice: MongoCollection::update() [mongocollection.update]: saying something in sites\all\modules\contrib\mongodb\mongodb_watchdog\mongodb_watchdog.module on line 114

Seems like Mongo is returning a message like 'parsing servers', 'saying something'.

Any idea how to disable these notices?

Comments

Anonymous’s picture

Category: bug » support
Status: Active » Fixed

Ahh, I think I just found the trick. Put this in settings.php:

$conf['watchdog_limit'] = WATCHDOG_WARNING;

We can close this issue then,...

fgm’s picture

Status: Fixed » Postponed (maintainer needs more info)

For the record, could you confirm what mongo-related settings you had previously: even without this parameter, you should not be getting notices from the module.

Anonymous’s picture

So this is my MongoDB config file, very simple setup

# Morningtime sample MongoDB configuration file
dbpath = C:\Inetpub\mongodata
port = 27017
bind_ip = 127.0.0.1
noauth = true

# Full filename path to where log messages will be written
logpath = C:\Inetpub\mongodata\mongodb.log

# Verbose logging output (same as v = true)
#verbose = true

#Turn on simple rest API
rest = true

Actually not sure what causes the notifications, or what makes them go away. I get these notices after I bootup MongoDB, but they go away after a while, regardless of my settings.php settings.

Anonymous’s picture

Component: Watchdog » Field storage

Actually, it is related to the MongoDB field Storage module. I disabled that extensions and the notices are gone.

MiSc’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Seems like the error have nothing to do with mongodb module. closing.