ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Fatal Error When Commenting... but it still posts

January 25, 2012 10:18pm

Subscribe [2]
  • #1 / Jan 25, 2012 10:18pm

    lealea

    202 posts

    Fatal error: Call to undefined method CI_Model::CI_Model() in /expressionengine/modules/comment/models/comment_model.php on line 29

    I get the following error when I press Submit when commenting in the latest 2.4.0. I use just the default template code with some styling added, so nothing crazy.

    However, when I go back to the entry page, I notice the comment has actually posted.

    Help?

  • #2 / Jan 26, 2012 8:52pm

    Dan Decker

    7338 posts

    Hey Lea,

    I just did a test to see if I could replicate and I had no errors at all. My 2.4 was a fresh install though. Are you seeing this after an update? Another thing that seems odd is the path in the error. There is no model directory under /system/expressionengine/modules/comment/ The file the error reference should be located at /system/expressionengine/models/comment_model.php Can you look in those two places and let me know what you find?

    Thanks!

  • #3 / Jan 26, 2012 8:58pm

    lealea

    202 posts

    This was an upgrade from 2.1 to 2.4. Checking the /modules/ folder there WAS (strangely) a comment_model.php file there. I deleted it and now no more error. Things work!

  • #4 / Jan 26, 2012 9:00pm

    Dan Decker

    7338 posts

    Wow, I kinda stumbled into that one! 😉

    Awesome! Is there anything else I can assist you with?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases