Error on creating initial site.data

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

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.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
2/25/2007 1:42:25 AM
Gravatar
Total Posts 10

Error on creating initial site.data

on successful installation of mojoportal, i got the following error after i was told to create the initial site data;

Index was outside the bounds of the array. at mojoPortal.Data.dbPortal.SiteSettings_Create(Guid siteGuid, String siteName, String skin, String logo, String icon, Boolean allowNewRegistration, Boolean allowUserSkins, Boolean allowPageSkins, Boolean allowHideMenuOnPages, Boolean useSecureRegistration, Boolean useSSLOnAllPages, String defaultPageKeywords, String defaultPageDescription, String defaultPageEncoding, String defaultAdditionalMetaTags, Boolean isServerAdminSite, Boolean useLdapAuth, Boolean autoCreateLDAPUserOnFirstLogin, String ldapServer, Int32 ldapPort, String ldapDomain, String ldapRootDN, String ldapUserDNKey, Boolean allowUserFullNameChange, Boolean useEmailForLogin, Boolean reallyDeleteUsers, String editorSkin, String defaultFriendlyUrlPattern, Boolean enableMyPageFeature) at mojoPortal.Business.SiteSettings.Create() at mojoPortal.Business.SiteSettings.Save() at mojoPortal.Business.WebHelpers.mojoSetup.CreateInitialData() at mojoPortal.Web.UI.Pages.SetupHome.btnCreateInitialData_Click(Object sender, EventArgs e)

Can anyone help out pls?

 

Thanks

 

 

2/25/2007 4:48:35 AM
Gravatar
Total Posts 18439

Re: Error on creating initial site.data

Which database are you using?

Joe
2/25/2007 4:52:01 AM
Gravatar
Total Posts 10

Re: Error on creating initial site.data

sql server 2005 /IIS
2/25/2007 5:49:37 AM
Gravatar
Total Posts 18439

Re: Error on creating initial site.data

Are you using the release files or source code?

I can't seem to replicate the problem here.

Joe
2/25/2007 6:08:54 AM
Gravatar
Total Posts 18439

Re: Error on creating initial site.data

In your web.config file do you have CacheMSSQLParameters set to true? If not, try setting it to true.

Joe
2/25/2007 6:29:22 AM
Gravatar
Total Posts 10

Re: Error on creating initial site.data

hi,

i think i found the problem..have got .net 2.0 installed and i was using the .net 1.1 version..

anyways, it seems the file mojoportal-2-2-1-6-1-mssqlreleasefiles.zip is corrupt on the novel download site.

 

any other place where i can download this file?

thanks

2/25/2007 6:42:41 AM
Gravatar
Total Posts 18439

Re: Error on creating initial site.data

I downloaded that file just a little while ago when I was trying to replicate the problem you were having. It worked fine for me.

Joe
2/25/2007 6:49:23 AM
Gravatar
Total Posts 10

Re: Error on creating initial site.data

could you kindly send it directly to me?

i've downloaded it 4 times and it still seems corrupt.

thanks

2/25/2007 6:59:35 AM
Gravatar
Total Posts 18439

Re: Error on creating initial site.data

ok, I sent the files, hope it helps.

Most likely cause of the corruption is your browser. I would try clearing the cache and files or switch browsers, if the problem happens in firefox try ie, if it happens in ie try firefox.

Joe
2/25/2007 3:14:44 PM
Gravatar
Total Posts 10

Re: Error on creating initial site.data

finally got the .net 2.0 version installed but came up with the following error again;

 

No Sites have been created yet, click the button to create initial site data.


Index was outside the bounds of the array. at mojoPortal.Data.dbPortal.SiteSettings_Create(Guid siteGuid, String siteName, String skin, String logo, String icon, Boolean allowNewRegistration, Boolean allowUserSkins, Boolean allowPageSkins, Boolean allowHideMenuOnPages, Boolean useSecureRegistration, Boolean useSSLOnAllPages, String defaultPageKeywords, String defaultPageDescription, String defaultPageEncoding, String defaultAdditionalMetaTags, Boolean isServerAdminSite, Boolean useLdapAuth, Boolean autoCreateLDAPUserOnFirstLogin, String ldapServer, Int32 ldapPort, String ldapDomain, String ldapRootDN, String ldapUserDNKey, Boolean allowUserFullNameChange, Boolean useEmailForLogin, Boolean reallyDeleteUsers, String editorSkin, String defaultFriendlyUrlPattern, Boolean enableMyPageFeature) at mojoPortal.Business.SiteSettings.Create() at mojoPortal.Business.SiteSettings.Save() at mojoPortal.Business.WebHelpers.mojoSetup.CreateInitialData() at mojoPortal.Web.UI.Pages.SetupHome.btnCreateInitialData_Click(Object sender, EventArgs e)

2/25/2007 3:41:41 PM
Gravatar
Total Posts 18439

Re: Error on creating initial site.data

I'm stumped, I installed those same files and it works fine.

Is there anything unusual about your setup? db case sensitivity etc.
What db collation?
Is your browser's preferred language other than english? could be a localization issue in setup?
Can you tell me where you are hosted?
Can I see the url where this error is happening for myself? I'll try to help.

Joe
3/12/2007 11:08:45 AM
Svi
Gravatar
Total Posts 1

Re: Error on creating initial site.data

Hi!
/I am sorry for my English/
At me the same problem! :((
Site http://www.suponin.com
mojoportal-2-2-1-6-1
database SQLite 3_3_8 (in 3_3_13 version version at me has not worked CreateTables a script)

At work on Localhost - the same situation
Content of currentlog.config (Localhost)
2007-03-11 06:14:53,624 [2852] INFO mojoPortal.Web.Global [(null)] - Global.asax.cs Application_Start
2007-03-11 06:14:55,136 [2852] ERROR mojoPortal.Web.Global [(null)] - no sites found or couldn't connect to db
2007-03-11 06:14:57,429 [2852] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ApplicationPath is /mojoportal
2007-03-11 06:14:58,040 [2852] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ApplicationPath is /mojoportal
2007-03-11 06:14:58,881 [2852] DEBUG mojoPortal.Web.Global [(null)] - Global.asax.cs Application_AuthenticateRequest
2007-03-11 06:14:59,252 [2852] DEBUG mojoPortal.Business.WebHelpers.CacheHelper [(null)] - CacheHelper.cs LoadSiteSettings
2007-03-11 06:14:59,282 [2852] ERROR mojoPortal.Business.WebHelpers.CacheHelper [(null)] - CacheHelper failed to load siteSettings
2007-03-11 06:15:00,263 [2852] DEBUG mojoPortal.Web.Global [(null)] - Global.asax.cs Session_Start
2007-03-11 06:15:00,263 [2852] DEBUG mojoPortal.Web.Global [(null)] - IncrementUserCount key was localhost_onlineCount
2007-03-11 06:16:10,364 [2852] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ApplicationPath is /mojoportal
2007-03-11 06:16:10,384 [2852] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ApplicationPath is /mojoportal
2007-03-11 06:16:10,434 [2852] DEBUG mojoPortal.Web.Global [(null)] - Global.asax.cs Application_AuthenticateRequest

Can anyone help out pls?
Thanks

3/12/2007 11:28:19 AM
Gravatar
Total Posts 18439

Re: Error on creating initial site.data

Hi Svi,

I admit that I have not tested SQLite for a while so it is likely that there are bugs with it. Even when I did test in the past some features did not work like the MyPage feature or anything that stores blob data.

I will try to look at the SQLite version soon and see if I can fix the problems but I would recommend using a different database because even if I fix the errors, in my previous testing SQLite was very slow. If you have an option to use MySQL I would recommend that you use it instead of SQLite.

If I fix it here, I will email you the new files.

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