Company Name setting not saved

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
6/28/2010 12:21:00 PM
Gravatar
Total Posts 4

Company Name setting not saved

Hello,

When you go to the Administration->Site Setting page and you change the Company Name. The page reloads and the company name is blank again and never saved. I realized that you use the SetExpandoProperty("CompanyName", value) method call to store the value, but the mp_SiteSettingsExDef table in the database does not have a record for this field, also the mp_SiteSettingsEx table does not have values for this field.

I noticed in the SiteSettings.cs file that there are several other properties that are saved in the same way but do not exist in the mp_SiteSettingsExDef table such as EnableWoopra field and site mail settings (SMTPUser, SMTPPort, etc.) that are used when EnableSiteSettingsSmtpSettings is set to true.

Operating System: Windows Server 2008

Database: SQL Azure

Version: not sure

Thanks,

Youssef

6/29/2010 9:06:56 AM
Gravatar
Total Posts 18439

Re: Company Name setting not saved

Hi Youssef,

Thanks for the bug report. It is missing a few things in the scripts for SqlAzure.

I will fix this for the next release by adding this to the 2.3.4.6 upgrade script.

INSERT INTO [mp_SiteSettingsExDef]([KeyName],[DefaultValue],[GroupName],[SortOrder])
VALUES('CompanyName','Your Company Name','General', 100)

INSERT INTO [mp_SiteSettingsExDef]([KeyName],[DefaultValue],[GroupName],[SortOrder])
VALUES('SMTPUser','','SMTP', 100)

INSERT INTO [mp_SiteSettingsExDef]([KeyName],[DefaultValue],[GroupName],[SortOrder])
VALUES('SMTPPassword','','SMTP', 200)

INSERT INTO [mp_SiteSettingsExDef]([KeyName],[DefaultValue],[GroupName],[SortOrder])
VALUES('SMTPServer','localhost','SMTP', 300)

INSERT INTO [mp_SiteSettingsExDef]([KeyName],[DefaultValue],[GroupName],[SortOrder])
VALUES('SMTPPort','25','SMTP', 400)

INSERT INTO [mp_SiteSettingsExDef]([KeyName],[DefaultValue],[GroupName],[SortOrder])
VALUES('SMTPRequiresAuthentication','false','SMTP', 500)

INSERT INTO [mp_SiteSettingsExDef]([KeyName],[DefaultValue],[GroupName],[SortOrder])
VALUES('SMTPUseSsl','false','SMTP', 600)

INSERT INTO [mp_SiteSettingsExDef]([KeyName],[DefaultValue],[GroupName],[SortOrder])
VALUES('SMTPPreferredEncoding','','SMTP', 700)

You could fix your installation now by running this on your db, however if you do that you will need to remember to chop this out of the 2.3.4.6 upgrade script on the next upgrade or it will create duplicates.

After running the script you would need to visit /Setup/Default.aspx and then the site settings should work.

Best,

Joe

6/29/2010 9:55:27 AM
Gravatar
Total Posts 4

Re: Company Name setting not saved

Thanks, this solved it.

Youssef

You must sign in to post in the forums. This thread is closed to new posts.