Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6877859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:39:05+00:00 2026-05-27T04:39:05+00:00

Good morning guys. In error_log CakePHP is accusing the following: 28/11/2011 10:13:27 Error: [MissingControllerException]

  • 0

Good morning guys.
In error_log CakePHP is accusing the following:

28/11/2011 10:13:27 Error: [MissingControllerException] ImagesController Controller class could not be found.
# 0 /........./app/webroot/index.php (96): Dispatcher-> dispatch (Object (CakeRequest), Object (CakeResponse))
# 1 {main}

I haven’t idea what it is, because I haven’t ImagesController but have ImagesComponent.

Code snippet:

// app/Controller/BrandsController.php    
class BrandsController extends AppController {
public $components = array('Image');
...

public function add() {
    if ($this->request->is('post')) {
        if (!empty($this->request->data)) {

            if(!$this->request->data['Image']['name1']['error']) {
                $this->Brand->create();

                $image_path = $this->Image->uploadImage(
                    $this->request->data['Image'], 
                    'Brands',
                    array(
                        'folder'=>'upload/imagens/marcas',
                        'resize'=>175,
                        'thumb'=>0,
                        'original'=>false,
                        'name'=>$this->request->data['Brand']['brand']
                    )
                ); 

// app/Controller/Component/ImageComponent.php
class ImageComponent extends Component {

public $components = array('String');

function uploadImage($images, $controller, $data) {
    $erroimg = false;
    $isfile = false;
    ...

What is the cause of this error?
Sorry for my english

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T04:39:06+00:00Added an answer on May 27, 2026 at 4:39 am

    Your error log shows a stack trace with the methods leading to the error. In your case Dispatcher::dispatch was called. The docs of this method read:

    Dispatches and invokes given Request, handing over control to the involved controller. If the controller is set to autoRender, via Controller::$autoRender, then Dispatcher will render the view. Actions in CakePHP can be any public method on a controller, that is not declared in Controller. If you want controller methods to be public and inaccessible by URL, then prefix them with a _. For example public function_loadPosts() { }` would not be accessible via URL. Private and protected methods are also not accessible via URL.

    If no controller of given name can be found, invoke() will throw an exception.
    If the controller is found, and the action is not found an exception will be thrown.

    Internally, dispatch will call Dispatcher::parseParams to parse the Request to determine the controller to call. If any routes have been configured, parseParams will apply them

    Applies Routing and additionalParameters to the request to be dispatched.
    If Routes have not been loaded they will be loaded, and app/Config/routes.php will be run.

    In other words: you requested a URL that the Dispatcher wants to pass on to the Image controller. You don’t have an ImageController and that’s why you get the error. So, add an ImageController or change how CakePHP routes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Good morning, guys. I was just thinking about the small PHP crawler, that could
Good morning! I would like to ask some help from you guys on how
Good morning guys Is there a good way to use regular expression in C#
Good morning/afternoon, Not so much a problem but more of a query. If I
Good Morning! Given: public class FooClass { public void FooMethod() { using (var myEntity
Good morning, I am having trouble with the following code <html> <head> <title>highlight date</title>
Good morning, I wrote the following LINQ query public static Func<String, IEnumerable<String>> ListaCorreccoes =
Good morning, Suppose I have a class public class Class { int something; int[]
good morning. i am not a computer scientist by education, so please overlook any
Morning guys, So this is my first time developing a plugin for CakePHP. Here's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.