November Happy Hour will be moved to Thursday December 5th.

EPiServer CMO 2.1 PageTree issue in LPO-test

Vote:
 

I have just set up EPiServer CMO 2.1. on an upgraded EPiServer 6 R2 site.

In both development and test i get an annoying "Object reference not set to an instance of an object." error when clicking the page-selector for "orlginal page" or "Conversion page" and trying to expand a node in the tree-structure. I have been over the setup several times without finding an explanation or solution to this problem. 

Anyone else have experienced similar problems, or got an idea to what can be the cause of this problem? Appears to be a configuration issue, but I am a little ouot of ideas.

.Net Framework 3.5 (not 4), runs ono Win7 (dev) and 2003 Server (test)

#54476
Oct 18, 2011 15:46
Vote:
 

I'm trying to reproduce this issue by installing CMO 2.1 on site which was upgraded from CMS 6 to CMS 6 R2. Is it your case?

Do you have any exception details, like stack trace?

#54477
Oct 18, 2011 16:22
Vote:
 

Yep. That is my case :-)

No stack trace is generated unfortunately, seems to be captured within the ajax post or something.

I have tryed to attach to the script and debug, but no success so far.

#54478
Oct 18, 2011 16:34
Vote:
 

Hello Lars,

Please, check the web.config if you have this handler in /configuration/system.webServer/handlers:

<add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" preCondition="integratedMode" />    
and this module in /configuration/system.webServer/modules:
<add name="ScriptModule" preCondition="managedHandler"
         type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    
    
 
#54484
Edited, Oct 18, 2011 22:08
Vote:
 

Thanx for the tip. Wil try this tomorrow and let you know.

Seems likely that this is some sort of configuration issue, as i tried to install a clean installation of CMO directly on e fresh 6 R2-site, and there the pagtree works fine.

#54486
Oct 18, 2011 22:11
Vote:
 

They are both present in my config file. The error still remains unfortunately. Did a diff on the config files from a working site and made some adjustments, but still the same null-reference error...

#54514
Edited, Oct 19, 2011 9:32
Vote:
 

I cannot reproduce this issue on upgraded sites both with Public and Demo/Alloy templates. It is possible to select original and conversion pages in LPO test settings.

Try to turn on logging on site and see if you get any error in log. You can add debug output or file appender and enable Debug level logging for site. Example configuration in EPiServerLog.config file:

<?xml version="1.0" encoding="utf-8"?>
<log4net>
 
  <appender name="OutputDebugStringAppender" type="log4net.Appender.OutputDebugStringAppender">
    <layout type="log4net.Layout.PatternLayout">
      <conversionPattern value="%date [%thread] %-5level %type.%method - %message%newline" />
    </layout>
  </appender>

  <root>
    <level value="Debug" />
    <appender-ref ref="OutputDebugStringAppender" />
  </root>
 
</log4net>

    

DebugView is nice tool to read logs for debug purposes. You can also try to find any related error in Windows Event Viewer.

Probably the issue is related to your specific site and how it is upgraded to last CMS version. Do you use any special data source/page provider?

You can also check section "Issues When Upgrading from EPiServer CMS 6" in following document: http://world.episerver.com/Documentation/Items/Installation-Instructions/EPiServer-CMS/Version-6/EPiServer-CMS-6-R2/Installation-Instructions---EPiServer-CMS-6-R2/#upgradeissues

#54517
Oct 19, 2011 10:27
Vote:
 

... and one more option how you can try to catch exception: try to reproduce the issue in Firefox with FireBug. Make sure that console and network monitoring are enabled and you get all messanes/activity in that tabs.

Try to reproduce the problem and check if you have some information in FireBug console.

Check also all network requests and check response data and html if there is any errors (typically response with code 5XX or 4XX).

#54520
Oct 19, 2011 12:10
Vote:
 

The only error logged that may be the cause of the problem is this:

ERROR [5] EPiServer.DataAbstraction.LanguageBranch.get_ResolvedIconPath - Could not resolve language icon path: util/images/flags/flag_no.gif
EPiServer.Core.EPiServerException: Can't resolve non-rooted path 'util/images/flags/flag_no.gif'
   at EPiServer.UriSupport.ResolveUrlBySettings(String path)
   at EPiServer.DataAbstraction.LanguageBranch.get_ResolvedIconPath()

I tried to add te image in question to both the global EPiServer Util/[....]/images path, as well as a local folder under /util/images/flags, bus still no cake for me...

#54525
Oct 19, 2011 14:04
Vote:
 

Another fun-fact: The page-picker works excellent under "Campaigns". It both expands and collapses just fine there. It is only under LPO it is acting out.

A bit strange as it is the exact same strukture that feeds the pageTree as far as I can see... Maybe different scripts?

#54529
Oct 19, 2011 15:18
Vote:
 

Does page selector work fine both when you create campaign for all languages and when you create campaign for specific language?

Did you managed to get more information on client side using FireBug?

#54533
Oct 19, 2011 16:02
Vote:
 

The property for Creating campaign is a bit different than the one used for the LPO that is malfunctioning. They both have page-picker logic though, but this only works for the campaign prop (regardless of language).

I am not able to debug this in firebug since this is an ajax-postback that is called from a compressed js-file, calling a method in a built in assembly (at least no success so far).

Another possible factor: The site in question is originally a migrated epi4-site, but all assemblies are present (done a complete compare of bin-folder), Web.config is also equal to the extent possible, and the episerver core files I expect to be handled by the installer...). The best idea so far is that it may be a built in script that is written for an older version of EPi, or something like that.

Otherwise still quite stuck :-)

#54591
Oct 24, 2011 8:53
Vote:
 

Try to turn off script compression with following setting in episerver.shell section:

  <episerver.shell>
    <clientResources debug="true" />
  </episerver.shell>

    

Probably it will help to debug JavaScript.

And please verify all requests in Firebug Network tab. It would be good to know if it is client or server error.

You should see failed requests with codes 5XX or 4XX in Firebug Network tab if it is server error during AJAX call.

#54699
Oct 28, 2011 16:57
Vote:
 

EPiServer CMO requires viewState to be turned on for some reason.

To fix this if viewState is off in your site: Set <pages enableViewState="true"> for the "CMO" location path in your web.config file....

#55272
Nov 24, 2011 12:49
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.