Guides & Tutorials7.5 Update TroubleshootingTroubleshooting Domain Search Returning No Results

Troubleshooting Domain Search Returning No Results

Symptom

After applying the WHMCS 7.5.0 update when using a custom template, checking domain availability via /cart.php?a=add&domain=register or /cart.php?a=add&pid=x fails to return any domain results.

The Searching/Checking availability message is displayed indefinitely:

Domain searching forever

At the same time, the browser's error console reports the following error:

 

whmcsBaseUrl is not defined

Cause

This issue occurs when the WHMCS software has been updated to v7.5 but the custom template has not had the corresponding updates applied. As a result a new required variable is not defined on the page.

Solution

To resolve this, please ensure all the template updates have been applied to your custom template: https://docs.whmcs.com/Version_7.5.0_Release_Notes#Template_Changes

For this particular issue, it is this single change which will be required: https://github.com/WHMCS/templates-six/compare/v7.4.2-release.1...v7.5.0-release.1#diff-8faf96d5986bd6149561eaa4cdb94399

So as to avoid any further issues, we recommend applying all the template changes listed in the release notes.

Further Reading

To help automate the template update process, we recommend leveraging the power of Git. For more information please refer to the guide in this blog post: https://blog.whmcs.com/112975/customising-templates-the-easy-way