Sterc / FormIt

A dynamic form processing Snippet for MODX Revolution
https://docs.modx.com/current/en/extras/formit
33 stars 58 forks source link

Class 'FormItBaseManagerController' not found #42

Closed HenrikNielsen closed 9 years ago

HenrikNielsen commented 9 years ago

I had tried to install the latest version of FormIt on a upgraded version of MODX to 2.3.3-pl, which give me this, when I try to access the new function under "Extras" -> "FormIt":

Fatal error: Class 'FormItBaseManagerController' not found in /home/XYZ/public_html/core/components/formit/index.class.php on line 6 - where the file are existing.

I've also tried it under a fresh install, but with the same result. (PHP Version 5.5.17)

In Modxcloud there are no problems! (PHP Version 5.4.34)

Bumme commented 9 years ago

What hosting provider do you use?

HenrikNielsen commented 9 years ago

It's a danish host: meebox.net If I can provide you with some extra information, please let me know.

I have no problems with the other/normal functions in Formit.

Bumme commented 9 years ago

I think i know the problem.

Could you change the following and let me know if its works? Open /core/components/formit/index.class.php and put the following:

class IndexManagerController extends FormItBaseManagerController { public static function getDefaultController() { return 'home'; } }

Below the FormItBaseManagerController. Right now its above, so cut and paste.

HenrikNielsen commented 9 years ago

Thanks! I've just tested it with your changes, and it all works!