Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Oluwole Kolawole 32 posts 53 karma points
    Mar 08, 2011 @ 14:06
    Oluwole Kolawole
    0

    Site homepage is redirecting to backend login!

    Hi everyone,

    Urgent help needed here...I've just finished my first website using Umbraco and my client is very pleased.

    All was going well up till this morning when my client reported that they couldn't access the site because they were being automatically redirected to the backend login page.

    I've checked and I get the same problem. In fact, if I login to the backend, I can't then logout, it just keeps redirecting back into the backend interface as if I was still logged in!

    Help please...my happy client is about to become very unhappy indeed.

    You can check the website here: www.canuk.org.uk.

    Regards,
    Wole.

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Mar 08, 2011 @ 14:41
    Ismail Mayat
    0

    Wole,

    What version of umbraco are you using?  Also can you check your folder permissions and also check the umbracolog table see if there is anything suspect in there.

    Regards

    Ismail

  • Oluwole Kolawole 32 posts 53 karma points
    Mar 08, 2011 @ 15:29
    Oluwole Kolawole
    0

    Hi Ismail, thanks for your quick response.

    I'm using 4.6.1, all folder permissions are set to read/write for everybody and everything. I've checked the umbracolog table and I'm not sure what to make of the entries:

    1. There are quite a few entries with "Logout" in the "LOGHEADER" column.

    2. There are a number of entries from yesterday (when it was still working fine) that state "NotFound" in the "LOGHEADER" column and "mywebpage.aspx  (from '')" in the "LOGCOMMENT" column; "mywebpage.aspx" shows different page names that exist in the Content tree.

    3. There is an "Error" entry stating "Error adding to SiteMapProvider: System.InvalidOperationException: Multiple nodes with the same URL '/' were found. XmlSiteMapProvider requires that sitemap nodes have unique URLs.
      at System.Web.StaticSiteMapProvider.AddNode(SiteMapNode node, SiteMapNode parentNode)
      at umbraco.presentation.nodeFactory.UmbracoSiteMapProvider.loadNodes(String parentId, SiteMapNode parentNode)"

    4. There is an "Error" entry "At /contactus.aspx (Referred by: http://www.canuk.org.uk/contactus.aspx):"

    5. There is an "Error" entry "At /umbraco/webservices/TreeDataService.ashx?rnd=4c845d40eaca48cb906c95ec387baa36&id=-1&treeType=CacheItem&nodeKey=umbraco.cms.businesslogic.propertytype.PropertyType&contextMenu=true&isDialog=false&rnd2=81.7 (Referred by: http://www.canuk.org.uk/logout.aspx): "

    6. There is an "Error" entry "At /umbraco/webservices/TreeDataService.ashx?rnd=a05f9fc828b84e78abd0822599e6dd43&id=-1&treeType=CacheItem&nodeKey=umbraco.cms.businesslogic.propertytype.PropertyType&contextMenu=true&isDialog=false&rnd2=79.2 (Referred by: http://www.canuk.org.uk/): "

    Other than these, the rest of the entries in the log are either "Logout", "Custom", "System" or other benign looking entries.

    Thoughts!

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Mar 08, 2011 @ 15:47
    Ismail Mayat
    0

    do u have a copy of the site running locally and does that do the same thing if it does then try upgrading your local site to 4.7 and see if that fixes the problem?

    Regards

    Ismail

  • Oluwole Kolawole 32 posts 53 karma points
    Mar 08, 2011 @ 16:00
    Oluwole Kolawole
    0

    I have a local copy of the site and that works just fine. Upgrading to 4.7 is a bit of a sledgehammer to kill a fly isn't it!?

    Wole.

  • Oluwole Kolawole 32 posts 53 karma points
    Mar 08, 2011 @ 16:05
    Oluwole Kolawole
    0

    When I type in www.canuk.org.uk, the site redirects to http://www.canuk.org.uk/umbraco/login.aspx?redir=%2f.

    Does this help with determining what might be going on?

    Regards,
    Wole.

  • Hendy Racher 863 posts 3849 karma points MVP 2x admin c-trib
    Mar 08, 2011 @ 16:12
    Hendy Racher
    0

    arhh.. looks like it might be something to do with the site expecting every page to be authenticated, hence redirecting to the login page - what are your authentication & authorization settings in the web.config ?

  • Oluwole Kolawole 32 posts 53 karma points
    Mar 08, 2011 @ 16:47
    Oluwole Kolawole
    0

    Hi Hendy,

    I have the following settings in web.config:

        <authentication mode="Forms">
          <forms name="yourAuthCookie" loginUrl="login.aspx" protection="All" path="/" />
        </authentication>
        <authorization>
          <allow users="?" />
        </authorization>

    These settings are the same with the local copy that works!

  • Hendy Racher 863 posts 3849 karma points MVP 2x admin c-trib
    Mar 08, 2011 @ 16:57
    Hendy Racher
    0

    Hi Oluwole,

    I'm guessing that the local version is identical to that on the server ? is it worth backing up both the file system and database on the server and restoring it locally to see if exhibits the same symptoms ?

  • Oluwole Kolawole 32 posts 53 karma points
    Mar 08, 2011 @ 17:07
    Oluwole Kolawole
    0

    Ok, I'll try that...there goes the rest of my day :-(

  • Oluwole Kolawole 32 posts 53 karma points
    Mar 08, 2011 @ 18:05
    Oluwole Kolawole
    0

    Hi Hendy,

    Problem solved! Your suggestion indirectly help to solve the problem :-).

    I was downloading all the files to my local machine when I discovered that the root folder had two default.aspx files in it; one started with a lowercase "d" and the other an uppercase "D"!! I'm assuming that this is only possible on Unix boxes, but the hosting plan is a Windows .Net one! Is it possible to run ASP.Net on Unix boxes? Am I right in stating that it's only a Unix box that would consider default.aspx and Default.aspx to be different files?

    I renamed "Default.aspx" and all is well :-).

    Default.aspx was much larger than default.aspx but they had the same creation date.

    The Content of Default.aspx was:

    <%@ Register TagPrefix="cc1" Namespace="umbraco.uicontrols" Assembly="controls" %>

    <%@ Page Language="c#" CodeBehind="Default.aspx.cs" AutoEventWireup="True" Inherits="umbraco._Default" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
      <title>Start Umbraco</title>
      <script type="text/javascript">
        function startUmbraco() {
          window.open('umbraco.aspx', 'u<%=Request.ServerVariables["SERVER_NAME"].Replace(".","").Replace("-","")%>', 'height=600,width:850,scrollbars=yes,resizable=yes,top=0,left=0,status=yes');
        }
      </script>
     
      <link href="<%= umbraco.IO.IOHelper.ResolveUrl( umbraco.IO.SystemDirectories.Umbraco_client ) %>/ui/default.css" type="text/css" rel="stylesheet"/>
      <style type="text/css">
        body {
          text-align: center;
          height: 100%;
          padding: 40px;
          background-color: white;
        }
        #container {
          height: 200px;
          border: 1px solid #ccc;
          width: 400px;
        }
      </style>
    </head>
    <body onload="startUmbraco();">
      <form id="Form1" method="post" runat="server">
      <img src="images/umbracoSplash.png" alt="umbraco" style="width: 354px; height: 61px;" /><br />
      <br />
      <h3>umbraco <%=umbraco.ui.Text("dashboard", "openinnew")%></h3>
     
      <span class="guiDialogNormal">
        <br />
        <br />
        <a href="#" onclick="startUmbraco();">
          <%=umbraco.ui.Text("dashboard", "restart")%>
          umbraco</a> &nbsp; <a href="../">
          <%=umbraco.ui.Text("dashboard", "browser")%></a></span>
     
      <br />
      <br />
     
      <span class="guiDialogTiny">(<%=umbraco.ui.Text("dashboard", "nothinghappens")%>)</span>
      <br />
      <br />
      <span class="guiDialogTiny"><a href="http://umbraco.org">
        <%=umbraco.ui.Text("dashboard", "visit")%>
        umbraco.org</a></span>
      </form>
    </body>
    </html>

    whilst default.aspx only had the one line:

    <%@ Page language="c#" Codebehind="default.aspx.cs" AutoEventWireup="True" Inherits="umbraco.UmbracoDefault" trace="true" validateRequest="false" %>

    I'm hoping that renaming Default.aspx is not a temporary solution so if anyone has any idea why this happened in the first place, I would appreciate your input to this discussion.

    Thanks everyone for your quick responses.

    Regards,
    Wole.

  • Hendy Racher 863 posts 3849 karma points MVP 2x admin c-trib
    Mar 08, 2011 @ 18:16
    Hendy Racher
    0

    Hi Wole,

    Glad you've solved the issue :) whilst it's possible to run .net on other platforms (see http://www.mono-project.com/) - duplicate filenames on a Windows box does seem very odd !

    What are the differences between the two default.aspx files ?

    Cheers,

    Hendy

  • Oluwole Kolawole 32 posts 53 karma points
    Mar 08, 2011 @ 18:28
    Oluwole Kolawole
    0

    Hi Hendy,

    I believe I posted the differences in my previous post!

    I've asked the hosting service to confirm what box .net is running on; still awaiting their response but not holding my breath :-).

    Regards,
    Wole.

Please Sign in or register to post replies

Write your reply to:

Draft