This is a migrated thread and some comments may be shown as answers.

"Object expected" when using MOSSTemplateManager

9 Answers 95 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Maria
Top achievements
Rank 1
Maria asked on 19 Sep 2007, 06:46 AM
Hi,

We tried to add the button MOSSTemplateManager, but got the javascript error "Object expected" when clicking on it. We don't have a problem with MOSSLinkManager, that dialog works fine.

We were using the 4.3.1 version of Full featured rad editor and upgraded to 4.3.2. This fixed the problem in our developer environment, but when delivered and upgraded in client environment we still see the same error. Any ideas why the upgrade did the trick in our environment but not in our clients?

Best regards
Maria

9 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 20 Sep 2007, 10:28 AM
Hello Maria,

From your explanation it seems that something went wrong when you have updated your client environment. Can you please make sure that you have followed the upgrade instructions provided in the documentation step-by-step?



Best wishes,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Maria
Top achievements
Rank 1
answered on 20 Sep 2007, 11:10 AM
Hi,

Yes I followed the steps, did it the same way in our development environmet. I also tried to reinstall it, but with the same result. However I then discovered one more weird thing. We have several sitecollections and one of them is actually working, while the others are not. Do not know if it is something with the deployment or what the difference is. It seems that something is missing for some sitecollections but not for one of them. Do you have any idea what this might be, or can you point me in some direction?

Best regards
Maria
0
Lini
Telerik team
answered on 21 Sep 2007, 11:37 AM
Hello Maria,

Open a page where you get the error and examine the HTTP requests, using a debugging proxy (FireBug for Firefox or Fiddler for Internet Explorer). See if any requests are not found (return 404). I suspect that there is a problem with either the AssetPickers.js or Form.js or HtmlEditor.js files. If there is a 404 not found error for one of these files, you might need to manually copy it to the folder where MOSS is looking for it.

I am attaching a screenshot of the output from Fiddler. I removed the AssetPickers.js so you can see how a failed request will look like.

Regards,
Lini
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Maria
Top achievements
Rank 1
answered on 24 Sep 2007, 11:38 AM
Hi,

Used Fiddler in our clients environment, and from a site that works I see the call to "../layouts/ReusableTextPicker.aspx", but from a site that don't work this call never comes. Nothing happens (no calls shows up in Fiddler) and I get the javascript error on the page, so no 404 in Fiddler. It have to be something else. If a javascript file were missing, like AssetPickers.js then wouldn't it go wrong for every site?

Best regards
Maria
0
Lini
Telerik team
answered on 25 Sep 2007, 07:14 AM
Hello Maria,

The files that are needed for the asset pickers to work are:

/_layouts/1033/AssetPickers.js
/_layouts/1033/HtmlEditor.js
/_layouts/1033/form.js
/_wpresources/RadEditorSharePoint/4.3.2.0__1f131a624888eeed/RadControls/Editor/Scripts/7_1_3/MOSSEditorTools.js

By the way, does the MOSSImageManager dialog work like MOSSLinkManager or it also produces the error? Also, please copy the error details and send them to us so we can pinpoint the exact reference, which is missing in your case.

Greetings,
Lini
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Maria
Top achievements
Rank 1
answered on 25 Sep 2007, 08:29 AM
Hi,

All .js files are there, no problem with MOSSImageManager or MossLinkManager, and the error we are getting is:
----------------
Line: 188
Char: 9
Error: Object expected
Code 0
URL: http://.......Home.aspx
---------------------------------
Best regards
Maria
0
Lini
Telerik team
answered on 25 Sep 2007, 08:37 AM
Hello Maria,

Please send us the contents of the page (view source in the browser). Also, try adding the MOSSImageManager in the editor tools file and see if it produces the same error as the MOSSTemplateManager or works like the MOSSLinkManager.

Regards,
Lini
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Maria
Top achievements
Rank 1
answered on 25 Sep 2007, 08:50 AM
MOSSImageManager is added in one of the toolsfiles, same where MOSSTemplateManager is added. This dialog works just fine.
Do you have an email address to send the code to so I don't have to post it here?

Best regards
Maria
0
Lini
Telerik team
answered on 25 Sep 2007, 12:02 PM
Hello Maria,

You can open a formal support ticket and attach the code there. Alternatively, you can send it to lini@telerik.com 

All the best,
Lini
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
WebParts for SharePoint
Asked by
Maria
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Maria
Top achievements
Rank 1
Lini
Telerik team
Share this question
or