jlucho Posted October 2, 2020 Share Posted October 2, 2020 (edited) Hi After placing a purchase order, at the end of the order, it shows the following error message: =============== Oops! Something went wrong and we couldn't process your request. Please go back to the previous page and try again. TypeError: Argument 6 passed to WHMCS\User\User::createClient() must be of the type string, null given, called in /home/MIURL/public_html/cart.php on line 0 and defined in /home/MIURL/public_html/vendor/whmcs/whmcs-foundation/lib/User/User.php:0 Stack trace: #0 /home/MIURL/public_html/cart.php(0): WHMCS\User\User->createClient('Jorge', 'Ls', '', 'warehosting@gm...', 'Lima', NULL, 'CITY', 'City', '52100', 'BO', '+51.987 654 321', true, Array, '', false, 0) #1 {main} =============== whmcs8 has many errors, in the most common and used functions How is this problem solved? my business is stopped, I can't sell !! Edited October 2, 2020 by jlucho 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted October 3, 2020 WHMCS Support Manager Share Posted October 3, 2020 Hi @jlucho, I've not been able to reproduce the error. From the error it looks like the "Address2" value is invalid. Does the issue persists on the stock Six template and Standard Cart order form template? If so, can you please share a screenshot of the checkout page details before submission. 0 Quote Link to comment Share on other sites More sharing options...
wirenine Posted October 3, 2020 Share Posted October 3, 2020 19 hours ago, jlucho said: Hi After placing a purchase order, at the end of the order, it shows the following error message: =============== Oops! Something went wrong and we couldn't process your request. Please go back to the previous page and try again. TypeError: Argument 6 passed to WHMCS\User\User::createClient() must be of the type string, null given, called in /home/MIURL/public_html/cart.php on line 0 and defined in /home/MIURL/public_html/vendor/whmcs/whmcs-foundation/lib/User/User.php:0 Stack trace: #0 /home/MIURL/public_html/cart.php(0): WHMCS\User\User->createClient('Jorge', 'Ls', '', 'warehosting@gm...', 'Lima', NULL, 'CITY', 'City', '52100', 'BO', '+51.987 654 321', true, Array, '', false, 0) #1 {main} =============== whmcs8 has many errors, in the most common and used functions How is this problem solved? my business is stopped, I can't sell !! Not able to reproduce this on test installation using the default six and standard cart template. 0 Quote Link to comment Share on other sites More sharing options...
jlucho Posted October 3, 2020 Author Share Posted October 3, 2020 it is correct, in my personal template, I have hidden the address2 field (since it seems unnecessary to me) I have removed that modification, making it visible address2 now, you can make a sale, with new users 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 3, 2020 Share Posted October 3, 2020 20 minutes ago, jlucho said: it is correct, in my personal template, I have hidden the address2 field (since it seems unnecessary to me) how did you hide the field ? 0 Quote Link to comment Share on other sites More sharing options...
jlucho Posted October 3, 2020 Author Share Posted October 3, 2020 edit file "clientareadetails.tpl " in your template folder search text "address2" and apply : <!-- 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 3, 2020 Share Posted October 3, 2020 interesting - address2 is optional by default, so I wouldn't have thought it would cause an issue... 0 Quote Link to comment Share on other sites More sharing options...
madbutcher Posted February 11, 2021 Share Posted February 11, 2021 Hello, I have the same problem when I try to hide the company field which is optional anyway. How to hide properly fields like company, address2 and phone? Thank you 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 11, 2021 Share Posted February 11, 2021 9 hours ago, madbutcher said: How to hide properly fields like company, address2 and phone? edit the checkout.tpl template... CSS would be an option, but template editing will be cleaner. 0 Quote Link to comment Share on other sites More sharing options...
madbutcher Posted February 11, 2021 Share Posted February 11, 2021 43 minutes ago, brian! said: edit the checkout.tpl template... CSS would be an option, but template editing will be cleaner. Thank you. I did it of course, but I have the Oops message like in the first post. 0 Quote Link to comment Share on other sites More sharing options...
madbutcher Posted February 12, 2021 Share Posted February 12, 2021 Solved. If anyone has same problem : by changing the input type value in .tpl to "hidden" - rather than removing the code completely - it works as needed. 0 Quote Link to comment Share on other sites More sharing options...
FFOX Posted March 28, 2021 Share Posted March 28, 2021 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. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.