Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryRepositoryBL.ConvertToRoles ErrorRepositoryBL.ConvertToRoles Error
Previous
 
Next
New Post
5/7/2008 10:32 AM
 

I guess I spoke too soon - I was able to get everything displaying correctly, but then I decided to display a different template.  When I click on update, I am getting the same error, same role error logged in the viewer.

I was able to put a new repository on a new page successfully, but when I went and edited the settings, I get that role error again.

I have checked to make sure that the folders have the correct roles assigned,,,,  any other hints?

 
New Post
5/10/2008 10:07 AM
 

Hi Patty,
I believe it's still the same problem. Here's what you should try to make sure you have it all cleaned up properly...

1. Run a query to see what roles are being used by the Repository module. Go to the Host->SQL page and execute the following query

SELECT SettingValue
FROM ModuleSettings WHERE ModuleID in
(SELECT ModuleId FROM Modules WHERE
ModuleDefID=(SELECT ModuleDefId FROM ModuleDefinitions WHERE FriendlyName='Repository'))
AND SettingName in ('downloadRoles','moderationRoles','ratingRoles','uploadRoles','commentRoles')

That will give you a list of all of the roles being used by all of your Repository modules, which will look something like this...

SettingValue
;-1;0;
;-1;0;
;0;
;-1;0;8;
;0;
;-1;0;
;-1;0;1;7;
;0;
;-1;0;
;0;
 
So in the above example ( ignoring -1 which means all users ) you can see that the following RoleIDs are being used ... 0, 1, 7 and 8.

Now, run the following query to check your Roles table.

SELECT * from Roles

Make sure that all of the roles you found in your Repository settings are present. So in this example, make sure you have Roles defined with RoleIDs of 0, 1, 7 and 8. If one is missing, then you need to edit the ModuleSettings table, find the setting that is using the invalid RoleID and remove it from the semi-colon delimited list.

Let me know if that helps...

 
New Post
5/15/2008 11:34 AM
 

Thanks for the detailed instructions

I followed them,,,,  removed the pesky roleID of 3 in the module settings,,, verified that role did not exist in the Roles table,,,  page still didn't display.  Tried updating the repository page, ran the SQL settings again, and roleID of 3 appeared again in the module settings, so that roleID must be buried somewhere in some table or hidden values or something, so I decided cheat and add a bandaid fix of a a role entry with 3 as the ID, and now it works.

I cannot figure out anywhere where that role ID is stored or why it would be writing, but if it is going to cause me issues, it will at least my client's page is displaying now!

As an aside,,, can't wait for the new repository module to come out - it will fix quite a few quirks that my clients want to be able to do!!!

thanks for your help.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryRepositoryBL.ConvertToRoles ErrorRepositoryBL.ConvertToRoles Error


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out