Skip to content

v.1.1.5.1

Choose a tag to compare

@Amadeco Amadeco released this 21 Jul 06:27
· 8 commits to main since this release
3e775db

fix(plugin): prevent undefined method error in MetaRobotsPlugin by adding instance check

Description:

  • Added a check in hasAppliedFilters() to ensure $resultPage is an instance of Magento\Framework\View\Result\Page before accessing layout methods. This resolves the critical error where getLayout() was called on incompatible result types like Forward.
  • Updated PHPDoc comments and code structure for better clarity and maintainability.
  • Ensured compatibility with Magento 2.4.8 and PHP 8.3 standards.

Release Notes:

  • Fixed bug causing fatal error on custom entity pages when controller result is a forward action (e.g., invalid routes or redirects).
  • Improved plugin reliability without impacting performance.