-
Notifications
You must be signed in to change notification settings - Fork 58
Troubleshooting
This document is intended to help Xataface developers through some of the most common issues.
The most common issue mentioned in the forums is that an application comes up with a blank white screen in the web browser. This can happen for a number of reasons but the most common reason is because PHP has encountered a fatal error and your PHP installation is not set up to display errors.
The first step to troubleshooting this problem must be to find out what the error is. You can do that in one of the following ways:
- Check your Apache error log if you know where it is. One common location on many linux installations is
/var/log/httpd/error_log
- Turn on the display_errors flag in your php.ini file. I.e., in your php.ini file, find where it says
display_errors Off
display_errors On
. After this is done, restart your apache webserver. If you don't know where your php.ini file is located see the section later in this document on locating your php.ini file. If you don't have access to your php.ini file, move on to the next option.
- In your application's .htaccess file, add the following directives to enable displaying errors:
php_flag display_errors on
- At the beginning of your application's index.php file, add the following:
<?php
Once you can see the error messages that caused the blank white screen you are in a much better position to solve the problem.
Locating your php.ini file is actually quite easy. The quickest way is to create a php script with the following contents:
<?php
phpinfo();
then navigate to this page in your web browser. This look at the line where it says the php.ini file. It will list the path there.
This blog post discusses some common issues you may encounter when creating your first Xataface application.