Skip to content

Warning: Object of class MagentoFrameworkPhrase could not be converted to int product/list/toolbar/limiter.phtml on line 26

Can anyone have faced the below error while opening the product listing page at the storefront?

Running instance on the Magento version 2.4 vanilla. No third-party modules/themes were installed.

A stack trace is as follows:

report.CRITICAL: Exception: Warning: Object of class MagentoFrameworkPhrase could not be converted to int in /var/www/html/mage/vendor/magento/module-catalog/view/frontend/templates/product/list/toolbar/limiter.phtml on line 26 in /var/www/html/mage/vendor/magento/framework/App/ErrorHandler.php:62
-Stack trace:
-#0 /var/www/html/mage/vendor/magento/module-catalog/view/frontend/templates/product/list/toolbar/limiter.phtml(26): MagentoFrameworkAppErrorHandler->handler()
-#1 /var/www/html/mage/vendor/magento/framework/View/TemplateEngine/Php.php(71): include('...')
-#2 /var/www/html/mage/vendor/magento/framework/View/Element/Template.php(263): MagentoFrameworkViewTemplateEnginePhp->render()
-#3 /var/www/html/mage/generated/code/Magento/Catalog/Block/Product/ProductList/Toolbar/Interceptor.php(401): MagentoFrameworkViewElementTemplate->fetchView()
-#4 /var/www/html/mage/vendor/magento/module-catalog/view/frontend/templates/product/list/toolbar.phtml(21): MagentoCatalogBlockProductProductListToolbarInterceptor->fetchView()
-#5 /var/www/html/mage/vendor/magento/framework/View/TemplateEngine/Php.php(71): include('...')
-#6 /var/www/html/mage/vendor/magento/framework/View/Element/Template.php(263): MagentoFrameworkViewTemplateEnginePhp->render()
-#7 /var/www/html/mage/generated/code/Magento/Catalog/Block/Product/ProductList/Toolbar/Interceptor.php(401): MagentoFrameworkViewElementTemplate->fetchView()