-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Fixed critical error 'Undefined constant formName' #24086
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
Fixed critical error 'Undefined constant formName' #24086
Conversation
Hi @cpini. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
Hi @VladimirZaets, thank you for the review.
|
✔️ QA Passed |
Hi @cpini, thank you for your contribution! |
Is there a work-around for this error? Or do i have to wait for the 2.3.4 release? |
@Jilco add missing $ in "escapeHtmlAttr($formName)" |
Yes, did it and thats it. Thanks |
Description (*)
Getting an 'undefined constant formName' error in the Admin panel when trying to edit products so just fixed the place in the template where this was happening - simple fix.
Stack: Alpine/Apache 2.4/PHP7.2.1 (+FPM)
Single file change: app/code/Magento/Catalog/view/adminhtml/templates/catalog/product/helper/gallery.phtml
Manual testing scenarios (*)
Contribution checklist (*)
./vendor/bin/phpunit -d memory_limit=1200M -c dev/tests/unit/phpunit.xml.dist app/code/Magento/Catalog/Test
PHPUnit 6.5.14 by Sebastian Bergmann and contributors.
Time: 41.95 seconds, Memory: 170.25MB
OK, but incomplete, skipped, or risky tests!
Tests: 1573, Assertions: 4884, Skipped: 26, Incomplete: 2.