My Oracle Support Banner

JS Error Intermittently Appears On the Product Details Page - "Cannot read property 'altText' of undefined" (Doc ID 2230294.1)

Last updated on APRIL 03, 2019

Applies to:

Oracle Commerce Cloud Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

When viewing a storefront product-details page, an error similar to the following intermittently appears in the browser console:

Uncaught TypeError: Unable to process binding "if: function(){return product }"
Message: Unable to process binding "ifnot: function(){return isMobile() }"
Message: Unable to process binding "foreach: function(){return imgGroups }"
Message: Unable to process binding "foreach: function(){return $data }"
Message: Unable to process binding "if: function(){return $parents[1].imgMetadata &&($parents[1].imgMetadata.length>0) }"
Message: Unable to process binding "attr: function(){return {src:$data,id:'carouselImg'+(($parentContext.$index() * 4) + $index()),alt:$parents[1].imgMetadata[(($parentContext.$index() * 4) + $index())].altText ? $parents[1].imgMetadata[(($parentContext.$index() * 4) + $index())].altText:$parents[1].product().displayName(),title:$parents[1].imgMetadata[(($parentContext.$index() * 4) + $index())].titleText ? $parents[1].imgMetadata[(($parentContext.$index() * 4) + $index())].titleText:$parents[1].product().displayName()} }"
Message: Cannot read property 'altText' of undefined

In addition, the page may look misaligned and/or may be missing objects. 

Changes

None

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.