Skip to content
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

Error spams logs #151

Closed
vshatylo opened this issue Feb 10, 2024 · 0 comments · Fixed by #157
Closed

Error spams logs #151

vshatylo opened this issue Feb 10, 2024 · 0 comments · Fixed by #157

Comments

@vshatylo
Copy link

Issue Brief

Error spams logs when visiting empty cart page

Exception: Warning: Undefined variable $products in vendor/tweakwise/magento2-tweakwise/Block/Checkout/Cart/Crosssell/Plugin.php on line 253

Environment

  • PHP Version: 8.1
  • Magento Version: 2.4.6
  • Tweakwise Version: 5.7.3
  • Tweakwise Export Version: 5.4.0
  • Magento Deploy Mode: production

Steps to reproduce

  1. enable cross-sell products on a cart page
  2. visit cart page. there should not be any product in a basket

Actual result

  1. error is written in the log file var/log/system.log
  2. in developer mode it shows 500 page

Expected result

  • no any errors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant