permissions/ApplicationDelegate - Cannot modify header infor

Archived from the Xataface Users forum.

brice — Tue Jul 22, 2008 12:40 pm

Hi,

I am working on tutorial (very good to start on)

I have a little error on “permissions”

  • i Have created ApplicationDelegate.php, users table and modified conf.ini

  • in the file “ApplicationDelegate.php” i have added the code given by your web site.

But i have those messages after loading up the application

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\xataface\mysitedataface\conf\ApplicationDelegate.php:2) in C:\xampp\htdocs\xataface\Dataface\AuthenticationTool.php on line 280

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\xataface\mysitedataface\conf\ApplicationDelegate.php:2) in C:\xampp\htdocs\xataface\Dataface\AuthenticationTool.php on line 292

I made some tests and the messages disappear when i only have those lines in ApplicationDelegate.php

getLoggedInUser(); echo "user : $user"; //if(!isset($user))return Dataface\_PermissionsTool::NO\_ACCESS(); } } ?> if i delete "//" in front of "f(!isset($user))" the problem appear again i have searched on the forum but no people have got same issue regards --- **shannah** — Tue Jul 22, 2008 2:09 pm The most likely cause of this error is whitespace in your Application delegate file before the opening tag. -Steve --- **brice** — Sun Jul 27, 2008 6:55 pm After many tests and hours , i have deployed your application on an other computer with succes I have found the reason of my issue on "permissions" Your ApplicationDelegate.php example is starting by : " it's not the cause.;. sorry for asking your help for nothing (sorry for my french-englis)