My Oracle Support Banner

Javascript Error On Webcenter Homepage With Custom Site Template (Doc ID 1122833.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle WebCenter Portal - Version 11.1.1.2.0 and later
Information in this document applies to any platform.
***Checked for relevance on 10-DEC-2013***

Symptoms

The logged in home page is displaying a javascript error when the site template is changed to a custom one.
The custom site template was built using the following white paper and sample code:

    Oracle White Paper— Customizing Site Templates in WebCenter Spaces (11.1.1.2.0)
    http://www.oracle.com/technetwork/middleware/webcenter/white-papers-088385.html

Example 1 Error

A runtime error has occurred. Do you wish to Debug?
Line:67
Error: 'null' is not null or an object



The error is coming from all_spaces_SHEPHERD_PS1_0027.js

62 function _wcActivateTabPopupLauncher(tab)
63 {
64 // making the tab dropdown icon visible and associatiing with tab
65 var navPane = tab.getParent();
66 var popupIconicLauncher = navPane.findComponent('tabPopUp:tabPopupLauncher');
67 popupIconicLauncher.setProperty('wcTabClientId', tab.getClientId()); <<<<<<<<<<<<<<<<<<<<
68 popupIconicLauncher.setVisible(true);


Example 2 Error

A runtime error has occurred. Do you wish to Debug?
Error: navPane is undefined
Line: 56



The error is coming from all-spaces-11.1.1.3.0-0084.js


51 function wcOnRenderNavPaneTimeout(navPaneId, selectedTabIndex)
52 {
53 var navPane = AdfPage.PAGE.findComponent(navPaneId);
54 if (selectedTabIndex >= 0)
55 {
56 var tab = navPane.findComponent('' + selectedTabIndex + ':tab');
57 if (tab != null && tab.getProperty('wcAllowedOperationsNonEmpty') == true)
58 _wcActivateTabPopupLauncher(tab);
59 }
60 }



Changes

A custom site template is used.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution


This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review.
My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.