Ana DEV
Ana DEV

Reputation: 1030

Fatal error: Cannot redeclare class ResourceCreateManagerController when creating new page or doing update in modx revolution

I just wanted to create a new page in modx revolution and I got this error when clicking on plus icon Fatal error: Cannot redeclare class ResourceCreateManagerController in ....... public_html/manager/controllers/default/resource/update.class.php I could create a new page by clicking on document icon but when I wanted to change the template of this page and update it I got that same error.What I can do please?

Upvotes: 1

Views: 688

Answers (3)

mooreds
mooreds

Reputation: 4978

I ran into this problem when my config.inc.php had different base paths for the different constants (MODX_CORE_PATH, MODX_PROCESSORS_PATH). This is an artifact of how we manage this file.

Bringing all those into alignment (where they all had the same base path) resolved the issue.

Upvotes: 1

Ana DEV
Ana DEV

Reputation: 1030

Here is the solution.I found the code where class was created and add this code aboce Class creation code

if (! class_exists('ResourceUpdateManagerController')) {
  create class ResourceUpdateManagerController
}

And that's it.

Upvotes: 1

Sean Kimball
Sean Kimball

Reputation: 4494

did you uninstall or update an extra recently? check your plugins to see if one of them is trying to do something while managing resources. your logs should provide more clies than just the error.

Upvotes: 0

Related Questions