Jump to content

Blank page when Registrar Module activated


letsgo

Recommended Posts

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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