INTRODUCTION
One day the disk space on my client’s Production SharePoint SQL Server is running out. This caused couple of the custom lists in their Intranet site showing the following error on the list view page:
Error: TypeError: Unable to get property ‘replace’ of undefined or null reference
Even if I tried to create a new view, the error persists.
Originally I thought that this was caused by the disk space. After we rectified the disk space issue, the list view issue remains!
The Intranet was built upon SharePoint 2013 SP1 with April 2014 Cumulative Update.
RESOLUTION
After some investigation, I stumbled upon this blog by Stefan that explains what may have been the root cause of the issue:
My resolution however was to install the June 2016 Cumulative Update. I can also confirm that you don’t need any prior CUs to be installed. You can just install the SP Server June 2016 CU on top of the April 2014 and it worked seamlessly.
The list view is now working as expected.
Hope this helps,
Tommy