Hi Everybody,
I'm developing a registrar module, it almost was done but I have a problem:
> When the admin clicks the module activate button on registrar modules page whmcs respond with a blank page. (but module activated)
> Same thing happens when module's save configuration button clicks. (but configuration saved)
Both of works but return blank page perceived as an error by my clients (and they right about that)
I read the documentation, can't found anything helpful and contact the support, they said : they don't have 3rd party code investigation/support. So I came to benefit from your experience.
Notes :
> My whmcs is a clean installation with latest stable version.
> My Display Errors / PHP Error Reporting feature is active.
> The problem only occurred on my module.
> You can see my _getConfigArray at below lines :
function brand_getConfigArray()
{
$configuration = array(
"Username" => array(
"FriendlyName" => "Username",
"Type" => "text",
"Size" => "25",
"Description" => "Enter your Username here",
"Default" => ""
),
"Password" => array(
"FriendlyName" => "Password",
"Type" => "password",
"Size" => "25",
"Description" => "Enter your Password here",
"Default" => ""
),
"TestMode" => array(
"FriendlyName" => "Test Mode",
"Type" => "yesno",
"Description" => "Tick to use Test Mode"
)
);
return $configuration;
}
Blank Page URLs
Activate Module :
http://sampleurl.com/admin/configregistrars.php?action=activate&module=brand&token=bbbb66bc3faf6c603c20e5e7762fxxxxxxxxxxx
Deactivate Module :
http://sampleurl.com/admin/configregistrars.php?action=deactivate&module=brand&token=bbbb66bc3faf6c603c20e5e7762fxxxxxxxxxxx
Save Configuration :
http://sampleurl.com/admin/configregistrars.php?action=save&module=brand&token=bbbb66bc3faf6c603c20e5e7762fxxxxxxxxxxx
Please share your ideas with me even if it does not make sense I'm open all solution ideas.