custom skin and htmledit.aspx object expected error

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.
7/27/2009 11:16:36 AM
Gravatar
Total Posts 34

custom skin and htmledit.aspx object expected error

I did a local (ie on mojoPortal) as well as google search and found similar but not identical issues hence my post.

On my dev box I upgraded from mojo 2.3.0.1 to 2.3.10 - it was a clean removal of server files, upgrade went fine, my existing site and content work

However after the upgrade I have noticed that the in place editing (see explanation below) of the html content stopped working on majority of pages when I use my custom skin.

This issue and error occurs only on my cusom skin. Should I be recreating my skin from one of the default templates afer the upgrade?

Let me explain

1) I navigate to technology.aspx page and click on the edit link of the html content module.

2) The fckeditor starts up correctly and I edit the text

3) Upon clicking the update button I get a browser error on IE 8 and on Firefox I'm not being redirected from the editor to the page

Error details:
Message: Object expected
Line: 116
Char: 91
Code: 0
URI: http://127.0.0.6/HtmlEdit.aspx?mid=52&pageid=42

4) I can do the module edit successfully from the content manager

 

7/27/2009 11:36:46 AM
Gravatar
Total Posts 18439

Re: custom skin and htmledit.aspx object expected error

Hi,

I would check your layout.master and if it does not have this at the bottom of the <head> section, then add it there:

<portal:ScriptLoader id="ScriptLoader1" runat="server" />

and see if that solves it.

I would also compare some of the css files in your custom skin vs the newest versions of whatever you used as a starting point. There may be some aditional css you need to harvest and add to your skin. 

Hope it helps,

Joe

7/28/2009 6:53:45 AM
Gravatar
Total Posts 18439

Re: custom skin and htmledit.aspx object expected error

For a javascript error in the page I would view the source of the rendered page and look at the indicated line number and char to see what javscript is going on there. That may give more clues.

Hope it helps,

Joe 

7/30/2009 1:31:04 PM
Gravatar
Total Posts 34

Re: custom skin and htmledit.aspx object expected error

I fixed the issue (don't know why but the fix worked) this way:

(my original goal was to remove links from the mojo nav that I did not need)

Here's the topnav in layout.master with issues present:

<div class="topnav">
<ul>
<portal:LoginLink id="LoginLink" runat="server" RenderAsListItem="true" />
<portal:LogoutLink id="LogoutLink" runat="server" RenderAsListItem="true" />
</ul>
</div>

And here's the topnav that fixed the issue:

<div class="topnav">
<ul>
<portal:WelcomeMessage id="WelcomeMessage" runat="server" RenderAsListItem="true" ListItemCSS="firstnav" Visible="false" />
<portal:HomeLink id="HomeLink" runat="server" RenderAsListItem="true" Visible="false" />
<portal:SiteMapLink id="SiteMapLink2" runat="server" CssClass="sitelink" RenderAsListItem="true" Visible="false" />
<portal:MyPageLink id="MyPageLink1" runat="server" RenderAsListItem="true" Visible="false"/>
<portal:UserProfileLink id="UserProfileLink" runat="server" RenderAsListItem="true" Visible="false"/>
<portal:MailboxLink id="MailboxLink1" runat="server" RenderAsListItem="true" Visible="false" />
<portal:MemberListLink id="MemberListLink" runat="server" RenderAsListItem="true" visible="false"/>
<portal:RegisterLink id="RegisterLink" runat="server" RenderAsListItem="true" Visible="false" />
<portal:SearchInput id="SearchInput1" LinkOnly="True" RenderAsListItem="true" runat="server" Visible="false"/>
<portal:LoginLink id="LoginLink" runat="server" RenderAsListItem="true" />
<portal:LogoutLink id="LogoutLink" runat="server" RenderAsListItem="true" />
</ul>
</div>
 

7/30/2009 1:43:27 PM
Gravatar
Total Posts 18439

Re: custom skin and htmledit.aspx object expected error

I cannot think of any reason that would happen.

Can you try removing them one by one and see if you can isolate which one of them is the culprit?

The only one of those that has javascript in it is the SearchInput but it doesn't use javascript when LinkOnly is true.

Best,

Joe

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