Hello,
I am trying to develop an addon.
There is a problem with this addon that makes whmcs not working properly.
There are some hooks in this addon such as AcceptOrder, ClientAdd, AfterRegistrarRegistration etc. these hooks works without any error.
also I have used Capsule::connection()->getPdo() function to interact with DB.
WHMCS version 7.6
So here is the problem.
after activating the addon If I come to client area to buy a product and click test product then it redirect me to a new page to choose a domain.
I can choose the option register a new domain . but I cannot choose the option use my existing domain. after writing the name of domain and clicking use button this error happens and cannot view cart.
After deactivating the addon everythings work fine and cart appears..
Do you have any idea why is this happening ?