Error with allow_comments
Posted: 14 September 2010 01:42 AM   [ Ignore ]
Has a Great Personality
Rank
Total Posts:  36
Joined  2010-09-08

Hi there,

I’m running EE 2.1 Build 20100810 and Safecracker Build 20100913.

I’ve got a few safecracker entry forms up and running, but am having trouble with setting the entry to allow comments by default.  Whenever I use the allow_comments=“yes” tag in the safecracker entry form tag, I get some php errors.  Here’s the tag I’m using:

{exp:safecracker channel="channel_name" dynamic_title="Music Submission - [music_title]" return="template-group/thanks" allow_comments="yes"

And here’s the error message:

A PHP Error was encountered

Severity
Notice

Message
Undefined variablecomment_system_enabled

Filename
channel/mod.channel_standalone.php

Line Number
547

A PHP Error was encountered

Severity
Warning

Message
Cannot modify header information headers already sent by (output started at /path/to/system/folder/codeigniter/system/core/Exceptions.php:171)

Filenamecore/Common.php

Line Number
428 

Is there something I’m doing wrong, or is this a bug?

Thanks!

Profile
 
 
Posted: 14 September 2010 01:53 AM   [ Ignore ]   [ # 1 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

Looks like this is a bug with the entry form: http://expressionengine.com/forums/viewreply/791526/

I’ll try and fix this at some point, in the mean time you have the solution outlined in that EE forum post.

Profile
 
 
Posted: 14 September 2010 02:06 AM   [ Ignore ]   [ # 2 ]
Has a Great Personality
Rank
Total Posts:  36
Joined  2010-09-08

Ah…great - thanks Rob.  I’ll use the hidden field solution.

Profile