Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Cannot Activate CAPTCHA For RegistrationCannot Activate CAPTCHA For Registration
Previous
 
Next
New Post
8/22/2014 4:16 AM
 

Robin,

no. The table is found in the SQL-Server database. Try the following statement under Host :: SQL:

SELECT PortalID, SettingName, CultureCode
FROM {databaseOwner}{objectQualifier}PortalSettings
ORDER BY PortalID, SettingName, CultureCode

Then check if you have records with the same values in the fields PortalID + SettingName, and delete the ones which are not in the default portal language, eg. you have two languages en-us and nl-nl, and en-us is the default language, and get two records like this:

PortalID SettingName CultureCode
0 AllowUserUICulture en-us
0 AllowUserUICulture nl-nl

then delete the second one by

DELETE FROM {databaseOwner}{objectQualifier}PortalSettings
WHERE PortalID=0 AND SettingName='AllowUserUICulture' AND CultureCode='nl-nl'

(Anyway I would wait for Sebastian to confirm that I did understood him correctly...)

Happy DNNing
Michael


Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
New Post
8/25/2014 8:39 AM
 
hello,
i have exactly the same thing,
i have not two diffrent "CultureCode" in the same database for the same "AllowUserUICulture" "PortalID"
i have more than 2 Portals but only 2 in the tabe result :

Host :: SQL:

SELECT PortalID, SettingName, CultureCode
FROM {databaseOwner}{objectQualifier}PortalSettings
ORDER BY PortalID, SettingName, CultureCode
22 AllowUserUICulture fr-fr
25 AllowUserUICulture fr-fr

error message :
InnerException:An item with the same key has already been added.
FileName:
FileLineNumber:0
FileColumnNumber:0
Method:System.Collections.Generic.Dictionary`2.Insert
StackTrace:
Message:
System.ArgumentException: An item with the same key has already been added.
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at DotNetNuke.Entities.Portals.PortalController.GetPortalSettingsDictionaryCallback(CacheItemArgs cacheItemArgs)


Cheers from France, Michel
 
New Post
8/25/2014 10:50 AM
 

Michel,

there is probably nothing wrong - the first two numbers are the PortalID, so the value is set to something there.  You can see the value when you enter this statement:

SELECT PortalID, SettingName, SettingValue, CultureCode
FROM {databaseOwner}{objectQualifier}PortalSettings
ORDER BY PortalID, SettingName, CultureCode

For the other portals it is a default value I guess, so there should be no course for alarm.

The AllowUserUICulture setting was just an example, you should check for settings with the same PortalID + SettingName, but different CultureCode values.

Happy DNNing!
Michael


Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
New Post
8/26/2014 8:55 AM
 
there might be ANY other setting with 2 values for the same portalID, but different culturecode.
This is a known issue and a fix (pull request #144) should hopefully be included with DNN 7.3.3

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
8/27/2014 3:18 AM
 
Michael Tobisch wrote:

Robin,

no. The table is found in the SQL-Server database. Try the following statement under Host :: SQL:

SELECT PortalID, SettingName, CultureCode
FROM {databaseOwner}{objectQualifier}PortalSettings
ORDER BY PortalID, SettingName, CultureCode

Then check if you have records with the same values in the fields PortalID + SettingName, and delete the ones which are not in the default portal language, eg. you have two languages en-us and nl-nl, and en-us is the default language, and get two records like this:

PortalID SettingName CultureCode
0 AllowUserUICulture en-us
0 AllowUserUICulture nl-nl

then delete the second one by

DELETE FROM {databaseOwner}{objectQualifier}PortalSettings
WHERE PortalID=0 AND SettingName='AllowUserUICulture' AND CultureCode='nl-nl'

(Anyway I would wait for Sebastian to confirm that I did understood him correctly...)

Happy DNNing
Michael

Hi Michael and Leopold,

My hosting provider repaired the SQL Table.
All is solved now! Now I can save site settings and activate CAPTCHA for registration!
Thanks for your good help!

Greetings, Robin

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Cannot Activate CAPTCHA For RegistrationCannot Activate CAPTCHA For Registration


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