Drush commands on sites using mongodb-dev doesn't work due php parse error.

PHP Parse error: parse error in /path/to/sites/all/modules/contrib/mongodb/mongodb_migrate/mongodb_migrate.drush.inc on line 69

Patch will come on comment.

#1 drush-php-parseerror-1918156-1.patch652 bytesexlin
None View
Members fund testing for the Drupal project. Drupal Association Learn more


exlin’s picture

Status: Active » Needs review
652 bytes
None View
exlin’s picture

Status: Needs review » Needs work

Ah, thats no better. sorry, i also need to do more proper testing and reading ;)

exlin’s picture

Ok, so noticed that you actually fixed issue but todays dev build had still issue there.

Tho i still keep getting php errors when using drush.

PHP Fatal error:  Class 'Mongo' not found in /path/to/sites/all/modules/contrib/mongodb/mongodb.module on line 34
Drush command terminated abnormally due to an unrecoverable error.   [error]
Error: Class 'Mongo' not found in
line 34
Drush was not able to start (bootstrap) Drupal.                      [error]
Hint: This error can only occur once the database connection has
already been successfully initiated, therefore this error generally
points to a site configuration issue, and not a problem connecting to
the database.
exlin’s picture

Status: Needs work » Closed (fixed)

Ok, this happends only on my mac currently. When trying on dev-stack (LAMP on virtualbox) it works fine so i would say issue closed. Cheers!

xxm’s picture

Version: 7.x-1.x-dev » 7.x-1.0-rc2

I've recognised the same error an a debian installation with the stable release 7.x-1.0-rc2.

Any solutions?

Albert.Liu’s picture

Issue summary: View changes

I have the same problem and error messages.
Does anyone solved this problem?

fgm’s picture

Version: 7.x-1.0-rc2 » 7.x-1.x-dev
Status: Closed (fixed) » Postponed (maintainer needs more info)

Hello. Please do /not/ use rc2 : it is extremely broken. Can you try the current 7.x-1.x-dev and confirm if your problem has been addressed in the meantime or not ?