Blank Pages after Successful Installation

Blank pages can be caused by errors or if your server doesn’t meet the minimum requirements for iBilling. To see exactly what the issue is, We will have to Print the Error Message. iBilling has built in Debugging Function & by simply change a variable, iBilling will try to print the Error Message in the Screen.

To achieve this you will need to open config file(application/config.php) using a text editor & change variable $_app_stage = ‘Live’; to $_app_stage = ‘Dev’;


Now browse the app, Some error message should be showing.

An error message occurring will be shown if it’s a PHP error.

Here is the Some Common Error-

  1. Fatal error: Uncaught exception ‘SmartyException’ with message ‘unable to write file ui/compiled/*******unable_to_write_file_errorThat means the system Can’t write file in the template compiled directory. Here is the common Reason for this Error-
    You have uploaded the file by login as “root” user:
    As you have uploaded the file as root, all the folders and files owner and group is “root” & user id is – ‘0’ So it’s not possible to write file in this directory via PHP.
    Solution 1:  If you uploaded the file by login as ‘root’, delete all files & re upload by login as ftp User & Install again
    Solution 2: This is the quick solution for Advanced User, Login as ‘root’ via SSH or Terminal & change the file / folder owner. Here is the example command for this-

For Ubuntu:
sudo chown -R www-data:www-data /var/www/billing/
For cnetos:
sudo chown -R apache:apache /var/www/billing/

Base Table or view not found:
That means the database was not imported when you installed. Try to import the database manually. The sql file is located here- application/install/primary.sql & browse again.

Unable to Connect Database / can’t connect to the database:
Please make sure database credentials is correct, you granted correct permissions, your host is allowed etc. Here is a sample script to test database. You can create a file named dbtest.php and browse the page to check if connection is successful-.

Use of undefined constant __DIR__ – assumed ‘__DIR__’
In older version of PHP you will see above error. Please use PHP version 5.3+.
If you are using cpanel you can do this from “Select PHP Version” menu.

When you are choosing version, make sure you selected required php options like, PDO, PDO MySQL. MySQLi, GD etc.