Fork me on GitHub

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Support for Vanilla Forums Cloud product

In this Discussion

Ready to contribute?

Amazing! Sign our contributors' agreement and then join us on GitHub.

Current releases are 2.1.3 (9 Sept 2014) and 2.0.18.13 (5 Aug 2014)

Ready for 2.1? Find out if your plugins are compatible. 2.0 will no longer be updated after Dec 2014.

Error when posting: Fatal error

edited October 2010 in Vanilla 2.0 Help
Whenever I attempt to post something on my forums, I get this error in an inline-popup:


"The "DraftModel" class could not be found." LOCATION: /home/seiferttristan/public_html/discuss/library/core/class.controller.php > 794: } else { > 795: $this->$Property = new $Class(); > 796: } > 797: } else { >>> 798: trigger_error(ErrorMessage('The "'.$Class.'" class could not be found.', $this->ClassName, '__construct'), E_USER_ERROR); > 799: } > 800: } > 801: } > 802: BACKTRACE: [/home/seiferttristan/public_html/discuss/library/core/class.controller.php] PHP::Gdn_ErrorHandler(); [/home/seiferttristan/public_html/discuss/library/core/class.controller.php 798] PHP::trigger_error(); [/home/seiferttristan/public_html/discuss/library/core/class.dispatcher.php 227] Gdn_Controller->GetImports(); [/home/seiferttristan/public_html/discuss/index.php 38] Gdn_Dispatcher->Dispatch();



What could be causing this? I have not touched a single file within a week or so, and this only started happening today.

Please help me with this, as I need it working urgently. Thanks :)

Comments

  • Hmm, I did a search for DraftModel throughout all files, and it did show up in a model file.

    I have figured the issue out - the file
    applications/vanilla/models/class.draftmodel.php
    is never included anywhere, so I simply added a

    require("/home/seiferttristan/public_html/discuss/applications/vanilla/models/class.draftmodel.php");

    in the files that had to require them.
Sign In or Register to comment.