Troubleshooting Empty Page Contents: A Comprehensive Guide

thumb_up 1  ·  sell Troubleshooting empty page content issues, Resolving problems with missing content in WHMCS pages, Fixing issues related to empty page displays.

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?

Related Articles

description

Step-by-Step Guide to Installing WHMCS

To start using WHMCS, you will need to install it on your server. You may need help from your hosting provider or system administrator…

arrow_forward
description

Configuring cPanel Site Software for WHMCS Integration: A How-To Guide

You can install WHMCS using cPanel's Site Software feature. Before you can perform the installation, a WHM user must enable WHMCS…

arrow_forward
description

Effortless WHMCS Installation Using cPanel Site Software: A Step-by-Step Tutorial

You can install WHMCS easily using cPanel's Site Software feature. To do this: 1. If you have not already done so, configure…

arrow_forward
description

Configuring WHMCS Cron Jobs: Step-by-Step Setup Guide

You will need to configure the cron job as soon as you finish installing WHMCS. The cron job executes WHMCS's automation tasks,…

arrow_forward
description

Customizing the WHMCS Cron Schedule: Configuration Guide

The WHMCS cron job performs many of the automated tasks for your WHMCS installation. You can customize when and how often it runs…

arrow_forward
arrow_back « Back