Bug Report: Critical Arithmetic Error in "Mastering Storefronts" Learning Path

I am reporting a technical bug in the sample data for the “Mastering Storefronts with Liferay” course.

Problem: After running blade server init, Product Display Pages (PDP) return a blank screen and a console error: java.lang.ArithmeticException: BigInteger divide by zero at com.liferay.commerce.internal.price.CommerceProductPriceCalculationV2Impl.

Root Cause: The Price List Entries imported for the Clarity site have a value of 0 in the Quantity field. This causes the pricing engine to fail when calculating unit prices for the Display Page Templates.

Steps to Reproduce:

  1. Initialize the project with blade server init.

  2. Set “Product Details” as the default Display Page Template.

  3. Visit a product like “Round Metal Sunglasses”.

Requested Fix: Please update the course’s sample data to ensure all Price List Entries have a minimum Quantity of 1 instead of 0. This will prevent the division-by-zero exception and allow students to complete the Storefront exercises without manual database/UI fixes.

Thank you for maintaining this material!

Thanks for the report! This was introduced after an unintentional version bump in the gradle.properties, which was reverted late last week. Can you run these commands to try re-syncing the repo, before running the blade server init command and proceeding with the exercises?

git fetch origin
git reset --hard origin/main

As additional context: this appears to be fixed when the course database is upgraded to a newer patch release (2026.q1.1) instead of the initial 2026.q1.0 bundle. As such, this course will have its Liferay version updated to a 2026.q1 patch release within the next few weeks (alongside other updates relating to recently released features).