Jump to content

qualia

Member
  • Posts

    4
  • Joined

  • Last visited

About qualia

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

qualia's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. I'm attempting to utilise single sign on in WHMCS, but get a PDO error "Uncaught exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'user_id' cannot be null' in /whmcs/vendor/illuminate/database/Connection.php:444". I have the correct request parameters as described here: http://docs.whmcs.com/API:CreateOAuthCredential. The params I'm using are: username:xxxxxxxx password:xxxxxxxxx action:CreateOAuthCredential grantType:single_sign_on scope:clientarea:sso clientarea:profile description:Test SSO serviceId:<USER ID HERE> responsetype:json I put some logging in Connection.php and it appears WHMCS is attempting to insert into `tbloauthserver_clients`, but there is no user_id. How do I pass user_id as a parameter? What am I doing wrong?
  2. I'm attempting to utilise single sign on in WHMCS, but get a PDO error "Uncaught exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'user_id' cannot be null' in /whmcs/vendor/illuminate/database/Connection.php:444". I have the correct request parameters as described here: http://docs.whmcs.com/API:CreateOAuthCredential. The params I'm using are: username:xxxxxxxx password:xxxxxxxxx action:CreateOAuthCredential grantType:single_sign_on scope:clientarea:sso clientarea:profile description:Test SSO serviceId:<USER ID HERE> responsetype:json I put some logging in Connection.php and it appears WHMCS is attempting to insert into `tbloauthserver_clients`, but there is no user_id. How do I pass user_id as a parameter? What am I doing wrong?
  3. Trying to validate Custom Fields in the Add and Edit Client forms. If validation fails, the changes should NOT be committed to the WHMCS db. I've been trying to utilise the ClientDetailsValidation hook. However, the documentation for it is wrong. It is not triggered before ClientAdd, it seems to only be triggered before ClientEdit. What's more, even if ClientDetailsValidation returns an error, the entered details are still committed to the WHMCS db. What is up with this? Is this a bug? Alternatively, is there anyway of disabling/hiding the custom field in the Client Edit or Client Add forms?
  4. Trying to validate Custom Fields in the Add and Edit Client forms. If validation fails, the changes should NOT be committed to the WHMCS db. I've been trying to utilise the ClientDetailsValidation hook. However, the documentation for it is wrong. It is not triggered before ClientAdd, it seems to only be triggered before ClientEdit. What's more, even if ClientDetailsValidation returns an error, the entered details are still committed to the WHMCS db. What is up with this? Is this a bug? Alternatively, is there anyway of disabling/hiding the custom field in the Client Edit or Client Add forms?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated