Copied to clipboard

Flag this post as spam?

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


  • Fredrik Esseen 610 posts 906 karma points
    Jun 28, 2010 @ 14:54
    Fredrik Esseen
    0

    Content Tree Javascript error after upgrade to 4.5

    Hi!

    Tried to do an upgrade to 4.5 and now the content trees in the backend is not working. I get the following js error:

    Message: Invalid character
    Row: 143
    Character: 7425
    Code: 0
    URI: http://demo.teknikkompaniet.se/umbraco/umbraco.aspx


    Message: 'uiKeys' is undefined
    Row: 255
    Character: 17
    Code: 0
    URI: http://demo.teknikkompaniet.se/umbraco/umbraco.aspx

    I copied thought ftp the following maps and files:

    bin
    config
    install
    umbraco
    umbraco_client
    default.aspx

    I use IIS 7 with asp.net 4.0 and MySQL

  • Fredrik Esseen 610 posts 906 karma points
    Jun 29, 2010 @ 09:12
    Fredrik Esseen
    0

    The uiKeys error points to this: UmbClientMgr.appActions().shiftApp(app, uiKeys['sections_' + app]);

  • pnr 131 posts 226 karma points
    Jun 29, 2010 @ 11:12
    pnr
    0

    I also can't access any thing in the section menu (Content,media, Settings ...) after upgrading to 4.5. I am getting the above javascript error.

  • Fredrik Esseen 610 posts 906 karma points
    Jun 29, 2010 @ 11:59
    Fredrik Esseen
    0

    Below is my web.config. Somewthing wrong there?

    <?

     

    xml version="1.0" encoding="utf-8"?>

    <

     

    configuration>

    <

     

    configSections >

    <

     

    section name="urlrewritingnet" restartOnExternalChanges="true" requirePermission="false" type="UrlRewritingNet.Configuration.UrlRewriteSection, UrlRewritingNet.UrlRewriter" />

    <

     

    section name="microsoft.scripting" type="Microsoft.Scripting.Hosting.Configuration.Section, Microsoft.Scripting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" />

    <

     

    section name="clientDependency" type="ClientDependency.Core.Config.ClientDependencySection, ClientDependency.Core"/>

    <

     

    section name="Examine" type="Examine.Config.ExamineSettings, Examine"/>

    <

     

    section name="ExamineLuceneIndexSets" type="UmbracoExamine.Config.ExamineLuceneIndexes, UmbracoExamine"/>

    </

     

    configSections>

     

    <

     

    urlrewritingnet configSource="config\UrlRewriting.config" />

    <

     

    microsoft.scripting configSource="config\scripting.config" />

    <

     

    clientDependency configSource="config\ClientDependency.config" />

    <

     

    Examine configSource="config\ExamineSettings.config" />

    <

     

    ExamineLuceneIndexSets configSource="config\ExamineIndex.config" />

    <

     

    appSettings>

    <

     

    add key="umbracoDbDSN" value="xxxxxxl" />

    <

     

    add key="umbracoConfigurationStatus" value="4.5.0" />

    <

     

    add key="umbracoReservedUrls" value="/config/splashes/booting.aspx,/install/default.aspx,/config/splashes/noNodes.aspx,/login" />

    <

     

    add key="umbracoReservedPaths" value="~/umbraco,~/install/" />

    <

     

    add key="umbracoContentXML" value="~/App_Data/umbraco.config" />

    <

     

    add key="umbracoStorageDirectory" value="~/App_Data" />

    <

     

    add key="umbracoPath" value="~/umbraco" />

    <

     

    add key="umbracoEnableStat" value="false" />

    <

     

    add key="umbracoHideTopLevelNodeFromPath" value="true" />

    <

     

    add key="umbracoEditXhtmlMode" value="true" />

    <

     

    add key="umbracoUseDirectoryUrls" value="false" />

    <

     

    add key="umbracoDebugMode" value="true" />

    <

     

    add key="umbracoTimeOutInMinutes" value="20" />

    <

     

    add key="umbracoVersionCheckPeriod" value="7" />

    <

     

    add key="umbracoDisableXsltExtensions" value="true" />

    <

     

    add key="umbracoDefaultUILanguage" value="en" />

    <

     

    add key="umbracoProfileUrl" value="profiler" />

    <

     

    add key="umbracoUseSSL" value="false" />

    <

     

    add key="umbracoUseMediumTrust" value="false" />

     

     

     

    </appSettings>

    <

     

    system.net>

    <

     

    mailSettings>

    <

     

    smtp from="[email protected]">

    <

     

    network host="www3.fsdata.se" port="26" />

    </

     

    smtp>

    </

     

    mailSettings>

    </

     

    system.net>

     

    <

     

    connectionStrings>

    <

     

    remove name="LocalSqlServer" />

    <!--

     

    <add name="LocalSqlServer" connectionString="server=.\sqlexpress;database=aspnetdb;user id=DBUSER;password=DBPASSWORD" providerName="System.Data.SqlClient"/>-->

    </

     

    connectionStrings>

    <

     

    system.web>

    <!--

     

    <trust level="Medium" originUrl=".*" />-->

    <

     

    customErrors mode="Off" />

    <

     

    trace enabled="true" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" />

    <

     

    sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20" />

    <

     

    globalization requestEncoding="UTF-8" responseEncoding="UTF-8" uiCulture="sv-SE" culture="sv-SE"/>

    <

     

    xhtmlConformance mode="Strict" />

    <

     

    httpRuntime maxRequestLength="1048576" executionTimeout="3600" requestValidationMode="2.0" />

    <

     

    pages enableEventValidation="false">

    <!--

     

    ASPNETAJAX -->

    <

     

    controls>

    <

     

    add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

    <

     

    add tagPrefix="umbraco" namespace="umbraco.presentation.templateControls" assembly="umbraco" />

    <

     

    add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

    </

     

    controls>

    </

     

    pages>

    <

     

    httpModules>

    <!--

     

    URL REWRTIER -->

    <

     

    add name="UrlRewriteModule" type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter" />

    <

     

    add name="umbracoRequestModule" type="umbraco.presentation.requestModule" />

    <!--

     

    UMBRACO -->

    <

     

    add name="viewstateMoverModule" type="umbraco.presentation.viewstateMoverModule" />

    <

     

    add name="umbracoBaseRequestModule" type="umbraco.presentation.umbracobase.requestModule" />

    <!--

     

    ASPNETAJAX -->

    <

     

    add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

    <!--

     

    CLIENT DEPENDENCY -->

    <

     

    add name="ClientDependencyModule" type="ClientDependency.Core.Module.ClientDependencyModule, ClientDependency.Core"/>

    </

     

    httpModules>

     

    <

     

    httpHandlers>

    <

     

    remove verb="*" path="*.asmx" />

    <!--

     

    ASPNETAJAX -->

    <

     

    add verb="*" path="*.asmx" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />

    <

     

    add verb="*" path="*_AppService.axd" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />

    <

     

    add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />

    <!--

     

    UMBRACO CHANNELS -->

    <

     

    add verb="*" path="umbraco/channels.aspx" type="umbraco.presentation.channels.api, umbraco" />

    <

     

    add verb="*" path="umbraco/channels/word.aspx" type="umbraco.presentation.channels.wordApi, umbraco" />

    <

     

    add verb="*" path="DependencyHandler.axd" type="ClientDependency.Core.CompositeFiles.CompositeDependencyHandler, ClientDependency.Core "/>

    <

     

    add verb="GET,HEAD,POST" path="GoogleSpellChecker.ashx" type="umbraco.presentation.umbraco_client.tinymce3.plugins.spellchecker.GoogleSpellChecker,umbraco" />

    </

     

    httpHandlers>

    <

     

    compilation defaultLanguage="c#" debug="false" batch="false" targetFramework="4.0">

    <

     

    assemblies>

    <!--

     

    ASP.NET 4.0 Assemblies -->

    <

     

    add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />

    <

     

    add assembly="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />

    <

     

    add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

    <

     

    add assembly="System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />

    <

     

    add assembly="System.Data.DataSetExtensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />

    <

     

    add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

    <

     

    add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

    </

     

    assemblies>

    </

     

    compilation>

    <

     

    authentication mode="Forms">

    <

     

    forms name="yourAuthCookie" loginUrl="login.aspx" protection="All" path="/" />

    </

     

    authentication>

    <

     

    authorization>

    <

     

    allow users="?" />

    </

     

    authorization>

    <!--

     

    Membership Provider -->

    <

     

    membership defaultProvider="UmbracoMembershipProvider" userIsOnlineTimeWindow="15">

    <

     

    providers>

    <

     

    clear />

    <

     

    add name="UmbracoMembershipProvider" type="umbraco.providers.members.UmbracoMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Another Type" />

    <

     

    add name="UsersMembershipProvider" type="umbraco.providers.UsersMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" />

    </

     

    providers>

    </

     

    membership>

    <!--

     

    added by NH to support membership providers in access layer -->

    <

     

    roleManager enabled="true" defaultProvider="UmbracoRoleProvider">

    <

     

    providers>

    <

     

    clear />

    <

     

    add name="UmbracoRoleProvider" type="umbraco.providers.members.UmbracoRoleProvider" />

    </

     

    providers>

    </

     

    roleManager>

    <!--

     

    Sitemap provider-->

    <

     

    siteMap defaultProvider="UmbracoSiteMapProvider" enabled="true">

    <

     

    providers>

    <

     

    clear />

    <

     

    add name="UmbracoSiteMapProvider" type="umbraco.presentation.nodeFactory.UmbracoSiteMapProvider" defaultDescriptionAlias="description" securityTrimmingEnabled="true" />

    </

     

    providers>

    </

     

    siteMap>

    </

     

    system.web>

    <!--

     

    ASPNETAJAX -->

    <

     

    system.web.extensions>

    <

     

    scripting>

    <

     

    scriptResourceHandler enableCompression="true" enableCaching="true" />

    </

     

    scripting>

    </

     

    system.web.extensions>

    <

     

    system.webServer>

    <

     

    validation validateIntegratedModeConfiguration="false" />

    <

     

    modules runAllManagedModulesForAllRequests="true">

    <

     

    remove name="ScriptModule" />

    <

     

    remove name="UrlRewriteModule" />

    <

     

    remove name="umbracoRequestModule" />

    <

     

    remove name="viewstateMoverModule" />

    <

     

    remove name="umbracoBaseRequestModule" />

    <

     

    remove name="ClientDependencyModule" />

    <

     

    add name="UrlRewriteModule" type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter" />

    <

     

    add name="umbracoRequestModule" type="umbraco.presentation.requestModule" />

    <

     

    add name="viewstateMoverModule" type="umbraco.presentation.viewstateMoverModule" />

    <

     

    add name="umbracoBaseRequestModule" type="umbraco.presentation.umbracobase.requestModule" />

    <

     

    add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

    <

     

    add name="ClientDependencyModule" type="ClientDependency.Core.Module.ClientDependencyModule, ClientDependency.Core"/>

    </

     

    modules>

    <

     

    handlers accessPolicy="Read, Write, Script, Execute">

    <

     

    remove name="WebServiceHandlerFactory-Integrated" />

    <

     

    remove name="ScriptHandlerFactory" />

    <

     

    remove name="ScriptHandlerFactoryAppServices" />

    <

     

    remove name="ScriptResource" />

    <

     

    remove name="Channels" />

    <

     

    remove name="Channels_Word" />

    <

     

    remove name="ClientDependency" />

    <

     

    remove name="SpellChecker" />

    <

     

    add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

    <

     

    add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

    <

     

    add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

    <

     

    add verb="*" name="Channels" preCondition="integratedMode" path="umbraco/channels.aspx" type="umbraco.presentation.channels.api, umbraco" />

    <

     

    add verb="*" name="Channels_Word" preCondition="integratedMode" path="umbraco/channels/word.aspx" type="umbraco.presentation.channels.wordApi, umbraco" />

    <

     

    add verb="*" name="ClientDependency" preCondition="integratedMode" path="DependencyHandler.axd" type="ClientDependency.Core.CompositeFiles.CompositeDependencyHandler, ClientDependency.Core "/>

    <

     

    add verb="GET,HEAD,POST" preCondition="integratedMode" name="SpellChecker" path="GoogleSpellChecker.ashx" type="umbraco.presentation.umbraco_client.tinymce3.plugins.spellchecker.GoogleSpellChecker,umbraco"/>

    <

     

    add verb="*" name="MultipleFileUploadHandler" path="MultipleFileUploadHandler.axd" type="noerd.Umb.DataTypes.multipleFileUpload.MultipleFileUploadHandler, noerd.Umb.DataTypes.multipleFileUpload" />

    </

     

    handlers>

    </

     

    system.webServer>

     

    <

     

    system.codedom>

    <

     

    compilers>

    <

     

    compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">

    <

     

    providerOption name="CompilerVersion" value="v4.0" />

    <

     

    providerOption name="WarnAsError" value="false" />

    </

     

    compiler>

    </

     

    compilers>

    </

     

    system.codedom>

    <

     

    runtime>

    <!--

     

    Old asp.net ajax assembly bindings -->

    <

     

    assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

    <

     

    dependentAssembly>

    <

     

    assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" />

    <

     

    bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="4.0.0.0" />

    </

     

    dependentAssembly>

    <

     

    dependentAssembly>

    <

     

    assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" />

    <

     

    bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="4.0.0.0" />

    </

     

    dependentAssembly>

    </

     

    assemblyBinding>

    </

     

    runtime>

    </

     

    configuration>

  • pnr 131 posts 226 karma points
    Jun 29, 2010 @ 12:05
    pnr
    0

    I have upgraded all folders and the web.config

  • Jeff Grine 149 posts 189 karma points
    Jun 29, 2010 @ 14:51
    Jeff Grine
    0

    Have you checked this post? Did you use the built-in windows zip utility to unzip?

  • Fredrik Esseen 610 posts 906 karma points
    Jun 29, 2010 @ 15:14
    Fredrik Esseen
    0

    Nope, used winrar.

  • pnr 131 posts 226 karma points
    Jun 29, 2010 @ 15:26
    pnr
    0

    Thanks for the suggestion, but it didn't work for me either, I also used WinRar.

     

    /Peter

  • Fredrik Esseen 610 posts 906 karma points
    Jun 29, 2010 @ 16:29
    Fredrik Esseen
    0

    Peter, do you have Nibbles Mailengine installed? I've checked the first js error that i got and where it breaks, and it seems that it stops when adding the "send as mail". Dont know if it is because of that.

    It breaks around here:

    action"

     

    :function(N,T){openModal(\u0027dialogs/mailing.aspx?id=\u0027 + nodeID, \u0027Send mails\u0027, 550, 480);;}}

    If I look at all the other "actions" theres no OpenModal so I suppose that is an obsolete way of opening modals in 4.5..?

  • pnr 131 posts 226 karma points
    Jun 30, 2010 @ 07:59
    pnr
    0

    I haven't installed any packages on that site I upgraded. Have you found a solution?

  • Fredrik Esseen 610 posts 906 karma points
    Jun 30, 2010 @ 10:28
    Fredrik Esseen
    0

    Nope. But I did a clean install on my host in a subfolder to test if it has something to do with the host but with a clean install everything works fine, so it is definitely the old installation that messes things up.

    That also excludes the problem with unzipping the files since the clean installation works.

    Could it be something with ClientDependency..?

  • Connie DeCinko 931 posts 1160 karma points
    Jul 22, 2010 @ 17:27
    Connie DeCinko
    0

    I am getting the same error when installing packages upon a clean install.  It appears several of the packages are not compatible with .NET 4 and/or Umbraco 4.5 yet there is no mention of this on their download pages.  I had to pluck out all my package dlls in order to get the admin working again.  I've been dropping one at a time back in and found several that cause error and issue reported.

  • Jeff Grine 149 posts 189 karma points
    Jul 22, 2010 @ 17:30
    Jeff Grine
    0
  • Fredrik Esseen 610 posts 906 karma points
    Aug 13, 2010 @ 08:25
    Fredrik Esseen
    0

    I've noticed that this error can happen even without packages that is not compatible.

    This is the full story:

    I installed a clean install of 4.5.1 local with IIS Express (no stand-alone release yet, but installing Webmatrix gives you the possibility to start IIS Express from cmd as mentioned in http://our.umbraco.org/forum/getting-started/installing-umbraco/10233-Running-Umbraco-45-on-Cassini?p=1)
    and everything worked fine. I used a MySQL DB which is a copy of my customers db that I have on my provider.

    So now I wanted to download all the essential folders from the customer to my local installation. I copied the following folders:

    css
    xslt
    usercontrols
    masterpages
    media

    When i went back into admin on my local folder the js error "UI Keys is undefined" appeared and all trees including the start-folder (content, media, etc) was gone.

    Finally I stopped IIS Express, started it again with a NEW port number. This didnt help. So I removed the Client Dependancy folder in App_data and this solved it.

    I've removed that folder without restarting IIS Express and it didnt help so both steps seems to be necessary.

    Why is it like this and can I somehow solve it in a simpler way? And when I copy the installation to my provider to upgrade the customers installation, is it enought to restart the app-pool to achieve the same thing as changing port..?

    I also noticed that setting the port back to the old number gives the js error again. Is it some cache thing?

  • Fredrik Esseen 610 posts 906 karma points
    Aug 13, 2010 @ 15:55
    Fredrik Esseen
    0

    I downloaded all content in the media folder and that breaked the tree. The difference is, now I cant get the tree to return by changing port and deleting ClientDepenancy. What am I missing and why is this happening??

Please Sign in or register to post replies

Write your reply to:

Draft