- b2evolution CMS Support Forums
- b2evolution Support
- General Support
- Possible bug in User Perms and Multi-Author blog
1 jibberjab May 27, 2014 07:28
I have a new 5.0.9 installation using the forum layout which a friend and I are using to keep a log of a project we are developing. We would like to be able to create posts and comments, but *not* edit any older content. Once a post or comment has been save, it can't be edited later. So:
We created a few categories using the admin account. Then, two users were added, both with User Level 9 and Moderator Group. Under Blogs > BlogName > User Perms, both users are members of the blog and under "Post Type" both users have all checkboxes enabled.
Under "Edit Posts / User Level" both users have 'No Editing' selected.
Under "Edit Comments / User Level" both users have 'No Editing' selected.
The "No Editing" selection seems to prevent *any* writing in that blog, not just editing of old posts or comments. When attempting to preview a test post, I get the following error:
Additional information about this error:
Requested Item from T_items__item without ID!
Backtrace:
debug_die( "Requested Item from evonet_items__item without ID!" )
File: /home/public_html/forum/inc/_core/model/dataobjects/_dataobjectcache.class.php on line 549
DataObjectCache->get_by_ID( NULL, false )
File: /home/public_html/forum/inc/comments/model/_comment.class.php on line 263
Comment->get_Item( )
File: /home/public_html/forum/inc/comments/model/_comment.class.php on line 2758
Comment->rating_input( Array(1) )
File: /home/public_html/forum/skins/forums/_item_comment_form.inc.php on line 292
require( "/home/public_html/forum/skins/forums/_item_comment_form.inc.php" )
File: /home/public_html/forum/inc/skins/_skin.funcs.php on line 835
skin_include( "_item_comment_form.inc.php", Array(47) )
File: /home/public_html/forum/skins/_item_feedback.inc.php on line 308
require( "/home/public_html/forum/skins/_item_feedback.inc.php" )
File: /home/public_html/forum/inc/skins/_skin.funcs.php on line 844
skin_include( "_item_feedback.inc.php", Array(31) )
File: /home/public_html/forum/skins/forums/_item_block.inc.php on line 248
require( "/home/public_html/forum/skins/forums/_item_block.inc.php" )
File: /home/public_html/forum/inc/skins/_skin.funcs.php on line 835
skin_include( "_item_block.inc.php", Array(2) )
File: /home/public_html/forum/skins/_single.disp.php on line 29
require( "/home/public_html/forum/skins/_single.disp.php" )
File: /home/public_html/forum/inc/skins/_skin.funcs.php on line 844
skin_include( "$disp$", Array(11) )
File: /home/public_html/forum/skins/forums/index.main.php on line 211
require( "/home/public_html/forum/skins/forums/index.main.php" )
File: /home/public_html/forum/inc/_blog_main.inc.php on line 687
require( "/home/public_html/forum/inc/_blog_main.inc.php" )
File: /home/public_html/forum/index.php on line 60
If I remove "No Editing" and instead set "Own Posts" or "All Posts" and then try to preview the test post, it works without error. So the selection of "Edit Posts -> No Editing" suggests no editing, but instead it seems to actually mean "no creating and no editing". Is there a way to allow creating new content, but at the same time prevent any editing of existing content?
EDIT: It seems to be only when Posts *and* Comments are both set to "No Editing." If I select Posts -> No Editing and Comments -> Anon Only I don't get the error.
jj.