magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.47k stars 9.28k forks source link

Updated magento with latest version 2.4.7-p1 or 2.4.7-p2 getting issue #39077

Closed hemendrametawolf closed 3 days ago

hemendrametawolf commented 3 weeks ago

Preconditions and environment

Steps to reproduce

update magento with 2.4.7-p1 or 2.4.7-p2 run upgrade and compile command

Expected result

frontend website should work without any error.

Actual result

frontend showing error as image image

Additional information

No response

Release note

No response

Triage and priority

m2-assistant[bot] commented 3 weeks ago

Hi @hemendrametawolf. 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:

snigam123 commented 3 weeks ago

Hi @hemendrametawolf. It appears to be a bug in magento. In particular, \Magento\Customer\ViewModel\Customer\Auth class is missing from a block parameter declaration in default.xml in your theme. However, the error is thrown due to the classname being called instead of FQN in vendor/magento/module-customer/view/frontend/templates/js/customer-data.phtml on line 14

$auth = $block->getAuth() ?? ObjectManager::getInstance()->get(Auth::class); The solution is to add the missing parameter to the block with name "customer.customer.data" making it as following:

`<block name="customer.customer.data" class="Magento\Customer\Block\CustomerData" template="Magento_Customer::js/customer-data.phtml">

Magento\Customer\ViewModel\Customer\Auth Magento\Customer\ViewModel\Customer\JsonSerializer Magento\Customer\ViewModel\CookieSettings
    </block>`
m2-assistant[bot] commented 3 weeks ago

Hi @engcom-Delta. 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:

engcom-Delta commented 2 weeks ago

Hi @hemendrametawolf,

Thanks for your reporting and collaboration. We have verified the issue in 2.4.7 to 2.4.7-p2 version, but we are unable to reproduce the issue. Kindly refer the screenshots.

Steps to reproduce

  1. Install 2.4.7 version
  2. Upgrade to 2.4.7-p2 version
  3. Run upgrade and compile command image image
  4. Access Frontend and Admin image image Please let us know if any other steps are needed to be performed.

Thanks.

engcom-Delta commented 3 days ago

Hi @hemendrametawolf ,

We have noticed that this issue has not been updated since long time. Hence we assume that this issue is fixed now, so we are closing it. Please feel to raise a fresh ticket or reopen this ticket if you need more assistance on this.

Thanks.