Open adamlavery opened 3 weeks ago
Hi @adamlavery. Thank you for your report. To speed up processing of this issue, 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:
@magento give me 2.4-develop instance
- upcoming 2.4.x release@magento I am working on this
Join Magento Community Engineering Slack and ask your questions in #github channel. :warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting. :clock10: You can find the schedule on the Magento Community Calendar page. :telephone_receiver: 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.
It would help if you could specify the error message you're seeing? But I guess it happens when $block->getPageHeading()
returns null
and not a string?
@hostep sorry, didn't think a log of this error was necessary. Yes, as of PHP 8.? you can no longer pass null to most/all PHP string functions. I'm sure there must be a valid reason for this change which breaks code all over the place, although I can't see it!!
Hi @engcom-November. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
Area: XXXXX
label to the ticket, indicating the functional areas it may be related to.2.4-develop
branch@magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure. 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.Issue: Confirmed
once verification is complete. Hello @adamlavery,
Thank you for the report and collaboration!
If the function $block->getPageHeading()
returns null by any case which it should not, will cause the error as php string functions won't accept null as parameter.
Hence confirming this.
:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-12856 is successfully created for this GitHub issue.
:white_check_mark: Confirmed by @engcom-November. Thank you for verifying the issue.
Issue Available: @engcom-November, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.
Preconditions and environment
OS 2.4.7
Steps to reproduce
There's a code error in vendor\magento\module-theme\view\frontend\templates\html\title.phtml
Expected result
Should be written for PHP 8.2 but is not.
Actual result
Template crashes if there's no page title.
Additional information
This code:
Needs correcting to:
Release note
Fix code that fails with PHP 8.2
Triage and priority