Skin on 2nd Site is Ignored

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.
5/2/2014 7:16:31 AM
Gravatar
Total Posts 11

Skin on 2nd Site is Ignored

I have a multi-site environment hosted by Arvixe.  The first site serves fine.  The second site currently serves but it ignores the skin.  Therefore it is pretty much useless.

The same skin has served in the past without any problems.  The error began to surface when I was editing the site settings to choose a different site logo.  Of course to do this you must login to site #1 and then choose the site under site list.  When I attempt to save a new site logo the image I want appears when I select it from the drop down. But when I when I save my changes the change is not saved and my skin is ignored.  This has happened twice.  The first time I was able to get the skin to serve again.  Now I cannot get it back.

I am running version 2.4.0.3, MSSQL, .net 4.0,

Please help.

 

5/2/2014 7:31:26 AM
Gravatar
Total Posts 11

Re: Skin on 2nd Site is Ignored

An Update:  My problem is not solved but at least the skin is serving now.  I had to log into the second site, edit the site setting from there and then the skin re-appeared.  However, the site-logo is still not saved / showing.

5/2/2014 7:37:50 AM
Gravatar
Total Posts 18439

Re: Skin on 2nd Site is Ignored

You should not have to set the site logo from the parent site, if the dropdown for site logo is not shown in site settings for the child site it just means it is hidden by css and you need to edit the css to unhide it in the child site, and you may need to add the <portal:SiteLogo control in the layout.master of the skin in the child site if it isn't already there.

See the article Where is the Site Logo

Hope that helps,

Joe

5/2/2014 9:00:09 AM
Gravatar
Total Posts 11

Re: Skin on 2nd Site is Ignored

Thanks so much for the quick reply.

I can now see the logo drop down from the 2nd site admin site settings page.  However when I select any log it does not save it.

 

Also a new problem has occurred that may be related.  I tried to add a new page to the web site and received the following error:

 

Must specify valid information for parsing in the string.

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.ArgumentException: Must specify valid information for parsing in the string.

Stack Trace:


[ArgumentException: Must specify valid information for parsing in the string.] System.Enum.TryParseEnum(Type enumType, String value, Boolean ignoreCase, EnumResult& parseResult) +10618895 System.Enum.Parse(Type enumType, String value, Boolean ignoreCase) +78 System.Enum.Parse(Type enumType, String value) +6 mojoPortal.Web.AdminUI.PageProperties.SavePageData() +4600 mojoPortal.Web.AdminUI.PageProperties.Apply_Click(Object sender, EventArgs e) +32 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +9752490 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +196 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +35 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1724
 

 

5/2/2014 9:52:22 AM
Gravatar
Total Posts 18439

Re: Skin on 2nd Site is Ignored

my best guess is that you have something incorrect in the layout.master of your skin. for example an extra form element, extra opening element or missing closing element. you cannot add any form elemets to layout.master nor in content, there is already a form element in layout.master and in asp.net webforms there can be one and only one form element on the page. if you add another one it will break it and cause problems on any postback of any page using that skin

I would review the log and see also if any error is logged when you try to save the site settings.

5/2/2014 12:03:05 PM
Gravatar
Total Posts 11

Re: Skin on 2nd Site is Ignored

I cannot find the system log under the administration menu for my 2nd site. I am running the compiled version if that makes any difference.  I do not see any unopened  or unclosed elements and have never added any "form" elements to the master.layout.

Can you tell me where to find the syslog? 

 

5/2/2014 12:06:10 PM
Gravatar
Total Posts 18439

Re: Skin on 2nd Site is Ignored

system log is per installation not per site and is only available from the master parent site

5/2/2014 12:06:43 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Skin on 2nd Site is Ignored

Events are logged in one place for all sites in an installation. So the events in your second site are also viewable from the Administration menu of your master site.
 

5/4/2014 3:41:14 PM
Gravatar
Total Posts 11

Re: Skin on 2nd Site is Ignored

Sorry to take so long to respond.  I check the log but that did not help since it simply restated the error I have been continuously receiving.  The server also happened to go down for an hour so here is where I am at.

On both of my sites when I try to add a new page I get the error.  When I edit an existing page the edits go thru without any problems.

I started having this problem after upgrading from version 2.3.8.5 to 2.4.0.3.  I removed all files and did a complete rewrite of the site.  Then I uploaded my config.user and my 2 skins. I also did not restore any skins I was not using.  Could there be something in the skins that worked for 2.3.8.5 but is broken by 2.4.0.3?

 

The following is copied from my layout.Master file of one of my skins for one of my sites.  I can't find anything wrong here but perhaps you can.

Thanks Dan

 

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="~/App_MasterPages/layout.Master.cs" Inherits="mojoPortal.Web.layout" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">

    protected void Page_Load(object sender, EventArgs e)
    {

    }
</script>

<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en">
<head id="Head1" runat="server">
    <title></title>
    <%-- JQueryUIThemeName valid options are:
    base, black-tie, blitzer, cupertino, dark-hive, dot-luv, eggplant, excite-bike, flick, hot-sneaks,
    humanity, le-frog, mint-choc, overcast, pepper-grinder,
    redmond, smoothness, south-street, start, sunny, swanky-purse, trontastic, ui-darkness, ui-lightness, vader
    --%>
    <portal:StyleSheetCombiner ID="StyleSheetCombiner" runat="server" UseArtisteer3="true"
        JQueryUIThemeName="mint-choc" UseIconsForAdminLinks="false" UseTextLinksForFeatureSettings="true" />
    <portal:IEStyleIncludes ID="IEStyleIncludes1" runat="server" IncludeHtml5Script="false"
        IE6CssFile="style.ie6.css" IE7CssFile="style.ie7.css" />
    <portal:MetaContent ID="MetaContent" runat="server" />
    <!--[if IE]>
    <meta http-equiv="Page-Enter" content="blendTrans(Duration=0)" />
    <meta http-equiv="Page-Exit" content="blendTrans(Duration=0)" />
    <![endif]-->
    <portal:Favicon ID="Favicon1" runat="server" />
    <portal:ScriptLoader ID="ScriptLoader1" runat="server" />
    <portal:SkinFolderScript ID="sfs1" runat="server" ScriptFileName="script.js" AddToCombinedScript="true" />

</head>
<body class="pagebody" id="Body" runat="server">

    <portal:AnalyticsAsyncTopScript ID="analyticsTop" runat="server" />

    <portal:FacebookSdk ID="fbsdk" runat="server" />

    <form id="frmMain" runat="server">
        <asp:SiteMapDataSource ID="SiteMapData" runat="server" ShowStartingNode="false" />
        <asp:SiteMapDataSource ID="PageMapDataSource" runat="server" ShowStartingNode="false" />
        <asp:SiteMapDataSource ID="ChildPageSiteMapData" runat="server" ShowStartingNode="false" />
        <asp:ScriptManager ID="ScriptManager1" EnablePageMethods="true" runat="server"
            EnableScriptGlobalization="true" EnableScriptLocalization="true" />

        <div id="art-page-background-glare-wrapper">
            <div id="art-page-background-glare"></div>
        </div>
        <div id="art-page-background-middle-texture">
            <div id="art-main">
                <div class="cleared reset-box"></div>
                <div class="art-box art-sheet">
                    <div class="art-box-body art-sheet-body">
                        <div class="art-bar art-nav">
                            <div class="art-nav-outer">
                                <div class="art-nav-wrapper">
                                    <div class="art-nav-inner">
                                        <div class="art-nav-center">
                                            <portal:SiteMenu ID="SiteMenu1" runat="server" UseTreeView="true" TreeViewPopulateOnDemand="false"
                                                HideMenuOnSiteMap="false" SuppressImages="true"></portal:SiteMenu>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="cleared reset-box"></div>
                        <div class="art-header">
                            <div class="art-header-position">
                                <div class="art-header-wrapper">
                                    <div class="cleared reset-box"></div>
                                    <div class="art-header-inner">
                                        <div class="art-headerobject"></div>
                                        <div>
                                            <div class="art-logo">
                                                <portal:SiteTitle ID="SiteTitle" runat="server"></portal:SiteTitle>
                                                <portal:SkipLink ID="SkipLink1" runat="server" />
                                                <mp:InsecurePanel ID="InsecurePanel1" runat="server" CssClass="addthisbutton">
                                                    <portal:mojoAddThisButton ID="at2" runat="server" AccountId="" ButtonImageUrl="~/Data/SiteImages/addthisbookmarkbutton.gif"
                                                        Text="Share This Using Popular Bookmarking Services" CustomBrand="" CustomLogoUrl=""
                                                        CustomLogoBackgroundColor="" />
                                                </mp:InsecurePanel>
                                                <h2 id="slogan-text" class="art-logo-text">
                                                    <portal:SiteSlogan ID="ss1" runat="server" /></h2>
                                               
                                            </div>
                                            <div style="left: 600px; padding-top: 2px; position: absolute">
                                              <%--  <portal:SiteLogo ID="SiteLogo" runat="server" />--%>
                                                <portal:NivoSlider ID="NivoSlider1" runat="server" ImageFolder='~/Data/Sites/1/media/nivoimages' ImageWidth='250px' config = "effect: 'sliceDown', directionNav: false, pauseTime: 5000, controlNav: false" />
                                               
                                            </div>
                                        </div>

                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="cleared reset-box"></div>
                        <div class="art-layout-wrapper">
                            <div class="art-content-layout">
                                <div class="art-content-layout-row">
                                    <asp:Panel ID="divLeft" runat="server" CssClass="art-layout-cell art-sidebar1 leftside"
                                        Visible="True" SkinID="pnlPlain">
                                        <portal:PageMenu ID="PageMenu1" runat="server" UseTreeView="true" IsSubMenu="true"
                                            TreeViewShowExpandCollapse="false" />
                                        <asp:ContentPlaceHolder ID="leftContent" runat="server">
                                        </asp:ContentPlaceHolder>
                                    </asp:Panel>
                                    <asp:Panel ID="divCenter" runat="server" Visible="True" CssClass="center-rightandleftmargins"
                                        SkinID="pnlPlain">
                                        <portal:Breadcrumbs ID="Breadcrumbs" runat="server"></portal:Breadcrumbs>
                                        <portal:ChildPageMenu ID="ChildPageMenu" runat="server" CssClass="txtnormal"></portal:ChildPageMenu>
                                        <a id="startcontent"></a>
                                        <asp:ContentPlaceHolder ID="mainContent" runat="server">
                                        </asp:ContentPlaceHolder>
                                    </asp:Panel>
                                    <asp:Panel ID="divRight" runat="server" Visible="True" CssClass="art-layout-cell art-sidebar2 rightside"
                                        SkinID="pnlPlain">
                                        <asp:ContentPlaceHolder ID="rightContent" runat="server">
                                        </asp:ContentPlaceHolder>
                                    </asp:Panel>
                                </div>
                            </div>
                        </div>
                        <div class="cleared"></div>
                        <div class="art-footer">
                            <div class="art-footer-body">
                                <div class="art-footer-center">
                                    <div class="art-footer-wrapper">
                                        <a href="#" class="art-rss-tag-icon" title="RSS"></a>
                                        <portal:TwitterFollowButton ID="twitterfollow1" runat="server"
                                            Align="left"
                                            ButtonColor="blue"
                                            Lang="en"
                                            LinkColor="yellow"
                                            ShowCount="false"
                                            TextColor="black"
                                            UserToFollow="kofc3414"
                                            WidgetWidth="180" />
                                        <div class="art-footer-text">
                                            <p>
                                                <portal:SiteMapLink ID="SiteMapLink1" runat="server" CssClass="sitemaplink" />
                                                |
                                            <portal:SkinPreview ID="SkinPreview1" runat="server"></portal:SkinPreview>
                                                |
                                            <portal:CopyrightLabel ID="cl1" runat="server" ShowYear="true" BeginYear="2008" />
                                                |
                                            <portal:mojoPortalLink ID="lnkmojoportal" UseImage="false" runat="server" />
                                                | <a title="Learn about Artisteer" href="http://www.mojoportal.com/creating-skins-from-artisteer-html-templates.aspx">Design generated by Artisteer</a>
                                            </p>
                                        </div>
                                    </div>
                                </div>
                                <div class="cleared"></div>
                            </div>
                        </div>
                        <div class="cleared"></div>
                    </div>
                    <div class="cleared"></div>
                </div>
                <div class="cleared"></div>
                <p class="art-page-footer">
                    <br />
                    <br />
                </p>
            </div>
            <div class="topnavwrap">
                <div class="topnav">
                    <ul>
                        <portal:WelcomeMessage ID="WelcomeMessage" runat="server" RenderAsListItem="true" ListItemCss="firstnav" />
                        <portal:HomeLink ID="HomeLink" runat="server" RenderAsListItem="true" />
                        <portal:MobileSkinLink ID="mobileskin" runat="server" RenderAsListItem="true" />
                        <portal:SiteMapLink ID="SiteMapLink2" runat="server" CssClass="sitelink" RenderAsListItem="true" />
                        <portal:SearchInput ID="SearchInput1" LinkOnly="True" RenderAsListItem="true" runat="server" />
                        <portal:MemberListLink ID="MemberListLink" runat="server" RenderAsListItem="true" />
                        <portal:MyPageLink ID="MyPageLink1" runat="server" RenderAsListItem="true" />
                        <portal:UserProfileLink ID="UserProfileLink" runat="server" RenderAsListItem="true" />
                        <portal:MailboxLink ID="MailboxLink1" runat="server" RenderAsListItem="true" />
                        <portal:RegisterLink ID="RegisterLink" runat="server" RenderAsListItem="true" />
                        <portal:LoginLink ID="LoginLink" runat="server" RenderAsListItem="true" />
                        <portal:LogoutLink ID="LogoutLink" runat="server" RenderAsListItem="true" />
                    </ul>
                </div>
            </div>
            <script type="text/javascript">
                function HideMenuToolbar() { $("#toolbar").fadeOut(); $("#toolbarbut").fadeIn("slow"); }
                function ShowMenuToolbar() { $("#toolbar").fadeIn(); $("#toolbarbut").fadeOut("slow"); }
                $(document).ready(function () {
                    $("span.downarr a").click(function () { HideMenuToolbar(); Set_Cookie('openstate', 'closed') });
                    $("span.showbar a").click(function () { ShowMenuToolbar(); Set_Cookie('openstate', 'open') });
                    $("span.downarr a, span.showbar a").click(function () { return false; });
                    var openState = Get_Cookie('openstate');
                    if (openState != null) { if (openState == 'closed') { HideMenuToolbar(); } if (openState == 'open') { ShowMenuToolbar(); } }
                });
            </script>
            <portal:AutoHidePanel ID="ah1" runat="server">
                <div id="toolbarbut">
                    <span class="showbar"><a href="#">show bar</a></span>
                </div>
                <div id="toolbar">
                    <div class="toolbarleft">
                        &nbsp;
                    </div>
                    <div class="toolbarright">
                        <span class="downarr"><a href="#"></a></span>
                        <portal:AdminMenuLink ID="lnkAdminMenu" runat="server" />
                        <portal:FileManagerLink ID="lnkFileManager" runat="server" />
                        <portal:NewPageLink ID="lnkNewPage" runat="server" />
                        <portal:PageEditFeaturesLink ID="lnkPageContent" runat="server" />
                        <portal:PageEditSettingsLink ID="lnkPageSettings" runat="server" />
                        <asp:ContentPlaceHolder ID="pageEditContent" runat="server">
                        </asp:ContentPlaceHolder>
                    </div>
                </div>
            </portal:AutoHidePanel>
            <div class="cleared">
            </div>
        </div>
        <portal:Woopra ID="woopra11" runat="server" />
    </form>
    <portal:AnalyticsAsyncBottomScript ID="analyticsBottom" runat="server" />
</body>
</html>

 

5/4/2014 4:10:35 PM
Gravatar
Total Posts 18439

Re: Skin on 2nd Site is Ignored

yes you have a problem in your layout.master, this should not be there and needs to be removed:

<script runat="server">

    protected void Page_Load(object sender, EventArgs e)
    {

    }
</script>

the page load is in the codebehind for the master page which is compiled into mojoPortal.Web.dll, you cannot modify it and you cannot add code to it like that.

5/4/2014 4:30:01 PM
Gravatar
Total Posts 11

Re: Skin on 2nd Site is Ignored

Wow! I have no idea how that got there.  I know I did not write.  Anyway I made the changed uploaded to server but alas I am still get the same error when I try to add a new page. sad

 

5/4/2014 4:47:13 PM
Gravatar
Total Posts 18439

Re: Skin on 2nd Site is Ignored

I suggest install one of the latest skins and see if the problem happens using it or not, if so then it is isolated to a skin problem.

I certainly cannot reproduce this problem and no one else is reporting this error so it must be something specific to your installation.

5/7/2014 10:36:06 AM
Gravatar
Total Posts 11

Re: Skin on 2nd Site is Ignored

I understand that I have an unique problem and have been trying to troubleshoot it.  I need advice on how to do something.

In an attempt to start over I created another physical website at my host (Arvixe). It is actually a sub-domain. So at the same IP address I have main.site.com, second.site.com,  new.site.com.   I uploaded a fresh version of mp 2.4.0.3 to new.site.com. All are accessing the same SQL2012 db.

My question is this:  When I browse to new.site.com I am served my main site (without its custom skin).  I have tried to add a host name entry at new.site.com but this gives me an error.  So I think I have to make changes to the database tables from within SQL Mgmt Studio.  I have viewed various tables in the database such as the hosts and sites tables. I see that the new.site.com points to the GUID for main.site.com in the hosts table.  I think this needs to be changed but to what?

Eventually if I get new.site.com working properly I may have to port everything from the other two sites over to it so I thinks its best that I stay with one database.  However, if you think I should load a new db then that is what I will do.

5/7/2014 10:57:19 AM
Gravatar
Total Posts 18439

Re: Skin on 2nd Site is Ignored

Generally hosting like Arvixe is budget shared hosting and while they may let you add more and more sites I don't think they don't keep giving you more server resources such as memory and processing for each site. So doing that is ultimately going to slow down all the sites. As you may know there is usually a slow startup for an asp.net site on its first request because asp.net has to do a bunch of JIT (just in time) compilation of files, but after a few requests that stuff is done and it should be fast. But usually hosts have a memory limit on the web application pool and when this is reached the application pool is recycled and that means all that stuff has to be JIT compiled again. If you add more and more sites all using the same allocation of memory it will starve them and they will keep recycling because they keep reaching the memory limit right away and this kills performance. Unless you are paying for higher quality hosting usually they only give you enough memory for one IIS web site even though they will let you create more sites. You get what you pay for.

So instead of creating sub domains which are separate physical installations that require separate memory and server resources, it would be better use of resources to have only one physical installation with multiple sites by host name all running from the same single installation and a single IIS web site.

This would require a dedicated ip address that is not shared by other customers at your host, such that the first site would be accessible by ip address. Then you would only need to add dns settings for the additional host names all pointing to the same ip.

"I have tried to add a host name entry at new.site.com but this gives me an error."

you should start a new thread specifically about that problem and post the error detail from the log.

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