Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
The server log reports warnings "'RP' is not defined" when loading homepage configured with system layout "CMS 2 Columns" - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • The server log reports warnings "'RP' is not defined" when loading homepage configured with system layout "CMS 2 Columns"
KB0647502

The server log reports warnings "'RP' is not defined" when loading homepage configured with system layout "CMS 2 Columns"


2546 Views Last updated : Apr 7, 2024 public Copy Permalink
KB Summary by Now Assist

Description

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:
/nav_to.do?uri=/sys_ui_macro.do%3Fsys_id%3D34036f300a0a0b7000b7ceb8ce23c6e8
 

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.

Workaround

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/');

.. 

</g:evaluate>

 


Related Problem: PRB1234728

The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.