Error when updating settings

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
4/12/2011 6:08:02 AM
Gravatar
Total Posts 160
mojoPortal Community Expert
Designer of over 25 unique and custom mojoPortal sites with DMSQD and sister company, The Design Loft - www.dmsqd.com

Error when updating settings

Hi guys

When I try and update any module settings on a certain I site I get:

 

Server Error in '/' Application.

Index was outside the bounds of the array.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IndexOutOfRangeException: Index was outside the bounds of the array.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   mojoPortal.Web.TreeViewAdapter.ExpandToState(TreeNodeCollection nodes, String state) +274
   mojoPortal.Web.TreeViewAdapter.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +8686477
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3618

 

-- Any ideas pls?

Thanks

Mark

4/12/2011 9:59:44 AM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Error when updating settings

I had something like this happen recently on my development workstation. Try touching your web.config (add a space and save) and then re-visit the site to see if that helps.

Jamie

4/12/2011 10:07:10 AM
Gravatar
Total Posts 160
mojoPortal Community Expert
Designer of over 25 unique and custom mojoPortal sites with DMSQD and sister company, The Design Loft - www.dmsqd.com

Re: Error when updating settings

Sadly that didn't work - it's only cropped up recently and seemingly we've not amended anything.

Any other thoughts welcome :0)

4/12/2011 10:09:03 AM
Gravatar
Total Posts 160
mojoPortal Community Expert
Designer of over 25 unique and custom mojoPortal sites with DMSQD and sister company, The Design Loft - www.dmsqd.com

Re: Error when updating settings

Interestingly, the URL doesn't get past /Admin/PageTree.aspx when I hit Update / Save. Also, from Add/Edit Pages in Admin I can't select a page and then edit / view or edit settings without the same error...

4/12/2011 10:25:49 AM
Gravatar
Total Posts 2239

Re: Error when updating settings

Hi Mark,

What version of mojoPortal are you running? Is this one of the sites we setup a custom menu on?

Thanks,
Joe

4/12/2011 10:28:54 AM
Gravatar
Total Posts 160
mojoPortal Community Expert
Designer of over 25 unique and custom mojoPortal sites with DMSQD and sister company, The Design Loft - www.dmsqd.com

Re: Error when updating settings

Hi Joe

It's 2.3.6.1 and it's just using standard menu / child menu setup. it's the pest one we've spoken about before.

Thanks

Mark

4/12/2011 11:03:53 AM
Gravatar
Total Posts 2239

Re: Error when updating settings

Hi Mark,

There have been a lot of changes to the "plumbing" for the menus in mojoPortal since 2.3.6.1. Are you able to upgrade your site to the latest version (2.3.6.4) and see if the problem persists?

Does this happen on every module on the site or just select ones? If not on every module, is it only on those that use a ModuleWrapper?

Thanks,
Joe D.

4/12/2011 11:05:59 AM
Gravatar
Total Posts 160
mojoPortal Community Expert
Designer of over 25 unique and custom mojoPortal sites with DMSQD and sister company, The Design Loft - www.dmsqd.com

Re: Error when updating settings

Cheers Joe, downloading as we speak.

It's actually on pages, not modules which is odd....

4/13/2011 4:43:41 AM
Gravatar
Total Posts 160
mojoPortal Community Expert
Designer of over 25 unique and custom mojoPortal sites with DMSQD and sister company, The Design Loft - www.dmsqd.com

Re: Error when updating settings

Hi all

Upgraded to the latest version but still getting the error - any thoughts?

Thanks

Mark

4/13/2011 5:58:34 AM
Gravatar
Total Posts 18439

Re: Error when updating settings

Hi Mark,

you're saying this happens only on the ModuleSettings.aspx page when you save settings?

if you change the skin to one of the skins we ship does the problem still happen?

Best,

Joe

4/13/2011 6:06:12 AM
Gravatar
Total Posts 160
mojoPortal Community Expert
Designer of over 25 unique and custom mojoPortal sites with DMSQD and sister company, The Design Loft - www.dmsqd.com

Re: Error when updating settings

Hi Joe

I've just tried that and actually get the same error when trying to update any settings at all - i.e. can't change the skin.

I can update / add / edit content though and the site was working as we were able to entirely configure it.

Thanks

Mark

4/13/2011 6:10:59 AM
Gravatar
Total Posts 18439

Re: Error when updating settings

still sounds like the skin is a factor in the problem. Can you try changing it from the database and then touch the web.config to clear the cache?

4/13/2011 6:15:16 AM
Gravatar
Total Posts 160
mojoPortal Community Expert
Designer of over 25 unique and custom mojoPortal sites with DMSQD and sister company, The Design Loft - www.dmsqd.com

Re: Error when updating settings

Woah, don't know how to do that databasey tackle, I'm only a designer and front end dude! :0)

4/13/2011 6:22:20 AM
Gravatar
Total Posts 18439

Re: Error when updating settings

the skin name corresponds to the skin folder name, all it takes is finding the row for the site in the mp_Sites table and change the value in the field named Skin.

or a query like

UPDATE mp_Sites

SET Skin = 'styleshout-envision'

WHERE SiteID = 1

(Assuming this is a single site installation then the site id will be 1, if a multi site installation you will need to determine the site id)

styleshout-envision is a skin we ship in the /Data/skins folder, you should copy it to the /Data/Sites/[SiteID]/skins folder

alternatively you could zip up your skin and email it to me so I can test it and see if I can produce the error or if I notice anything unusual about how it is configured.

Hope it helps,

Joe

4/13/2011 6:24:43 AM
Gravatar
Total Posts 160
mojoPortal Community Expert
Designer of over 25 unique and custom mojoPortal sites with DMSQD and sister company, The Design Loft - www.dmsqd.com

Re: Error when updating settings

Hi Joe

The latter sounds good to me :0) Thank you for the help, greatly appreciated.

I'll pop it over.

Thanks

4/13/2011 7:43:36 AM
Gravatar
Total Posts 18439

Re: Error when updating settings

Hi Mark,

I'm trying your skin, the only modification I made was removing the moduleWrapper you had in layout.master since I don't have your module.

So far I'm not seeing any errors when saving module settings or site settings.

I'm thinking maybe there is something about your site hierarchy that could be a factor. Do you have any pages that use fully qualified urls or any unusual page configurations where a page may be in the menu in more than one location or any other factors about the actual site that you can think of?

Or any clarification of steps to produce the error?

Best,

Joe

4/13/2011 7:53:18 AM
Gravatar
Total Posts 18439

Re: Error when updating settings

Can you try adding this on your <portal:SiteMenu TreeViewPopulateOnDemand="false"

and see if it makes any difference?

4/13/2011 8:01:09 AM
Gravatar
Total Posts 160
mojoPortal Community Expert
Designer of over 25 unique and custom mojoPortal sites with DMSQD and sister company, The Design Loft - www.dmsqd.com

Re: Error when updating settings

Hi Joe

Thank you so much for checking it over - that last suggestion you made has seemingly cured the problem.

What's the background of that attribute then?

Thanks

Mark

4/13/2011 8:24:27 AM
Gravatar
Total Posts 18439

Re: Error when updating settings

I still have not  been able to produce the error but it may be caused by a combination of having only child pages beneath home that are not included in the menu and using populateondemand. When populateondemand is enabled if you view the source of the page you will see it does not render the child nodes in the menu until a parent page is selected and then it tries to expand a parent node and render the child items. By disabling it then the menu is already fully expanded so I guess it never needs to try to expand it and this avoids the error. for a site that does not have a huge hierarchy it is probably better for SEO to go ahead and render all the items in the menu anyway so it is easy for crawlers to see them. But for very large hierarchies rendering the entire menu can produce a huge amount of markup so populate on demand is helpful. Since the error is about expanding the treeview it just made me guess that setting might affect it. The treeview nodes know they have child nodes but if none of them are included in the menu then there is nothing to render when they expand but the parent node doesn't know about all of that, it just knows it has child nodes and therefore it thinks it should be expandable. 

In any case I'm adding extra checking in the code for the next release to avoid this error under whatever conditions may produce it.

Best,

Joe

4/13/2011 8:28:24 AM
Gravatar
Total Posts 160
mojoPortal Community Expert
Designer of over 25 unique and custom mojoPortal sites with DMSQD and sister company, The Design Loft - www.dmsqd.com

Re: Error when updating settings

Brilliant Joe, thanks for the insight - I didn't know that was how it worked.

Thank you again.

Mark

5/10/2012 9:49:13 AM
Gravatar
Total Posts 104

Re: Error when updating settings

bumping this thread in the hopes that someone will notice and can provide a bit of direction here....

 tried to use something like...

Settings["IconFilePath"].ToString()

 but continually am getting an error when accessing/changing information on the feature settings...

2012-05-10 08:13:17,496 ERROR 10.4.1.1 - en-US - /yyy/Admin/ModuleSettings.aspx?mid=205&pageid=107 - mojoPortal.Web.Global -  Referrer(http://<IP>/yyy/Admin/ModuleSettings.aspx?mid=205&pageid=107) useragent Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0) System.Resources.MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "Resources..resources" was correctly embedded or linked into assembly "App_GlobalResources._f7idtza" at compile time, or that all the satellite assemblies required are loadable and fully signed.    at System.Resources.ManifestBasedResourceGroveler.HandleResourceStreamMissing(String fileName)    at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(CultureInfo culture, Dictionary'2 localResourceSets, Boolean tryParents, Boolean createIfNotExists, StackCrawlMark& stackMark)    at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo requestedCulture, Boolean createIfNotExists, Boolean tryParents, StackCrawlMark& stackMark)    at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)    at System.Resources.ResourceManager.GetObject(String name, CultureInfo culture, Boolean wrapUnmanagedMemStream)    at System.Web.Compilation.ResourceExpressionBuilder.GetResourceObject(IResourceProvider resourceProvider, String resourceKey, CultureInfo culture, Type objType, String propName)    at System.Web.UI.TemplateControl.GetGlobalResourceObject(String className, String resourceKey)    at mojoPortal.Web.AdminUI.ModuleSettingsPage.btnSave_Click(Object sender, EventArgs e)    at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

5/10/2012 11:56:59 AM
Gravatar
Total Posts 104

Re: Error when updating settings

ok - it doesnt seem to matter if I have one or more than one feature setting... if I even try to change it, it gives me that error...

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