Removing invoice module

Post

Posted
Rating:
#277 (In Topic #63)
Avatar
Standard member
Crsnic is in the usergroup ‘Fan in action’

v10r4

Hey There

I just removed Invoices from Admin Zone > Structure > Addons > Module Management > Site and error occure making website unusable

I have reproduced error on localhost and everytime it same when Invoices addon is removed.

Expand: Stack trace Stack trace



Greg

Lost in madness.
Online now: No Back to the top

Post

Posted
Rating:
#278
Avatar
Standard member
Crsnic is in the usergroup ‘Fan in action’
Unfortunately same goes for Download addon, tho if i install it back then whole website goes back to normal (note if i close management page I can't get back to it)


Expand: chat chat


Expand: quizzes quizzes


Guess if i test them all results will be quite the same.

Greg

Lost in madness.
Online now: No Back to the top

Post

Posted
Rating:
#279
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Hi,

We could try and tackle this, but I don't want to to be honest, as it would go on a long time with similar issues, and we already warn against uninstalling individual modules with this notice:

"Please be advised that this is advanced functionality, intended only for programmers. Using these features can result in data loss or errors on your website. It is strongly recommended that you manage modularity on an addon level instead."

Modern Composr code works via checking installation on an addon level, rather than a module level, so if a module is missing but the addon isn't, it can trip over.

The best approach to 'removing' parts of addons where you still want the rest of the addon is to use permissions. Just use the permission tree editor to remove access to the invoices page.

Regards,
Chris


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#280
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
The other reason I want to leave it is because the code'd be messier and less performant if doing both addon and module checks.

However I have just amended the notice to mention page permissions as a solution, so this may point people in the right direction.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#286
Avatar
Standard member
Crsnic is in the usergroup ‘Fan in action’
Ah right, sorry I must have missed this warning somehow :/ thanks for info tho.

Greg

Lost in madness.
Online now: No Back to the top
1 guest and 0 members have just viewed this.

Statistics

Forum statistics:
  • 2,052 topics, 7,195 posts, 10,830 members
  • Our newest member is Customcollective
Back to Top