Well I'm trying Darkauth on an apache server now but having another
issue under the newest nightly 1.2 Cake

Warning (2): Cannot modify header information - headers already sent
by (output started at cake\app\controllers\users_controller.php:1)
[CORE\cake\libs\controller\controller.php, line 576]
Code | Context
$status =       "Location: http://localhostcake/users";
header - [internal], line ??
Controller::header() - CORE\cake\libs\controller\controller.php, line
576
Controller::redirect() - CORE\cake\libs\controller\controller.php,
line 557
DarkAuthComponent::requiresAuth() - APP\controllers\components
\dark_auth.php, line 122
DarkAuthComponent::startup() - APP\controllers\components
\dark_auth.php, line 90
Component::startup() - CORE\cake\libs\controller\component.php, line
100
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 229
[main] - APP\webroot\index.php, line 84

On Jun 20, 1:00 am, uniacid <[EMAIL PROTECTED]> wrote:
> I'm beginning to think this may be due to the way I have cakephp 1.2
> setup on my IIS server, I guess I might just have to move development
> to an apache based server since I see no hope in getting cake to work
> @ 100% on IIS as I've seen many others having issues, unless there
> might be a rewrite for IIS that I need to do for this comp?
>
> On Jun 19, 6:46 pm, uniacid <[EMAIL PROTECTED]> wrote:
>
> > Still seem to be having the issue, I tried updating through svn (@ rev
> > 7217) but I don't think it's fixed my particular issue.
>
> > Chris I'm using this in my dark_auth component
> > var $user_model_name = 'User';  for my user model name and models/
> > user.php:
>
> > <?php
> > class User extends AppModel {
> >     var $name = 'User';
> >     var $useTable = 'users';
>
> >     var $hasAndBelongsToMany = array(
> >         'Group' => array('className'    => 'Group',
> >         'joinTable'    => 'groups_users',
> >         'foreignKey'   => 'user_id',
> >         'associationForeignKey'=> 'group_id',
> >         'unique'       => true
> >         )
> >     );}
>
> > ?>
>
> > Mark Davis wrote:
> > > It appears the controller bug has been fixed in the latest nightly
> > > build of CakePHP.
>
> > > On Jun 19, 1:47�pm, Mark  Davis <[EMAIL PROTECTED]> wrote:
> > > > Hi Chris,
>
> > > > I've had this same error withDarkAuth, and it appears the component
> > > > variables aren't being set.
>
> > > > For example, in the startup method for the component the controller
> > > > and here variables should be set:
>
> > > > $this->controller = $controller;
> > > > $this->here = substr($this->controller->here,strlen($this->controller-
>
> > > > >base));
>
> > > > However, if I put in print_r($this) below the controller and here
> > > > variables are empty. It looks like this is a bug in CakePHP 1.2 RC1
> > > > that needs to be fixed!
>
> > > > Regards,
>
> > > > Mark Davis
> > > > Colovo Design
>
> > > > On Jun 19, 12:33�pm, theChrisWalker <[EMAIL PROTECTED]> wrote:
>
> > > > > The error is saying that $this->controller->{$this->user_model_name}
> > > > > is not an object.
> > > > > This means that the value of "$this->user_model_name" is not the
> > > > > correct name of the User model in your controller, or that your
> > > > > controller has not loaded the User model.
>
> > > > > Someone else has emailed me with a remarkably similar issue, which
> > > > > made me think that the $this->controller vairable had not been given
> > > > > the correct copy of the controller, however that is performed in the
> > > > > startup() method, which is passed a reference to the Object. And many
> > > > > other controller functions are called from it...
>
> > > > > Unfortunately I haven't been able to replicate the issue, using PHP4
> > > > > or PHP5, with CakePHP 1.2 RC1, so haven't been able to work out what
> > > > > could cause it.
>
> > > > > Any info on your setup, e.g. which controller this is being called
> > > > > from, what models it has access to etc.. would be useful.
>
> > > > > Hope I can help!
>
> > > > > On Jun 19, 2:19 am, uniacid <[EMAIL PROTECTED]> wrote:
>
> > > > > > I've followed all the tutorials on the bakery by chris and on his
> > > > > > blog, so far I've just been testing this and I've run into this 
> > > > > > issue
> > > > > > once I try to "login":
>
> > > > > > Fatal error: Call to a member function on a non-object in app
> > > > > > \controllers\components\dark_auth.php on line 256
> > > > > > "$check = $this->controller->{$this->user_model_name}-
>
> > > > > > >find($conditions);"
>
> > > > > > I have my user and group models & tables all setup so I'm not sure 
> > > > > > why
> > > > > > I'm getting this error,
>
> > > > > > Any help is appreciated,
> > > > > > thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to