Blank Domain Search Results

Problem

A domain search that should have results returns no results and renders a blank page.

Cause

This issue is usually due to an incorrect response type.

Troubleshooting

To verify that this is the issue, use your browser’s inspection feature to check the Content-Type value.

To do this in Google Chrome™:

  1. Right-click on the domain results page in the browser.
  2. Select Inspect Element.
  3. Choose the Network tab.
  4. Without closing the tab, use the page to check a domain’s availability.
  5. Select the entry for the cart.php file and examine the Headers section.
  6. Note the Content-Type value.
    Incorrect content type in the browser.

If the Content-Type value is text/html;charset=utf-8, this is the problem. The Content-Type should be application/json.

Invalid System Charset Setting

To check whether this is due to an incorrect setting:

  1. Go to Configuration () > System Settings > General Settings and choose the Localisation tab.
    The Localisation tab in General Settings
  2. Note the value for System Charset.

If System Charset is not utf-8, this is the issue.

Solution

To resolve this, set System Charset to utf-8 and click Save Changes.

CloudFlare® Minification Issue

This issue may be due to problems with CloudFlare script minification and Rocketloader features. CloudFlare replaces the JavaScript that WHMCS uses to check the availability with their own copies, which do not contain the necessary code.

Solution

Disable RocketLoader and script minification options in your CloudFlare control panel.

Windows® Servers

This issue may be due to an out-of-date CGI SAPI version.

Solution

Work with your hosting provider or system administrator to update CGI SAPI for IIS to the latest version.

Do not use ISAPI.

If you cannot update the version, you can work around the issue using the creating-outbound-rules-for-url-rewrite-module feature to create the following rewrite rule:

<outboundRules>
    <rule name="sdf" preCondition="PHPRequest">
        <match serverVariable="RESPONSE_CONTENT_TYPE" pattern="^text/html; charset=utf-8,(.+)"/>
        <action type="Rewrite" value="{R:1}"/>
    </rule>
    <preConditions>
        <preCondition name="PHPRequest">
            <add input="{REQUEST_URI}" pattern=".*\.php"/>
        </preCondition>
    </preConditions>
</outboundRules>
For more information, see IIS’s Documentation.

Last modified: October 30, 2024