Paymate Uninstall Issue

Permalink
I have just removed a Paymate install from a test Concrete5 install I have running here. After uninstalling the Payments dashboard page was broken.

Troubleshooting the issue it seems that the uninstall routine failed to remove the Paymate entry from the CoreCommercePaymentMehtods table.

Could the developer please update their code so that other developers don't have to waste time working this out?

Thanks.

freelancewebdev
View Replies:
mrnoisy replied on at Permalink Reply
mrnoisy
freelancewebdev, thanks for pointing this out. The addon has been updated to include an uninstall routine.
freelancewebdev replied on at Permalink Reply
freelancewebdev
Thanks, appreciate the promptness. When I reviewed the code in the corecommercepaymentmethods class I discovered that there wasn't an uninstall function there either.

To me, this is the kind of thing that separates a good CMS from a bad one. Being new to Concrete5, I am now very wary of the rest of the codebase.
freelancewebdev replied on at Permalink Reply
freelancewebdev
Ran your uninstall code and got the following error:

mysql error: [1146: Table 'concret_con.corecommercepaymentmethods' doesn't exist] in EXECUTE("DELETE FROM corecommercepaymentmethods WHERE paymentMethodHandle = "paymate"")


Don't have time to check right now but I guess it is an incorrect table name
freelancewebdev replied on at Permalink Reply
freelancewebdev
Also wouldn't hurt to remove the settings from the config table
mrnoisy replied on at Permalink Reply
mrnoisy
It was a case issue, fixed now.
freelancewebdev replied on at Permalink Reply
freelancewebdev
Wrong case = wrong table :)

Anyway your code helped me to get a handle on how things work in Concrete5 so thanks for that :)