I tried installing both the current 7.x-2.0-rc1 and 7.x-2.x modules with Commons 7.x-3.2 and received the following error:
Fatal error: Unsupported operand types in /home/s344bb7f17cd6c46/www/sites/all/modules/merci/includes/api.inc on line 1005
Steps to reproduce:
- install drupal commons (any from 7.x-3.x series)
- install Merci (any from 7.x-2.x)
- create new content type called "Room" and set room to be a reserve-able item in Merci settings
- try to create a new Room: it will crash with fatal error on save
- note: no OG or commons features need to be turned on for the content type, just making it a reserve-able item in Merci will cause it to crash on save
You can test it here: http://simplytest.me/project/commons/7.x-3.2?add[]=merci
Comments
Comment #1
darrick commentedOn your db run ...
UPDATE `drupal7`.`system` SET `weight` = '-1' WHERE `system`.`filename` = 'sites/all/modules/merci/merci.module';Then clear all caches.
commons_notify_node_insert which loads the newly created room node was running before merci_node_insert which save variables to the db required for loading the node. By setting the weight of the merci module to a lower value then that of commons_notify merci_node_insert will run before commons_notify_node_insert.
Comment #2
dustin@pi commentedAmazing thanks so much ... I now have reservations working in Commons.
Comment #3
darrick commentedComment #4.0
(not verified) commentedimproved formatting