Error linking CMS date-time field to page text element

Linking date-time fields in a dataset to page text elements is (I believe) standard practice (Wix Editor) for displaying and formatting the date in a dynamic page item. But it is generating this error (in Developer console):

reporters.js:5 
 Wix code SDK error: The text parameter that is passed to the text method cannot be set to the value Tue Apr 11 2024 15:51:00 GMT-0600 (Mountain Daylight Time). It must be of type string,null.

What should I make of this error? The date is displaying correctly (so I’ve not contacted tech support). But is this impairing the loading performance of the page? If this is a “non-error,” is there a list of other such errors that are just ignored?
Thanks.

Hello, @dsac

If you’re having trouble linking a CMS date-time field to a page text element, follow these steps to troubleshoot and fix the issue:

Check Field Type:

Ensure that the field in your CMS is set as a date-time type and not as a text or other type.

Format Date Correctly:

Make sure the date format in your CMS matches the format expected by your page text element.

Verify Data Binding:

Double-check that the date-time field is correctly bound to the text element on the page. Ensure you are referencing the right field.

Inspect for Errors:

Look for any error messages or warnings that might indicate where the problem is occurring.

Update CMS Data:

Ensure that the CMS data is up-to-date and properly published. Sometimes changes might not reflect immediately if not published correctly.

Refresh and Clear Cache:

Refresh the page and clear any caches to ensure you’re seeing the most current data.
Consult Documentation:

Refer to your CMS documentation for specific instructions on linking date-time fields to text elements.

Test with a Simple Example:

Try linking a simple date-time field to a text element on a test page to see if the issue is with the specific field or a broader problem.
By following these steps, you should be able to identify and fix the issue with linking the CMS date-time field to the page text element.

I hope this will be helpful for you
Regards
Mikestamp

Thanks. This is a great checklist for others who actually may be having problems with getting dates from CMS to display on a page.

However, as I noted in my post, the error I showed does not reflect any visible problem with date displays on the page. The link between CMS and page is displaying the dates just fine. That was my question–why is this error message being thrown? Is this an issue between Wix and the browser Developer tools, since I’m following standard Wix methods for connecting CMS date-time fields to page text display elements. Are others also seeing this error in their browser Developer tools console? What are the consequences of this “error,” if any, such as slowing page load or causing a reduction in the page SEO quality rating by search engines like Google, that may result from this “error.”

Thanks.

Hey @dsac!

I doubt this will be causing significant, if any performance issues on the site.

It does seem a little strange that the error is being thrown, despite everything appearing to be working correctly.

Have you got a link to the page it’s happening on you might be able to share?

Are you using a dataset to make the connection to the CMS collection, or Velo?

Thanks for the follow-up, Noah. The connection is from a dataset. The site is a premium plan but is not public yet so I’m not sharing a link. Is this something tech support would be willing to look at in depth if I submitted it (since there is no apparent functional problem)?