Fatal error: Class 'Comment' not found

Feed 8 posts, 3 voices

Aug 22, 2008 17:26
Avatar
3 posts

Hello,

Just installed Frog 0.9.3 and then uploaded a new theme Indigo. I follwed the install instructions but when running the site the display is now what it should be and I get the following error code

Fatal error: Class 'Comment' not found in /home/arrows/public_html/frog/app/frontend/classes/Page.php(370) : eval()'d code on line 30

Any help please would be most greatful

 
Aug 22, 2008 17:30
Avatar
818 posts

I think the problem you are having is the one mentioned in this thread. Check that out and let us know how you get on.

(Spinal Tap, eh? Nice one!)

 
Aug 22, 2008 18:49
Avatar
3 posts

This code is identical to what is in the layout <?php if ($this->comment_status != Comment::NONE) $this->includeSnippet('comment-each'); ?> <?php if ($this->comment_status == Comment::OPEN) $this->includeSnippet('comment-form'); ?>

I have tried another theme and still get the same error message.

Where should the class be located? so I can look there to see if it exists.

Well at the time a few years ago I thought the album was SniffTheGlove but infact it was wrong and the album is SmellTheGlove, so now I look a plonker LOL but suprising how many people think the same as I did.

 
Aug 23, 2008 04:42
Avatar
818 posts

Hi Sniff - I have a feeling you haven't enabled comments in your Frog installation:

  • go to your backend Admin page, and you will see a list of plugins;
  • click in ("tick") the "enable" box beside the Comments plugin;
  • click on the "Settings" tab (beside the "Plugins" tab) underneath the "Administration" heading;
  • click "Save", then view the site.

It ought to be working! I live in hope....

(Btw: "Sniff", "Smell" ... same difference! Or better yet, "sniff" is a more subtle allusion.... :)

 
Aug 23, 2008 04:44
Avatar
275 posts

For that class to exist, you need the Comment plugin activated. If it's not, you'll get the error from top. Hope this helps. As default, the Comment plugin is not activated, so that should be the problem.

 
Aug 23, 2008 04:44
Avatar
275 posts

Hahaha, you've posted in the same time with me.

 
Aug 23, 2008 04:52
Avatar
818 posts

We're having an exciting Saturday morning, aren't we, Bd! :)

 
Aug 23, 2008 05:07
Avatar
3 posts

You are correct! Comments not enabled. Once enabled it works fine.

If I disable Comments in the future then this problem will occur again, so would it just be easy to remove the comment codes above from the layout etc.?

Thanks, and now I can investigate this cms in confidence that if I come across a problem there are people who and willing and happy to help. Thanks

 
Aug 23, 2008 05:15
Avatar
818 posts

@Sniff - "If I disable Comments in the future then this problem will occur again, so would it just be easy to remove the comment codes above from the layout etc.? - That's correct. That's why a number of the "themes" do not have any comment code included in the first place! It seems you grabbed the ones that did.

"there are people who and willing and happy to help" - it may be a small community, but I think it is a happy and helpful one! Hope you have success with Frog!