Jump to content

Attempted to load class from the global namespace.


Recommended Posts

As soon as cache was cleared, this started happening..

I'm overriding the AdminOrderController.php

Here is my override in /override/controllers/admin/AdminOrdersController.php

class AdminOrdersController extends AdminOrdersControllerCore {
    public function postProcess() {


Yes, an actual blank file as I've removed everything and nothing works.

Did I delete the class_index.php? Yes.

If it helps, when class_index.php is regenerated, there is no path to the AdminOrderControllerCore, next array is my override. Is that suppost to be like that?

EDIT: it actually looks like this:

'AdminOrdersController' => 
  array (
    'path' => '',
    'type' => 'class',
    'override' => false,
  'AdminOrdersControllerCore' => 
  array (
    'path' => 'override/controllers/admin/AdminOrdersController.php',
    'type' => 'class',
    'override' => false,

Is the file AdminOrderController.php present? Yes and not empty, it is as it is.

No matter what I do, all of a sudden this started happening.

What's going on?

The only difference is that before it worked, cleared cache, not working anymore with the error..

Edited by crustydod (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...