YAFLogo

diogo
  • diogo
  • 64.4% (Friendly)
  • YAF Forumling Topic Starter
13 years ago
1 - Create a new Role
2 - Delete from YAF
3 - Add to YAF

After 3 it will give the below error:


Procedure or function 'pcp_group_save' expects parameter '@Style', which was not supplied.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Data.SqlClient.SqlException: Procedure or function 'pcp_group_save' expects parameter '@Style', which was not supplied.

Source Error: 


Line 154:          // save role and get its ID
Line 155:          int _initialPMessages = 0;
Line 156:          long groupID = DB.group_save(
Line 157:            DBNull.Value, PageContext.PageBoardID, e.CommandArgument.ToString(), false, false, false, false, 1, _initialPMessages, null, 100);
Line 158:

Source File: c:\Inetpub\pcpv2\pages\admin\groups.ascx.cs    Line: 156 
Sponsor

bbobb
  • bbobb
  • 100% (Exalted)
  • YAF Developer
13 years ago
I can't reproduce it. Try and change this in /install/mssql/procedures.sql
and launch upgrade.

CREATE procedure [{databaseOwner}].[{objectQualifier}group_save](
@GroupID int,
@BoardID int,
@Name nvarchar(50),
@IsAdmin bit,
@IsStart bit,
@IsModerator bit,
@IsGuest bit,
@AccessMaskID int=null,
@PMLimit int=null,
@Style nvarchar(255)=null,
@SortOrder smallint
diogo
  • diogo
  • 64.4% (Friendly)
  • YAF Forumling Topic Starter
13 years ago
It did the Job of correcting it! Fixed!
Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
13 years ago
bbobb, you'll commit the fix to the SVN?
bbobb
  • bbobb
  • 100% (Exalted)
  • YAF Developer
13 years ago
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button