Event Calendar: Cannot change months

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.
7/15/2011 1:55:17 PM
Gravatar
Total Posts 2253

Event Calendar: Cannot change months

Hi Joe,

In the Event Calendar, clicking the previous month or next month links does nothing. In Chrome's Script Console, I see "Uncaught ReferenceError: GetViewState__AspNetTreeView is not defined."

I verified this on the demo site.

Thanks,
Joe D.

7/16/2011 5:57:01 AM
Gravatar
Total Posts 18439

Re: Event Calendar: Cannot change months

Hi Joe,

Sorry for the inconvenience. You can fix this immediately by adding this on the ScriptLoader control in layout.master

IncludeAspTreeView="true"

This was caused by my efforts to reduce the amount of unnecessary javascript. I " thought" the TreeView only needed the javascript if it had the ShowExpandCollapse="true", so I backed it out by default and only added it if the TreeView was configured for ShowExpandCollapse and it seemed to work fine in most cases, but I didn't find this one.

It seems if the calendar does a postback with the treeview on the page it causes this error, so it only happens in skins that use a TreeView menu. In any case, I knew that such a change might have some side effect that I hadn't expected so I made sure there was an easy way to turn that script back on as indicated above.

Best,

Joe

7/16/2011 8:15:54 AM
Gravatar
Total Posts 18439

Re: Event Calendar: Cannot change months

Update, I've patched the 2.3.6.7 release with a better fix that doesn't require any changes in skins.

The only file that has changed in the 2.3.6.7 packages since the initial release is the mojoPortal.Web.dll

Thanks,

Joe

7/18/2011 9:46:25 AM
Gravatar
Total Posts 2253

Re: Event Calendar: Cannot change months

Hi Joe,

I've tried both methods, the IncludeAspTreeView and replacing the mojoPortal.web.dll file. Neither has worked for me. This is a customer site that is not hosting with me. Their hosting is .NET 3.5 Medium Trust.

Thanks,
Joe D.
 

7/18/2011 10:11:33 AM
Gravatar
Total Posts 18439

Re: Event Calendar: Cannot change months

Hey Joe,

It works for me locally under .NET 3.5 medium trust replacing the dll.

Can you post what the SiteMenu and PageMenu declaration from layout.master looks like?

Do you know if they have updated over time for important skin changes?

Best,

Joe

7/18/2011 10:43:11 AM
Gravatar
Total Posts 2253

Re: Event Calendar: Cannot change months

Hi Joe,

<portal:SiteMenu id="SiteMenu1" runat="server" UseTreeView="false"  HideMenuOnSiteMap="false" Direction="Horizontal" TopLevelOnly="true"></portal:SiteMenu>

<portal:PageMenu id="PageMenu1" runat="server" UseTreeView="false" Direction="Horizontal" DynamicDisplayLevels="0" />

<portal:PageMenu id="PageMenu2" runat="server" UseTreeView="true"  SiteMapDataSource="level3datasource" StartingNodeOffset="2" TreeViewShowExpandCollapse="true"  />

They only display the two page menus on their site (the skin is using css to hide the site menu). The original developer of this site really screwed things up and they have a entire section of pages under the root that aren't displayed on anything except the Site Map. The developers answer to this was to just hide  the site menu and create additional page menus. We are in the process of restructuring the site but it is going to take a while due to the severity of chaos. :-)

I just updated their site from 2.3.5.8 to 2.3.6.7 and I included all of the skin changes since then. I checked the items from before 2.3.5.8 and they appear to be in the skins they use.

Thanks,
Joe

7/18/2011 11:19:43 AM
Gravatar
Total Posts 18439

Re: Event Calendar: Cannot change months

Hey Joe,

Can you try adding this or just setting this property to true if this already exists in theme.skin with the SkinID="PageMenu"?

 

<portal:mojoTreeView runat="server" SkinID="PageMenu"
ShowExpandCollapse="true"
 
/>
 
Note that since it is medium trust .NET 3.5 you would need to copy the theme.skin into App_Themes/Default and would need to do that again after any upgrades of mojoPortal since the file would be overwritten.
 
Best,
 
Joe
7/18/2011 11:49:42 AM
Gravatar
Total Posts 2253

Re: Event Calendar: Cannot change months

Hi Joe,

No Joy. I made sure to copy the theme.skin App_Themes\default directory, as I did on upgrade.

Which script file is supposed to be included? Maybe I can track that down and make sure it is loading.

The TreeView in the menu is working, sort-of. Apparently, they didn't want the the expand/collapse buttons so they just deleted the images. I just set TreeViewShowExpandCollapse to false but that didn't help the calendar issue.

Thanks,
Joe

7/18/2011 11:58:18 AM
Gravatar
Total Posts 18439

Re: Event Calendar: Cannot change months

It would be in a combined script like ScriptResopurce.axd?...

If all else fails I guess you could manually add the needed scripts in layout.master like this:

<script src="/ClientScript/CSSFriendly/AdapterUtils.min.js" type="text/javascript"></script>
<script src="/ClientScript/CSSFriendly/TreeViewAdapter.min.js" type="text/javascript"></script>

If you aren't really using the expand and collapse + and - icons in the TreeView you could just set TreeViewShowExpandCollapse = false on the PageMenu and set ShowExpandCollapse="false" in theme.skin

Then it should not need the scripts.

Best,

Joe

7/18/2011 12:08:09 PM
Gravatar
Total Posts 18439

Re: Event Calendar: Cannot change months

ps I've seen cases where the theme cache gets very stubborn and doesn't seem to clear when you edit the theme.skin file, sometimes it takes recycling the app pool to make it see those theme.skin changes.

Best,

Joe

7/18/2011 2:10:12 PM
Gravatar
Total Posts 2253

Re: Event Calendar: Cannot change months

Hi Joe,

I went ahead and added the scripts to the layout.master and everything is working properly. We will be re-doing the skin for this site and we will probably find the culprit at that point.

Another issue the site has is that I can't change the Skin in the Site Settings. Each time I try, the page posts showing the change but when I refresh, the setting is back to what it started with. I do get a very very long error in the log that starts with "Request for ConfigurationPermission failed while attempting to access configuration section 'system.web/globalization'." I'm not sure if that error is normal under .NET 3.5. I just noticed this issue and I haven't looked into it very far. Can you make sure that changing the Skin in your .NET 3.5 Medium Trust environment works okay?

Thanks,
Joe

7/18/2011 2:20:58 PM
Gravatar
Total Posts 18439

Re: Event Calendar: Cannot change months

Hey Joe,

Yes, I can change skins under .NET 3.5 Medium Trust.

There is a known error in checking the web.config for the default culture under medium trust but it is a handled error in code so it should be saying "swallowed error" in the log and it shouldn't break anything.

You can avoid that error by forcing a specific culture for the site like this:

 <add key="UseCultureOverride" value="true" />
  <add key="site1culture" value="en-US" />
  <add key="site1uiculture" value="en-US" />

then it would use those settings before trying Web.config

Hope that helps,

Joe

7/20/2011 8:57:54 AM
Gravatar
Total Posts 18439

Re: Event Calendar: Cannot change months

Hey Joe,

I did some more digging on this problem and was able to reproduce it and fix it. I've also fixed a couple other small issues and patched the 2.3.6.7 release again.

The only files that changed are:

mojoPortal.Web.dll
mojoPortal.Features.UI.dll
mojoPortal.Net.dll
/ContactForm/MessageListDialog.aspx
/ClientScript/jqmojo/jquery.layout.min.js

Thanks,

Joe

7/20/2011 9:22:27 AM
Gravatar
Total Posts 2253

Re: Event Calendar: Cannot change months

Hi Joe,

I removed the direct references to the scripts from the layout.master, uploaded the new files and it seems to be working correctly.

Thank you for your diligence. It is greatly appreciated.

Thanks,
Joe

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