solidusio / solidus_subscriptions

An extension to add subscriptions to your Solidus store.
BSD 3-Clause "New" or "Revised" License
48 stars 53 forks source link

I can't get rid of sollidus_subscription #265

Closed keferboeck closed 2 years ago

keferboeck commented 2 years ago

I removed the gem, and reversed the installation. Firstly, the migrations remained, so I had to manually write a migration to get rid of any tables, indexes and foreign keys. Now that the gem is uninstalled and all migrations removed, the entire store broke into pieces, as whatever we do traces of the gem keep appearing - i.e.:

ActionView::Template::Error (undefined method 'subscribable' for #<Spree::Variant:0x00007feec5b059d0>): 106: <div data-hook="admin_product_form_subscribable"> 107: <%= f.field_container :subscribable do %> 108: <label> 109: <%= f.check_box :subscribable %> 110: <%= Spree::Product.human_attribute_name(:subscribable) %> 111: </label> 112: <% end %>

No idea where this is coming from? What do we have to do - step by step to remove the gem?

kennyadsl commented 2 years ago

Hey there! Can you please let us know how you solved this if you have time? It could be helpful for the next person with the same issue!

keferboeck commented 2 years ago

Hi @kennyadsl, we haven't solved the issue. We are at an early stage of development, so we set up a new shop and moved everything over that was working. We spent two days on the issue above, and it was cheaper to create a new shop simply, and we are now writing our subscription logic, as we can't risk another issue that cannot be solved.

We still have the old shop on our server, so if you want me to troubleshoot - I am happy to assist!

kennyadsl commented 2 years ago

Yes please, I'd like to take a look if possible. I mean, if you can share the code of course.

keferboeck commented 2 years ago

This issue has been resolved - the problem was we have Solidus User Roles added to our Gemfile. Upon installation it populates a permission table (Spree::PermissionSet) and there was the following reference in the table:

SubscriptionManagement - SolidusSubscriptions::PermissionSets::SubscriptionManagement
DefaultCustomer - SolidusSubscriptions::PermissionSets::DefaultCustomer

Upon deleting all entries that refer to SolidusSubscription the issue above was resolved!