Did you know that if you delete a field in the developer code in the browser, for example Address 2, when placing an order in the registration form,you will still get an error?
I think this is unacceptable. Note that NULL is passed in this case:
WHMCS\\User\\User->createClient('Ivan', 'Test 2', '', 'fjmfmejujnnbhh@...', 'fsdfjerjfer', NULL,
Although in later versions it worked. All my non-standard registration forms were sent, unfortunately. I redid everything again and just hid the wrong fields through CSS, but for the sake of interest I tried to explore the element through Google Chrome and deleted a piece of code, tried to place an order and got an error. Complete nonsense!
Please note that the error is reproduced only during registration when the order is placed, the error does not appear on the usual registration form, but I did not test it in detail.