When loading a homepage configured with a layout CMS 2 columns, the following warning is seen in the instance logs:

org.mozilla.javascript.EcmaError: "RP" is not defined.
Caused by error in null.5 at line 1

==> 1: var isHomeOrContentPage = RP.getReferringURL().contains('home.do') || RP.getReferringURL().contains('ess/');
2: var isCanvasActive = gs.getProperty('glide.cms.enable.responsive_grid_layout', 'true') == 'true';
3: var isCanvas = isCanvasActive && !isHomeOrContentPage;
4: isCanvas;

The UI Macro CMS 2 Columns has been changed in Jakarta:

Steps to Reproduce


  1. Create a homepage.

  2. Change the layout to the one associated to CMS 2 Columns, which is 2 columns with wide right column, header, and footer.
    Note that there are two layouts with this description; do not use CMS 2 Column Narrow Left, which has a narrow column on the left.

  3. Add some content to the homepage.

  4. Reload the homepage.

  5. Navigate to System Logs > Warnings
    A new warning displays:
    org.mozilla.javascript.EcmaError: "RP" is not defined.


After carefully considering the severity and frequency of the issue, and the cost and risk of attempting a fix, it has been decided to not address this issue in any current or near future releases. We do not make these decisions lightly, and we apologize for any inconvenience.

This warning is raised whenever a UI Macro references "RP", however the code referencing RP does work, it just also adds a warning to the server log. See also PRB1099087/KB0693306, where enabling List v3 will raise the same warning in the server logs when loading sys_ui_list_control.

If required, the warnings  can be fixed by editing the UI Macro to check if RP exists:

<g:evaluate var="jvar_canvas"> 

var isHomeOrContentPage = RP && RP.getReferringURL().contains('home.do') || RP.getReferringURL().contains('ess/');




Related Problem: PRB1234728

Seen In

SR - ITOM - Discovery and Service Mapping - v1.0.35

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2020-11-16 05:10:30