I installed Rooms to see if it will work for my use case, but it does not. When I try to uninstall the Rooms Booking Manger, I get an error. I have attached a screenshot.

I can't uninstall the rest of Rooms or Commerce modules until this one is gone.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Eric Chapuis’s picture

Hi,
I have the exact same problem/error. Is there any way to "manually" bypass this error?
Thanks for your support,
Éric

Fatal error: Call to undefined function commerce_product_delete() in /home/content/f/a/h/fahlken/html/eric/sites/all/modules/rooms/modules/rooms_booking_manager/rooms_booking_manager.install on line 20

Eric Chapuis’s picture

After getting the preceding error, I tried enabling back Rooms Booking Manager and got the following error (pls see attached).
Also, After going back to the modules management page, the Rooms Booking manager was enabled... It seemed to work.
Not sure if this helps, but I thought I'd document it anyhow. Thanks.

Eric Chapuis’s picture

After trying to uninstall the module, then enabling it back (see previous two posts), the Rooms Booking manager shows as "enabled" in the modules mgt page. However, it is not working (there is no search/book functionality on the page).
Any suggestion to fix that?
Thanks for your help,
Eric

phazerz’s picture

I've been through that...
If I remember well I carefully uninstalled modules one by one not beginning by the Manager.
I've deleted all booking, orders, customer profiles first and cleaned caches too.
Good Luck

acrollet’s picture

nb: the error posted by OP should not occur if the commerce_product module is enabled before uninstalling rooms booking manager. We'll look into a solution...

acrollet’s picture

Priority: Normal » Minor

Setting to minor since there's a workaround.

acrollet’s picture

Status: Active » Closed (fixed)

The latest -dev version has been updated with code that will allow all rooms modules to be completely uninstalled. I've also added uninstallation instructions to the README.

juves’s picture

Version: 7.x-1.0-rc1 » 7.x-1.7
Issue summary: View changes

I disabled sub modules in reverse order
I deleted two fields from field_config, because it was not possible to disable Rooms module (https://www.drupal.org/node/2898095)
I didn't touch Commerce
I ran cron after each step several times, cleared caches

I still can not uninstall rooms booking manager. It says an error has occurred, try reload the page

I have rooms 1.7-85dev

Can I delete it manually?