-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Object of class Magento\Framework\Phrase could not be converted to int on loading catalog product view page #35909
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @ivanko-dev. Thank you for your report.
Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
For more details, review the Magento Contributor Assistant documentation. Add a comment to assign the issue: To learn more about issue processing workflow, refer to the Code Contributions.
🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket. ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
+1 |
+1 |
1 similar comment
+1 |
I'm having this same issue on Magento Community Edition as well |
1 similar comment
I'm having this same issue on Magento Community Edition as well |
Duplicate of #35900 |
Hi @engcom-Echo. Thank you for working on this issue.
|
Hello @ivanko-dev, Thanks for contribution and collaboration. Thanks |
Hello @ivanko-dev, Thanks for contribution and collaboration. Thanks |
+1 |
[2022-08-30T05:45:59.812731+00:00] main.CRITICAL: Exception: Warning: Object of class Magento\Framework\Phrase could not be converted to int in /website/tt/var/view_preprocessed/pub/static/vendor/magento/module-catalog/view/frontend/templates/product/list/toolbar/limiter.phtml on line 1 in /website/tt/vendor/magento/framework/App/ErrorHandler.php:62 |
1 exception(s): Exception #0 (Exception): Warning: Object of class Magento\Framework\Phrase could not be converted to int in /var/www/html/m245/vendor/magento/module-catalog/view/frontend/templates/product/list/toolbar/limiter.phtml on line 26 #1 include() called at [vendor/magento/framework/View/TemplateEngine/Php.php:71] #2 Magento\Framework\View\TemplateEngine\Php->render() called at [vendor/magento/framework/View/Element/Template.php:263] #3 Magento\Framework\View\Element\Template->fetchView() called at [generated/code/Magento/Catalog/Block/Product/ProductList/Toolbar/Interceptor.php:401] #4 Magento\Catalog\Block\Product\ProductList\Toolbar\Interceptor->fetchView() called at [vendor/magento/module-catalog/view/frontend/templates/product/list/toolbar.phtml:21] |
Looks like this has been fixed in bb55549
|
Patch for 2.4.5-p1:
|
Having set this: |
Preconditions and environment
Steps to reproduce
Expected result
Page loaded with no errors
Actual result
Error on loading appears:
Exception #0 (Exception): Warning: Object of class Magento\Framework\Phrase could not be converted to int in /path_to_project/vendor/magento/module-catalog/view/frontend/templates/product/list/toolbar/limiter.phtml on line 26
Additional information
Magento 2.4.5 content of vendor/magento/module-catalog/view/frontend/templates/product/list/toolbar/limiter.phtml Lines 21-28:
Previous verisons:
Same time in vendor/magento/module-catalog/Helper/Product/ProductList.php Lines 134-138:
As result code in template https://github.com/magento/magento2/blob/2.4-develop/app/code/Magento/Catalog/view/frontend/templates/product/list/toolbar/limiter.phtml#L26 not designed to accept value, which assigned in https://github.com/magento/magento2/blob/2.4-develop/app/code/Magento/Catalog/Helper/Product/ProductList.php#L135 if catalog/frontend/list_allow_all enabled
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: