Smarty blank white page 1


A common reason for the blank white page is an error in the smarty template syntax.  Check for unclosed brackets or comment out blocks of code and refresh the page and see if it works.

Another possibility is permissions.  I recently created a branch in our code repository so I could work on a new feature for our application.  After I performed a checkout of the code and altered my config file to work with the new directory I created on my local server, only a blank white page would display.  I tried setting the $debugging variable in smarty to true so I could view the debug output in a popup window, but that didn’t work either.  Long story short and six hours later, I was again messing with permissions on smarty’s templates_c directory on windows.  I unchecked the “read only” checkbox on windows a dozen times (it comes back as checked automagically everytime) and that didn’t work.  In the past, as long as the “everyone” user had full control of the directory, then all was good.  Not this time.  I was pretty fed up with this not working and was trying anything to get something on the screen other than a blank white page.  In the directory security, I gave full control to every user available and walla… It works!!!  Hope this will help somebody else.



Leave a comment

Your email address will not be published. Required fields are marked *

One thought on “Smarty blank white page