20 June, 2009

‘g_InstanceID’ is undefined

How to fix: Recurring Meeting Workspace error: ‘g_InstanceID’ is undefined
After changing the master page on a Meeting Workspace site, the recurring meeting workspace hyperlinks under “Select a date from the list below” do not work and throw a JavaScript error.

Please follow these steps to to overcome this error message "‘g_InstanceID’ is undefined "
1. At the top level of the site collection:- Browse to Site actions -> Site Settings -> Modify all site settings.
2.- Under the Galleries section, click 'Master pages and page layouts' to access the Master Page Gallery
3.Select 'Upload'. Browse to 12 hive\TEMPLATE\GLOBAL and select mwsdefault.master.
4.The 'Edit Item' page for the gallery will open. It's best to give this mwsdefault.master a new name in order to distinguish it from the original mwsdefault.master. Then click 'Check In'.
5.Publish the newly uploaded copy by selecting 'Publish a major version' from the item's dropdown box on the Master Page Gallery.
6.Approve the newly uploaded master page by selecting 'Approve/reject' from the item's dropdown box, selecting the Approved box, and clicking OK.

Back on the problem Meeting Workspace page:
-Select 'Site Actions' -> 'Site Settings' -> and then 'Master page' under the Look and Feel section
-Select the newly uploaded version of the mwsdefault.master in the Site Master Page and System Master Page dropdown boxes, and then click OK.
-the JavaScript controls on the Meeting Workspace will now work without producing the JavaScript error, making the other event dates browsable again.

I hope the above steps helps you to overcome this javascript error message and your meeting workspace template will work properly and never face this problem again. Thanks!!!

17 comments:

  1. Amol, I found many suggestions to fix this problem. not one of them was as succinct as yours. Thank you especially for a no code mod approach!!

    ToddC

    ReplyDelete
  2. I agree with ToddC, this was an easy fix and your instructions were fantastic. I found another fix but it took a code change and I couldn't get it to work. Thanks very much for your help!!

    ReplyDelete
  3. Works like a charm. Thanks for the fix. Saved my bacon today.

    ReplyDelete
  4. Is this means that i will have to customize graphicly the whole master page again?...

    I mean, i will not to have to use my customize marte page but this!...

    Perhaps i should try it.
    Thanks anyways, b right back (after try it)

    ReplyDelete
  5. Hello Bro, it does not include any kind of customizations at all !! so go for it and your issue will be resolved !! Thanks !!

    Incase of any queries or questions then please let me know !! Thanks !!

    ReplyDelete
  6. Thanks man for your example. It works great BUT i can't find the new master throw SharePoint Designer to customize it (again).

    Do i have to download it from the Web, customize it, and after that upload it again?

    ReplyDelete
  7. ...i found it!!!
    From the "Master Pages and Page Layouts", click in the dropdown menu, and pick "Edit in SharePoint Designer".

    I already start to customize the master.
    I'll be in touch.

    ReplyDelete
  8. Hi again!...

    I follow your guide, or example, and it works...
    BUT at the moment to starting to customize the master page, and save the changes, and publish, etc, the links doesn't works again. Just like the beginning.
    The wors was to see what happen after a few hour of customization.

    I'm so tired, i will try it tomorrow, again.
    Thanks any comment. Regards.

    ReplyDelete
  9. Hello Bro,

    Glat to hear that my posted info helped you to resolve the issue !! The info which is posted is not at all heavy customizations so dont worry abt it !!

    I can recommend one thing in terms of customizations, always make the copy of the original master page before making any changes...

    Incase of any doubts or queries then please let me know !! Thanks!!

    Thanks and Regards,
    Amol Ghuge

    ReplyDelete
  10. Hey budy...
    I just find othe problem. Customizing the master page, the "default.aspx" page just unplug it self from the master. I mean, the personalization just stop. I don't know what happen but i started it again.

    ReplyDelete
    Replies
    1. Thank you for sharing this valuable info! it will definitely helps as well as useful to all SharePoint community

      Delete
  11. Finaly... i customize THE .master page changing some css styles in the CORE.CSS
    And it workd perfectly. BUUUUUUT... it is hard to believe that MOSS2007 by its own shows errors if yoy just apply other .master page to a meeting site.
    ...it is the Microsoft sign.

    Well, thanks for everything.
    If you need other tips, i don't know, whatever, emailme: mailto:dvillarroel@imagen.cl

    ReplyDelete
    Replies
    1. Do let me know in case of any queries/questions, Thank you once again!

      Delete
  12. Amol,

    Thanks for the clear and concise step by step on how to fix this error. I only wish I would have found your solution first. It would have saved me a lot of headache. Nevertheless, I was just about to give up until I found your solution!

    ReplyDelete
    Replies
    1. Thank you for the appreciation. it will help to write such article and share my expertise.

      Delete
  13. This is awesome! This one helped a lot especially in our prod environment when Sharepoint Designer is disabled.

    ReplyDelete

Your feedback is always appreciated. I will try to reply to your queries as soon as possible- Amol Ghuge

Note: Only a member of this blog may post a comment.