# I cannot view Certificate

**URL:** <https://discuss.openedx.org/t/i-cannot-view-certificate/14173>\
**Category:** Tutor Help\
**Tags:** how-to, nutmeg, olive\
**Created:** [October 17, 2024, 7:09am UTC](https://discuss.openedx.org/t/i-cannot-view-certificate/14173 "2024-10-17T07:09:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![choltha](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/choltha/32/7661_2.png) [@choltha](https://discuss.openedx.org/u/choltha)\
**Post date:** [October 17, 2024, 7:09am UTC](https://discuss.openedx.org/t/i-cannot-view-certificate/14173/1 "2024-10-17T07:09:57Z")

</div>

I recently upgraded from Tutor 14 to 15  
and applied a custom theme. While the theme works, the certificates page fails to load, displaying a “500 error” with the message:

“[https://domain/certificates/61ba2a11bf38413e858b640e32c57220](https://domain/certificates/61ba2a11bf38413e858b640e32c57220)”

“There has been a 500 error on the _web name_ servers. Please wait a few seconds and reload the page.”

and preview certificate with the message:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/openedx/original/2X/6/6f4588ec74369174ad33623805c382dab28c7e09.png)

The log shows an error related to certificates not rendering correctly.

```auto
Internal Server Error: /certificates/61ba2a11bf38413e858b640e32c57220

```

 ![image](https://us1.discourse-cdn.com/flex020/uploads/openedx/original/2X/7/7b8c0558f8b5f5c188b40b58857c5afea36da674.png)

---

<div class="post-metadata">

**Author:** ![Felipe](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/felipe/32/60_2.png) [@Felipe](https://discuss.openedx.org/u/Felipe)\
**Post date:** [October 17, 2024, 1:38pm UTC](https://discuss.openedx.org/t/i-cannot-view-certificate/14173/2 "2024-10-17T13:38:04Z")

</div>

I’ve seen this kind of error when upgrading the templates. The mako errors are a bit harder to figure out in the stack trace but what that message is:

In your theme, either you included `acomplisment-base.html` or a file that is importing it when you wrote the theme.  
The error is saying that it does not find the “[js\_escaped\_string](https://github.com/openedx/edx-platform/blob/open-release/olive.master/lms/templates/certificates/accomplishment-base.html#L31)” function. It is trying to call a variable that is not defined.

You need to upgrade your templates to properly import the function.

`from openedx.core.djangolib.js_utils import js_escaped_string`

---

<div class="post-metadata">

**Author:** ![choltha](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/choltha/32/7661_2.png) [@choltha](https://discuss.openedx.org/u/choltha)\
**Post date:** [November 8, 2024, 2:01am UTC](https://discuss.openedx.org/t/i-cannot-view-certificate/14173/3 "2024-11-08T02:01:01Z")

</div>

Thank you @Felipe It works.
