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.
Getting Failed to initialize plugin:Code sample error in portal-some users are getting the older version of codesample for this request - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • Getting Failed to initialize plugin:Code sample error in portal-some users are getting the older version of codesample for this request
KB1271769

Getting Failed to initialize plugin:Code sample error in portal-some users are getting the older version of codesample for this request


135 Views Last updated : May 11, 2023 Internal, Customer Copy Permalink
KB Summary by Now Assist

Description

Customer's Getting Failed to initialize plugin:Code sample error in portal even after re-start.
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1218126

Whenever we add tinymce in our page we request for few plugins to load, Code sample is a plugin where we are seeing the issue.

from Tokyo we request codesample from "/scripts/tinymce_default/node_modules/sn-tinymce/js/tinymce/plugins/codesample/plugin.min.js" but response for this request is different for the users who are seeing the issue,
Actually some users are getting the older version of codesample for this request
API request headers have Cache-Control: public, Server: snow_adc, next step is to check why we are getting the different version of codesample for the same request.

Steps to Reproduce

1. Load the portal in Sandiego
2. open a page with tinymce editor (tinymce v4), <instance>?id=form&t=problem
3. upgrade the instance to Tokyo
4. open a page with tinymce editor (tinymce v5)
5. plugin error (cache is loading the v4/outdated of few plugins), attach screenshot.
6. NOTE: we didn't get this error to all the users

Workaround

Clearing the browser cache should resolve the issue for the affected users.


Related Problem: PRB1642406

Potentially Seen In

There is no data to report.

Fixed In

Utah Patch 4
Vancouver

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.