smarterdev Posted April 12, 2017 Share Posted April 12, 2017 I'm trying the sample-registrar-module (https://github.com/WHMCS/sample-registrar-module) and when I do the configuration (and save changes) only the email field seems to be saved. Example: Activate for the first time: API Username: 1024 API Key: <blank> Test mode: <not checked> Account Mode: Display Value 1 Email Preference: <no option selected> Email: <blank> Now key in/select something on every field and click save changes. Once the page is reloaded all the values are reset to the default, except the Email field which is persistent. Any ideas on why I'm getting this error? BRs 0 Quote Link to comment Share on other sites More sharing options...
smarterdev Posted April 12, 2017 Author Share Posted April 12, 2017 I should probably add-on to the original post that the values are empty when passed through $params to the various methods as well For example when registrarmodule_CheckAvailability($params) is called, I can see [whmcsVersion] => 7.1.1-release.1, [sld] => whateverdomainisearched, etc. But [API Key] and the other configured parameters are all blank. I did also check the tblregistrars table and it looks like values has been saved into the DB, but not propagated correctly for some reason. 0 Quote Link to comment Share on other sites More sharing options...
smarterdev Posted April 12, 2017 Author Share Posted April 12, 2017 Looks like it is related to space in the key's name. I just realized that the email field was the only without a space in the name, and when I changed "API Key" to "APIKey" the value suddenly persist between saves. Perhaps some developer @ whmcs can confirm this theory. 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.