0

Running a multi website and multi store site.

One of the websites has it's locale options > Locale set to Chinese (Taiwan)

This causes only the product pages to load blank.

The error_log shows the following.

PHP Fatal error:  Uncaught TypeError: Argument 1 passed to iterator_to_array() must implement interface Traversable, null given in /home/xyz/m232.xyz.com/vendor/magento/framework/View/Element/Html/Calendar.php:75
Stack trace:
#0 /home/xyz/m232.xyz.com/vendor/magento/framework/View/Element/Html/Calendar.php(75): iterator_to_array(NULL)
#1 /home/xyz/m232.xyz.com/vendor/magento/framework/View/Element/AbstractBlock.php(1094): Magento\Framework\View\Element\Html\Calendar->_toHtml()
#2 /home/xyz/m232.xyz.com/vendor/magento/framework/View/Element/AbstractBlock.php(1098): Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}()
#3 /home/xyz/m232.xyz.com/vendor/magento/framework/View/Element/AbstractBlock.php(671): Magento\Framework\View\Element\AbstractBlock->_loadCache()
#4 /home/xyz/m232.xyz.com/vendor/magento/framework/View/Layout.php(557): Magento\Framework\View\Element\AbstractBlock->toHtml()
#5 /home/xyz/m232.xyz.com/vendor/mage in /home/xyz/m232.xyz.com/vendor/magento/framework/View/Element/Html/Calendar.php on line 75

If the locale is changed to something else, for example English (United Kingdom) then the product page loads.

What could be causing this and how can it be fixed?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.