|
|
|
Joined: 1/27/2009
Posts: 135
|
|
|
Hi,
I've included the DDR Menu in a skin that has been installed on DNN7. The skin throws an error stating:
An error has occurred. DotNetNuke.Services.Exceptions.ModuleLoadException: Couldn't load menu style '': System.ArgumentException: Illegal characters in path. at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional) at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList) at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList) at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String path) at System.Web.HttpRequest.MapPath(VirtualPath virtualPath, VirtualPath baseVirtualDir, Boolean allowCrossAppMapping) at System.Web.HttpServerUtility.MapPath(String path) at DotNetNuke.Web.DDRMenu.TemplateEngine.TemplateDefinition.FromManifest(String manifestUrl) at DotNetNuke.Web.DDRMenu.MenuBase.Instantiate(String menuStyle) ---> System.ApplicationException: Couldn't load menu style '': System.ArgumentException: Illegal characters in path. at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional) at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList) at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList) at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String path) at System.Web.HttpRequest.MapPath(VirtualPath virtualPath, VirtualPath baseVirtualDir, Boolean allowCrossAppMapping) at System.Web.HttpServerUtility.MapPath(String path) at DotNetNuke.Web.DDRMenu.TemplateEngine.TemplateDefinition.FromManifest(String manifestUrl) at DotNetNuke.Web.DDRMenu.MenuBase.Instantiate(String menuStyle) at DotNetNuke.Web.DDRMenu.MenuBase.Instantiate(String menuStyle) at DotNetNuke.Web.DDRMenu.SkinObject.OnPreRender(EventArgs e) --- End of inner exception stack trace ---
The skin includes the following code:
<%@ Register TagPrefix="dnn" TagName="MENU" Src="~/DesktopModules/DDRMenu/Menu.ascx" %>
<dnn:MENU runat="server" id="dnnMENU" Provider="DDRMenuNavigationProvider" />
What should I modify to remedy this error?
Thanks,
Sid
|
|
|
|
| |
|
|
|
|
www.dynamisys.co.uk Joined: 3/26/2006
Posts: 2001
|
|
|
It looks to me that you are missing the MenuStyle attribute.
Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
|
|
|
|
| |
|
|
Joined: 1/27/2009
Posts: 135
|
|
|
Thanks for your reply.
I modified the Menu to be:
<dnn:MENU runat="server" id="dnnMENU" Provider="DDRMenuNavigationProvider" MenuStyle="SolPartMenu" />
However, the error still persists. In addition the error, some Javascript has also overlaid the home page. It is as follows:
(function($) { $.fn.et_switcher = function(options) { var defaults = { slides: '>div', activeClass: 'active', linksNav: '', findParent: true, //use parent elements in defining lengths lengthElement: 'li', //parent element, used only if findParent is set to true useArrows: false, arrowLeft: 'prevlink', arrowRight: 'nextlink', auto: false, autoSpeed: 4000 }; var options = $.extend(defaults, options); return this.each(function() { var slidesContainer = jQuery(this); slidesContainer.find(options.slides).hide().end().find(options.slides).filter(':first').css('display','block'); if (options.linksNav != '') { var linkSwitcher = jQuery(options.linksNav); linkSwitcher.click(function(){ var targetElement; if (options.findParent) targetElement = jQuery(this).parent(); else targetElement = jQuery(this); if (targetElement.hasClass('active')) return false; jQuery('div.item .active').animate({marginTop: '0px'},500,function(){ jQuery(this).removeClass('active'); }); jQuery(this).animate({marginTop: '-15px'},500,function(){ jQuery(this).addClass('active'); }); var ordernum = targetElement.prevAll(options.lengthElement).length; slidesContainer.find(options.slides).filter(':visible').hide().end().end().find(options.slides).filter(':eq('+ordernum+')').stop().fadeIn(700); jQuery('div.#slides div.slide div.banner').css('top', '0px'); slidesContainer.find(options.slides).filter(':visible').children('div').animate({top: '90px'}, 300); if (typeof interval != 'undefined') { clearInterval(interval); auto_rotate(); }; return false; }); }; jQuery('#'+options.arrowRight+', #'+options.arrowLeft).click(function(){ var slideActive = slidesContainer.find(options.slides).filter(":visible"), nextSlide = slideActive.next(), prevSlide = slideActive.prev(); if (jQuery(this).attr("id") == options.arrowRight) { if (nextSlide.length) { var ordernum = nextSlide.prevAll().length; } else { var ordernum = 0; } }; if (jQuery(this).attr("id") == options.arrowLeft) { if (prevSlide.length) { var ordernum = prevSlide.prevAll().length; } else { var ordernum = slidesContainer.find(options.slides).length-1; } }; slidesContainer.find(options.slides).filter(':visible').hide().end().end().find(options.slides).filter(':eq('+ordernum+')').stop().fadeIn(700); if (typeof interval != 'undefined') { clearInterval(interval); auto_rotate(); }; return false; }); if (options.auto) { auto_rotate(); }; function auto_rotate(){ interval = setInterval(function(){ var slideActive = slidesContainer.find(options.slides).filter(":visible"), nextSlide = slideActive.next(); if (nextSlide.length) { var ordernum = nextSlide.prevAll().length; } else { var ordernum = 0; } if (options.linksNav === '') jQuery('#'+options.arrowRight).trigger("click"); else linkSwitcher.filter(':eq('+ordernum+')').trigger("click"); },options.autoSpeed); }; }); } })(jQuery); var $featuredArea = jQuery('#featured #slides'); if ($featuredArea.length) { $featuredArea.et_switcher({ linksNav: '#switcher div div.wrap', auto: false, autoSpeed: 4000, findParent: true, lengthElement: 'div' }); }; jQuery('div.#slides div.active div.banner').css('top', '90px'); Cufon.now(); //]]> -->
I've never seen this before. Why would the Javascript be visible on the home page?
|
|
|
|
| |
|
|
|
Joined: 4/4/2013
Posts: 2
|
|
|
i was facing the same issue...
Copy your menu style folder inside your own portal folder...
|
|
|
|
| |
|
|
Joined: 1/27/2009
Posts: 135
|
|
|
So, I re-installed DDR Menu and set the MenuStyle="DNNMenu". The error has resolved. I am now stuck with the ugly Javascript on my home page: (function($) { $.fn.et_switcher = function(options) { var defaults = { slides: '>div', activeClass: 'active', linksNav: '', findParent: true, //use parent elements in defining lengths lengthElement: 'li', //parent element, used only if findParent is set to true useArrows: false, arrowLeft: 'prevlink', arrowRight: 'nextlink', auto: false, autoSpeed: 4000 }; var options = $.extend(defaults, options); return this.each(function() { var slidesContainer = jQuery(this); slidesContainer.find(options.slides).hide().end().find(options.slides).filter(':first').css('display','block'); if (options.linksNav != '') { var linkSwitcher = jQuery(options.linksNav); linkSwitcher.click(function(){ var targetElement; if (options.findParent) targetElement = jQuery(this).parent(); else targetElement = jQuery(this); if (targetElement.hasClass('active')) return false; jQuery('div.item .active').animate({marginTop: '0px'},500,function(){ jQuery(this).removeClass('active'); }); jQuery(this).animate({marginTop: '-15px'},500,function(){ jQuery(this).addClass('active'); }); var ordernum = targetElement.prevAll(options.lengthElement).length; slidesContainer.find(options.slides).filter(':visible').hide().end().end().find(options.slides).filter(':eq('+ordernum+')').stop().fadeIn(700); jQuery('div.#slides div.slide div.banner').css('top', '0px'); slidesContainer.find(options.slides).filter(':visible').children('div').animate({top: '90px'}, 300); if (typeof interval != 'undefined') { clearInterval(interval); auto_rotate(); }; return false; }); }; jQuery('#'+options.arrowRight+', #'+options.arrowLeft).click(function(){ var slideActive = slidesContainer.find(options.slides).filter(":visible"), nextSlide = slideActive.next(), prevSlide = slideActive.prev(); if (jQuery(this).attr("id") == options.arrowRight) { if (nextSlide.length) { var ordernum = nextSlide.prevAll().length; } else { var ordernum = 0; } }; if (jQuery(this).attr("id") == options.arrowLeft) { if (prevSlide.length) { var ordernum = prevSlide.prevAll().length; } else { var ordernum = slidesContainer.find(options.slides).length-1; } }; slidesContainer.find(options.slides).filter(':visible').hide().end().end().find(options.slides).filter(':eq('+ordernum+')').stop().fadeIn(700); if (typeof interval != 'undefined') { clearInterval(interval); auto_rotate(); }; return false; }); if (options.auto) { auto_rotate(); }; function auto_rotate(){ interval = setInterval(function(){ var slideActive = slidesContainer.find(options.slides).filter(":visible"), nextSlide = slideActive.next(); if (nextSlide.length) { var ordernum = nextSlide.prevAll().length; } else { var ordernum = 0; } if (options.linksNav === '') jQuery('#'+options.arrowRight).trigger("click"); else linkSwitcher.filter(':eq('+ordernum+')').trigger("click"); },options.autoSpeed); }; }); } })(jQuery); var $featuredArea = jQuery('#featured #slides'); if ($featuredArea.length) { $featuredArea.et_switcher({ linksNav: '#switcher div div.wrap', auto: false, autoSpeed: 4000, findParent: true, lengthElement: 'div' }); }; jQuery('div.#slides div.active div.banner').css('top', '90px'); Cufon.now(); //]]> --> HomeBrowse Real EstateBuyingSellingFinanceOur TeamBlogForumContact UsMy LookupDynamic RegistrationDynamic LoginLookup Realty TeamMLS UpdatesListing DetailsModTest2Property InspectionForgot PasswordLoginSan Diego SpecialistsCategoryCareersnew-agent-signupclosing-surveysdlookup-com-property-search-surveysdlookup-inquiry-surveyTestWikiManage Email PreferencesSan DiegoBackEndTerms of UsePrivacy PolicyContact Lookup RealtyDynamic Forms There are script tag references to an empty skins.js file and the following at the bottom of the ascx:
Would any of these be causing this screen output?
|
|
|
|
| |