Bug reports Found a bug? Post it here please.
Version 4.x > Bug reports > Error in Wiki page View modes: 
User avatar
Member
Member
dulani_udayangani-yahoo - 3/20/2009 4:55:45 AM
   
Error in Wiki page
Hi,

I have got error in Wiki page add new document (Corporate site)

" An error occurred when saving data:[CMSAbstractWebPart.PagePlaceholder]: Parent CMSPagePlaceholder not found."

Please send me the solution.... .

Thanks

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 3/20/2009 6:48:42 AM
   
RE:Error in Wiki page
Hello,

Unfortunately, it's a bug in current version. We are sorry for inconvenience. There is missing decision statement in User contribution webparts. Anyway we have a workaround for this. Please go through following instructions:

1. Please open 'CMSWebParts/UserContributions/ContributionList.ascx.cs' and 'CMSWebParts/UserContributions/EditContribution.ascx.cs' files.

2. Please locate CMSForm_OnAfterSave() method:

void CMSForm_OnAfterSave()
{
// Reload data after saving the document
this.PagePlaceholder.ClearCache();
this.PagePlaceholder.ReloadData();
}

and change it following way:

void CMSForm_OnAfterSave()
{
if (!this.StandAlone)
{
// Reload data after saving the document
this.PagePlaceholder.ClearCache();
this.PagePlaceholder.ReloadData();
}
}

3. You can do the same with 'CMSWebParts/Community/GroupContributionList.ascx.cs' and 'CMSWebParts/Community/GroupEditContribution.ascx.cs' files.

Best regards
Ondrej Vasil