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.48k stars 9.29k forks source link

Venia Sample Data error with php 8.2 #37740

Open ximenez opened 1 year ago

ximenez commented 1 year ago

Preconditions and environment

Steps to reproduce

  1. Adobe Commerce 2.4.6-p1 with PHP 8.2
  2. Install Venia Sample Data "composer require magento/venia-sample-data:*"
  3. Deployment error in cloud: Deprecated Functionality: Creation of dynamic property Magento\CmsSampleDataVenia\Model\Block\Converter::$eavConfig is deprecated in /app/vendor/magento/module-cms-sample-data-venia/Model/Block/Converter.php on line 66

Expected result

Venia Sample DAta works with PHP 8.2.

Actual result

Error: Deprecated Functionality: Creation of dynamic property Magento\CmsSampleDataVenia\Model\Block\Converter::$eavConfig is deprecated in /app/vendor/magento/module-cms-sample-data-venia/Model/Block/Converter.php on line 66

Additional information

Fis should add $eavConfig property to block

/**
 * @var \Magento\Eav\Model\Config
 */
protected $eavConfig;

Release note

No response

Triage and priority

m2-assistant[bot] commented 1 year ago

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

m2-assistant[bot] commented 1 year ago

Hi @engcom-Dash. 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-Dash commented 1 year ago

Hi @ximenez ,

Verified the issue in 2.4-develop instance and the issue is not reproducible. Steps to reproduce: 1.Install magento instance 2.Deploy sample data for composer instllation as per DevDocs 3.Run setup upgrade command Kindly refer the below screenshots:

Screenshot 2023-07-11 at 11 20 51 AM Screenshot 2023-07-11 at 11 21 05 AM Screenshot 2023-07-11 at 11 23 04 AM Screenshot 2023-07-11 at 11 28 14 AM

Sample data installed successfully

Thanks

ximenez commented 1 year ago

@engcom-Dash Issue is with "Venia Sample Data", not with Standard Sample Data.

engcom-Dash commented 1 year ago

Hi @ximenez ,

Verified the issue in 2.4.6-p1 adobe commerce and the issue is reproducible,Hence we are confirming the issue. Kindly refer the below screenshot:

Screenshot 2023-07-19 at 7 24 46 PM

Thanks.

github-jira-sync-bot commented 1 year ago

:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-9163 is successfully created for this GitHub issue.

m2-assistant[bot] commented 1 year ago

:white_check_mark: Confirmed by @engcom-Dash. Thank you for verifying the issue.
Issue Available: @engcom-Dash, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

hostep commented 1 year ago

Is possibly already fixed by https://github.com/PMET-public/module-venia-cms-sample-data/commit/471542cf359a01a5c34db1e04e646ce2be10ed65, but no idea if that is the official module on github, or just some clone, also no idea if a new version was created containing this fix (the commit mentions version 0.0.4, but no idea if it's published yet on repo.magento.com)

Just FYI...