"Cannot read properties of null (reading 'replace')" error on public page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2022 07:00 PM
I have a public record producer on a public portal. When I go to the portal as an authenticated user, I don't get the same error in the browser console as I do when I'm an unauthenticated user. The error reads "Cannot read properties of null (reading 'replace')". The error prevents the unauthenticated user from seeing the Address Verification window, and submitting the form. I've already looked in the client scripts and script include that is being called. The "replace" function isn't in there. There are no other client scripts so this one has to be the one causing the issue. I just don't know where.
For reference, I installed this integration pack to validate the address. If you look in the Update Set Preview, you'll see the script include and two client scripts. I cannot find where the error is coming from.
Authenticated user sees:
Unauthenticated user sees:
- Labels:
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2022 08:03 PM
Hi,
Can you please check client scripts and GlideAjax scripts. put logs to trace your script and see where it is failing. The error is for GlideAjax so check where exactly it is used.
I guess your script include is not returning expected result.
Thanks,
Anil Lande
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2022 08:33 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2022 12:10 PM
Hey,
Can you check if your page the you are rendering as pop-up, if it set as public or not in sys_public table
Aman Kumar