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.
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, thanks for pointing this out. The addon has been updated to include an uninstall routine.
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.
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.
Ran your uninstall code and got the following error:
Don't have time to check right now but I guess it is an incorrect table name
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
Also wouldn't hurt to remove the settings from the config table
It was a case issue, fixed now.
Wrong case = wrong table :)
Anyway your code helped me to get a handle on how things work in Concrete5 so thanks for that :)
Anyway your code helped me to get a handle on how things work in Concrete5 so thanks for that :)