Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I keep getting an internal server error 500 #22

Open
johannesjo opened this issue Aug 17, 2012 · 3 comments
Open

I keep getting an internal server error 500 #22

johannesjo opened this issue Aug 17, 2012 · 3 comments

Comments

@johannesjo
Copy link

For all requests are made to the model where the component is called. Everything else looks like it is working.

Here is my controller code:
class CommentsController extends AppController {
public $components = array (
'RequestHandler',
'Rest.Rest' => array(
'catchredir' => true,
'actions' => array(
'extract' => array(
'index' => array('comments'),
),
),
),
);

public function index() {
    $comments = $this->Comment->find('all');
    // for testing: $comments= array("test","t8adsdas");
    $this->set(compact('comments'));
}

}

@johannesjo
Copy link
Author

found the error. i didnt set up a database table for the logs. maybe you should emphasize this in the readme.

@johannesjo
Copy link
Author

no its still there if i don't include the request handelere component (which i supose overwrites the plugins functionality)

@gmdodd
Copy link

gmdodd commented Dec 19, 2012

I had the same issue - in cakephp 2.X. In cakephp 2.x you need to manually load any required plugins by adding the following to the bootstrap.php file
CakePlugin::loadAll();
or
CakePlugin::load('Rest');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants