Troubleshooting » Blank Pages

Troubleshooting Blank Or Empty Pages

This is probably being caused by one of three things:

  1. You have added javascript or CSS code containing curly brackets to a template and not enclosed the code in Smarty {literal}{/literal} tags.
  2. Your Smarty 'cache' and 'templates_c' directories do not have read/write/execute permissions.
  3. One of your Smarty template files in the selected theme directory has an error in it like mismatched curly brackets { }.

1. Inline javascript or CSS

Check that there is are {literal} and {/literal} Smarty tags before and after any JavaScript code in your template files. This will ensure that the Smarty template engine ignores the curly braces in your code. See lines 2 and 6 in this example:

<script>
//{literal}
var foo = function bar () {
    alert('This function is escaped because the JavaScript code contains curly braces.');
}
//{/literal}
</script>

2. Smarty Directory Permissions

Ensure that the permissions on the directories 'cache' and 'templates_c' in resources/smarty/ are set to '777' (read/write/execute) for all users.

3. Smarty tag mistakes and typos

Try switching to the default design theme 'Charcoal' that comes with the software. If you've edited any of the template files that came with the script, make sure that your Smarty tags are correctly formatted with no mismatched curly braces.




Last edited on Sunday July 01 2012 at 03:38:36

Search Pixaria Documentation

You can search the Pixaria documentation by entering keywords here. Keep your search simple for the best results.