ERROR: Carbon\Exceptions\OutOfRangeException: day must be between 0 and 99, -1
Symptom
After updating to WHMCS 8.12.1, admins may encounter an Oops! error when placing an order for a product with the Prorata Billing feature enabled and a Prorata Date setting of 0
:
ERROR: Carbon\Exceptions\OutOfRangeException: day must be between 0 and 99, -1
Workaround
To work around this issue:
- Go to Configuration > System Settings > Products/Services.
- Click Edit for the desired product.
- Select the Pricing tab.
- Uncheck Prorata Billing.
- Click Save Changes.
A product with a Prorata Date setting of 0
will work in the same way as an anniversary-billed (non-prorata) product. Because of this, disabling Prorata Billing will not change how WHMCS handles the product.