Hi,

I changed a couple of methods in one of my controllers and suddenly
receive the following error,

Warning: Configure::include() [configure.include]: Unable to access /
home/www/sporter.dk/config/core.php in /home/www/sporter.dk/cake/libs/
configure.php on line 609

Warning (2): Configure::include() [configure.include]: Unable to
access /home/www/sporter.dk/config/bootstrap.php [CORE/cake/libs/
configure.php, line 613]

The odd thing is that it worked without any problems just hours ago.

Here's the method I changed in my controller:

        function matches()
        {
                $this->layout = 'empty';
                Configure::load('notifications');

                $difference = time() - Configure::read('Notification.last');
                $diff = 85400;
                if ($difference > 86400)
                {
                        $groups = $this->Activity->query(
                                        'SELECT DISTINCT `User`.`zip`,
                                        `Activity`.`id`,
                                        `Activity`.`name`,
                                        COUNT(`User`.`id`) AS user_count
                                        FROM `users` User, `activities` Activity
                                        WHERE `User`.`activity_id` = 
`Activity`.`id`
                                        GROUP BY `User`.`zip`
                                        HAVING `user_count` > 3'
                                );

                        foreach ($groups as $group)
                        {
                                $users = $this->User->find(
                                        'all',
                                        array(
                                                'conditions' => array(
                                                        'User.activity_id' => 
$group['Activity']['id'],
                                                        'User.zip' => 
$group['User']['zip']
                                                ),
                                                'fields' => 
array('Activity.name', 'User.fullname',
'User.email'),
                                                'recursive' => 1
                                        )
                                );

                                foreach ($users as $user)
                                {
                                        $this->mailMatch($user);
                                }
                        }

                        Configure::write('Notification.last', time());
                }
        }

        private function mailMatch($data)
        {
                $this->Email->to = $data['User']['email'];

                $this->Email->subject =
                        __(sprintf('A group has been formed for %s in your 
area!',
                                strtolower($data['Activity']['name'])), true
                        );

                $this->Email->replyTo = '[EMAIL PROTECTED]';
                $this->Email->from = 'sporter <[EMAIL PROTECTED]>';
                $this->Email->template = 'match';

                $this->set('user', $data);

                $this->Email->send();
        }

What's even more strange is that, while CakePHP is looking for /home/
www/sporter.dk/config/core.php the core.php file is really in /home/
www/sporter.dk/app/config/core.php

I've tried reuploading the complete site. All permissions are as they
should be.

I appreciate any help :)
Thanks in advance!

- Dan
--~--~---------~--~----~------------~-------~--~----~
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