Get The Most Affordable Hosting in the World!

Starting at just $1.87/month, Vercaa offers unbeatable pricing for world-class web hosting services.

Fast, reliable, and secure hosting to power your website without breaking the bank. Plus, enjoy a free CDN for faster loading times worldwide!

Get Started Now!

Symptom

When visiting specific pages in a WHMCS installation, the page content appears to be missing. 

The following screenshots show the shopping cart and registration pages exhibiting the issue:

Shopping Cart with missing page content
Register page with missing content

Cause

The template file for the page is missing or contains a syntax error.

Diagnosis

To diagnose this:

1. Log in to the WHMCS Admin Area.

2. Go to Configuration > System Logs.

Configuration > System Log

3. Review the System Activity Log for Smarty Error entries. The error message provides details about the cause, including the filename of the problematic template file:

System Activity Log

Resolution

The first message indicates that the /templates/twenty-one/clientregister.tpl file is missing:

Smarty Error: Default handler: No template default content for 'file:twenty-one/clientregister.tpl'
 

To resolve this error, restore or upload the missing file that the Smarty Error identified.

 

The second message indicates invalid code in the /templates/orderforms/standard_cart/configureproduct.tpl file around line 5:

Smarty Error: Syntax error in template  "file:/home/v84whmcssupport/public_html/whmcs/templates/orderforms/standard_cart/configureproduct.tpl"   on line 5 "'addToCart': '{$LANG.orderForm.addToCart|escape}',"  -  Unexpected "     "
 

To resolve the error, open the file and examine the code syntax around the line number. Correct the syntax error and save the file.

In this example, a duplicated { character causes the syntax error:

configureproduct.tpl - cPanel File Manager v3 — Mozilla Firefox
 
 
 
The End! should you have any inquiries, we encourage you to reach out to the Vercaa Support Center without hesitation.
Was this answer helpful? 1 Users Found This Useful (1 Votes)