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: Call to a member function getCustomerName() on null #34998

Closed
4 tasks
Green2Matter opened this issue Jan 20, 2022 · 9 comments
Closed
4 tasks

Error: Call to a member function getCustomerName() on null #34998

Green2Matter opened this issue Jan 20, 2022 · 9 comments
Labels
Area: Account Component: Wishlist Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Priority: P1 Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing. Progress: done Reported on 2.4.3-p1 Indicates original Magento version for the Issue report. Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch

Comments

@Green2Matter
Copy link

Green2Matter commented Jan 20, 2022

Preconditions (*)

  1. Magento CE 2.4.3-p1
  2. Ubuntu 20.04.3, PHP7.4, Percona MySQL8.0, Varnish 6.5, Elasticsearch 7

Steps to reproduce (*)

Go to admin panel - Stores - Settings - Configuration -> Catalog -> RSS Feeds - Enable RSS Config, Wishlist -> Save Config
Clear Cache
Front-end - Login as Customer - Add Products to Wish list
My Wish list -> Share Wish List -> Enter email id , message
Select "Check here to link an RSS feed to your Wish List" Checkbox and click on Share Wish list

Expected result (*)

  1. To have a message sent as same as without RSS link

Actual result (*)

  1. [

Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • [S3 ] Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
@m2-assistant
Copy link

m2-assistant bot commented Jan 20, 2022

Hi @Green2Matter. Thank you for your report.
To speed up processing of this issue, make sure that you provided the following information:

  • Summary of the issue
  • Information on your environment
  • Steps to reproduce
  • Expected and actual results

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

For more details, review the Magento Contributor Assistant documentation.

Add a comment to assign the issue: @magento I am working on this

To learn more about issue processing workflow, refer to the Code Contributions.


⚠️ According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.

🕙 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.

🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel

✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

@makzef
Copy link

makzef commented Feb 4, 2022

@Green2Matter Hello.
I cannot reproduce issue that you describe. I tried it on magento 2.4-develop.

Steps that were made to reproduce the issue:

  1. Go to admin panel and enable rss config for wish list by this path Configuration -> Catalog -> RSS Feeds -> Wish List -> Enable RSS -> Enabled.
  2. Log in as user, add some product to user's wish list.
  3. Go to user's wish list and select Share Wish List.
  4. In the Share Wish List page form, specify necessary data and check Check here to link an RSS feed to your Wish List and submit the form.

Actual result:

Message about successful sharing - Your wish list has been shared. There was no any error.

@Green2Matter if my steps were correct, can you specify is it still an issue? If it so, please provide more details about how to reproduce this bug?

Thank you.

@engcom-November engcom-November self-assigned this Feb 22, 2022
@m2-assistant
Copy link

m2-assistant bot commented Feb 22, 2022

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: 👇

  • 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).

    DetailsIf the issue has a valid description, the label Issue: Format is valid will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid appears.

  • 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description label to the issue by yourself.

  • 3. Add Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • 4. Verify that the issue is reproducible on 2.4-develop branch

    Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

  • 5. Add label Issue: Confirmed once verification is complete.

  • 6. Make sure that automatic system confirms that report has been added to the backlog.

@engcom-November
Copy link
Contributor

@magento give me 2.4-develop instance

@magento-deployment-service
Copy link

Hi @engcom-November. Thank you for your request. I'm working on Magento instance for you.

@engcom-November
Copy link
Contributor

Verified the issue on Magento 2.4-develop branch and the issue is reproducible.
Steps performed:
Go to admin panel - Stores - Settings - Configuration -> Catalog -> RSS Feeds - Enable RSS Config, Wishlist -> Save Config
Clear Cache
Front-end - Login as Customer - Add Products to Wish list
My Wish list -> Share Wish List -> Enter email id , message
Select "Check here to link an RSS feed to your Wish List" Checkbox and click on Share Wish list
Issue:
image

Exception:
[2022-02-22T05:28:29.167811+00:00] main.CRITICAL: Error: Call to a member function getCustomerName() on null in /var/www/html/mg24/magento2/app/code/Magento/Wishlist/view/frontend/templates/rss/email.phtml:15 Stack trace: #0 /var/www/html/mg24/magento2/lib/internal/Magento/Framework/View/TemplateEngine/Php.php(71): include() #1 /var/www/html/mg24/magento2/lib/internal/Magento/Framework/View/Element/Template.php(263): Magento\Framework\View\TemplateEngine\Php->render() #2 /var/www/html/mg24/magento2/lib/internal/Magento/Framework/View/Element/Template.php(293): Magento\Framework\View\Element\Template->fetchView() #3 /var/www/html/mg24/magento2/lib/internal/Magento/Framework/View/Element/AbstractBlock.php(1095): Magento\Framework\View\Element\Template->_toHtml() #4 /var/www/html/mg24/magento2/lib/internal/Magento/Framework/View/Element/AbstractBlock.php(1099): Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}() #5 /var/www/html/mg24/magento2/lib/internal/Magento/Framework/View/Element/AbstractBlock.php(660): Magento\Framework\View\Element\AbstractBlock->_loadCache() #6 /var/www/html/mg24/magento2/app/code/Magento/Wishlist/Controller/Index/Send.php(328): Magento\Framework\View\Element\AbstractBlock->toHtml() #7 /var/www/html/mg24/magento2/app/code/Magento/Wishlist/Controller/Index/Send.php(237): Magento\Wishlist\Controller\Index\Send->getRssLink() #8 /var/www/html/mg24/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(58): Magento\Wishlist\Controller\Index\Send->execute() #9 /var/www/html/mg24/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(138): Magento\Wishlist\Controller\Index\Send\Interceptor->___callParent() #10 /var/www/html/mg24/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(153): Magento\Wishlist\Controller\Index\Send\Interceptor->Magento\Framework\Interception\{closure}() #11 /var/www/html/mg24/magento2/generated/code/Magento/Wishlist/Controller/Index/Send/Interceptor.php(23): Magento\Wishlist\Controller\Index\Send\Interceptor->___callPlugins() #12 /var/www/html/mg24/magento2/lib/internal/Magento/Framework/App/Action/Action.php(111): Magento\Wishlist\Controller\Index\Send\Interceptor->execute() #13 /var/www/html/mg24/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(58): Magento\Framework\App\Action\Action->dispatch() #14 /var/www/html/mg24/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(138): Magento\Wishlist\Controller\Index\Send\Interceptor->___callParent() #15 /var/www/html/mg24/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(153): Magento\Wishlist\Controller\Index\Send\Interceptor->Magento\Framework\Interception\{closure}() #16 /var/www/html/mg24/magento2/generated/code/Magento/Wishlist/Controller/Index/Send/Interceptor.php(32): Magento\Wishlist\Controller\Index\Send\Interceptor->___callPlugins() #17 /var/www/html/mg24/magento2/lib/internal/Magento/Framework/App/FrontController.php(245): Magento\Wishlist\Controller\Index\Send\Interceptor->dispatch() #18 /var/www/html/mg24/magento2/lib/internal/Magento/Framework/App/FrontController.php(212): Magento\Framework\App\FrontController->getActionResponse() #19 /var/www/html/mg24/magento2/lib/internal/Magento/Framework/App/FrontController.php(147): Magento\Framework\App\FrontController->processRequest() #20 /var/www/html/mg24/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch() #21 /var/www/html/mg24/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent() #22 /var/www/html/mg24/magento2/app/code/Magento/Store/App/FrontController/Plugin/RequestPreprocessor.php(99): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() #23 /var/www/html/mg24/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(135): Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch() #24 /var/www/html/mg24/magento2/app/code/Magento/PageCache/Model/App/FrontController/BuiltinPlugin.php(75): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() #25 /var/www/html/mg24/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(135): Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch() #26 /var/www/html/mg24/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() #27 /var/www/html/mg24/magento2/generated/code/Magento/Framework/App/FrontController/Interceptor.php(23): Magento\Framework\App\FrontController\Interceptor->___callPlugins() #28 /var/www/html/mg24/magento2/lib/internal/Magento/Framework/App/Http.php(116): Magento\Framework\App\FrontController\Interceptor->dispatch() #29 /var/www/html/mg24/magento2/lib/internal/Magento/Framework/App/Bootstrap.php(264): Magento\Framework\App\Http->launch() #30 /var/www/html/mg24/magento2/pub/index.php(30): Magento\Framework\App\Bootstrap->run() #31 {main} [] []

@engcom-November engcom-November added Reported on 2.4.3-p1 Indicates original Magento version for the Issue report. Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch Area: Account Component: Wishlist Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed labels Feb 22, 2022
@github-jira-sync-bot
Copy link

✅ Jira issue https://jira.corp.magento.com/browse/AC-2445 is successfully created for this GitHub issue.

@m2-assistant
Copy link

m2-assistant bot commented Feb 22, 2022

✅ 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.

@engcom-Hotel engcom-Hotel added the Priority: P1 Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing. label Feb 22, 2022
@engcom-Alfa
Copy link
Contributor

Hi @Green2Matter,
Thanks for your reported bug, the internal team has fixed and delivered this issue successfully.
Please find related commits HERE.

Kindly upgrade to the latest Magento version 2.4-develop to retest the case.

In case of any Magento related issues found in 2.4-develop, you may report a new bug with all the information like Preconditions, detailed steps to reproduce, expected and actual Results along with screenshots/ screen recordings.

For any Magento related references, you may refer to the Magento user guide.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Account Component: Wishlist Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Priority: P1 Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing. Progress: done Reported on 2.4.3-p1 Indicates original Magento version for the Issue report. Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch
Projects
Archived in project
Development

No branches or pull requests

6 participants