Search code examples
modx

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?


Solution

  • 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.