Page 1 of 1

No template as soon as I am logged

PostPosted: Mon Nov 12, 2007 8:48 am
by Jean
Hello Steve,

I went through the forum but did not see any explanation. The login page is OK but as soon as I am logged I have a white page with some text on.

My templates-c directory is writable.

Would you have any explanation ?

Thank you again
Jean

PostPosted: Mon Nov 12, 2007 11:31 am
by shannah
Generally this means that your templates_c directory (where the smarty compiled templates are stored) is not writable by the web server.

You can either store your compiled templates in your application's directory (i.e. path/to/app/templates_c) or in the Dataface templates_c directory (i.e. paht/to/dataface/Dataface/templates_c).

If you have a templates_c directory in your application folder, then this will be used. Otherwise it will use the dataface one.

In either case the templates_c directory must be writable by the web server. e.g. chmod 777

-Steve

PostPosted: Tue Nov 13, 2007 3:46 am
by Jean
Thank you Steve for your patience. I followed your advice and change the owner of the templates_c directory into Apache while keeping the 777 chmod.

Unfortunately, the problem is still defying me ;)

I still don't have any HTML header nor trace of any template. I checked out all I could (path...) but could not locate my error.

Jean

Troubleshooting Tips

PostPosted: Tue Nov 13, 2007 4:50 am
by ADobkin
You might want to check your web server logs to see if there are any errors listed there right after you try to load the site. If you are using Apache, check the error_log specifically, but also access_log.

If that doesn't show anything, you could try looking for PHP errors by putting the following two lines at the top of your index.php file:

Code: Select all
error_reporting(E_ALL^E_NOTICE);
ini_set('display_errors','on');


Good luck!

PostPosted: Tue Nov 13, 2007 7:14 am
by Jean
Thank you Steve,
I have no errors in the error log, neither displaying with
Code: Select all
error_reporting(E_ALL^E_NOTICE);
ini_set('display_errors','on');


In the access log I have
Code: Select all
192.168.1.8 - - [13/Nov/2007:15:08:41 +0100] "GET /dataface-0.7.1/images/table.gif HTTP/1.0" 304 - "http://devphp/fibre/index.php?-action=list&-table=demandes_particulieres&-cursor=0&-skip=0&-limit=30&-mode=list&-sort=id+asc" "Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9"


Jean

PostPosted: Tue Nov 13, 2007 1:00 pm
by shannah
Hi Jean,

Difficult to comment without knowing a little more about your application.
1. Have you been able to get any simle examples working on your server, or is this the first one you have tried on this server?

2. Do you have any custom actions defined in your actions.ini file?

-Steve

PostPosted: Wed Nov 14, 2007 1:51 am
by Jean
Yes thank you very much Steve, I had the same problem on an other server as you suggested, so I went through each file in my app and found a forgotten line in a file.
Not good to do several tasks at the same time :oops:
Sorry for this silly error and for your time!
Kind regards
Jean