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

Empty block name error with module-price-permissions #36202

Closed nataliefox-288 closed 1 year ago

nataliefox-288 commented 1 year ago

Preconditions and environment

Magento version: 2.4.5 There appears to be a bug in the enterprise module module-price-permissions when a block with no name is used (on an admin screen). A message is seen: Deprecated Functionality: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /app/vendor/magento/module-price-permissions/Observer/AdminhtmlBlockHtmlBeforeObserver.php on line 125

Steps to reproduce

Using the Advanced Feeds module. Navigate to Catalog > Feeds

Expected result

Should be able to see list of feeds that have been set up.

Actual result

The error message is seen.

Additional information

No response

Release note

No response

Triage and priority

m2-assistant[bot] commented 1 year ago

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

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.


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

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

m2-assistant[bot] commented 1 year ago

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:

engcom-November commented 1 year ago

Hi @nataliefox-288 , Thank you for reporting and collaboration. However, Advanced Feeds module is a 3rd party extension and code of this extension is not part of https://github.com/magento/magento2 git repository. We are closing this issue as community is not able to provide fix for it in this repository. All questions, issue reports and fix for them should be addressed to the corresponding extension owners(support) on the Magento Market place page Thank you.

maxlussier commented 1 year ago

For those interested I have contacted Mirasvit Dev Team to inform them of the situation. They informed me that they will include the fix in their next release (1.2.9). In the meantime, here's the patch:

diff --git a/vendor/mirasvit/module-feed/src/Feed/Ui/Feed/Listing/DataProvider.php b/vendor/mirasvit/module-feed/src/Feed/Ui/Feed/Listing/DataProvider.php
--- a/vendor/mirasvit/module-feed/src/Feed/Ui/Feed/Listing/DataProvider.php
+++ b/vendor/mirasvit/module-feed/src/Feed/Ui/Feed/Listing/DataProvider.php
@@ -130,6 +130,7 @@
     {
         $statisticksBlock = $this->statisticksBlockFactory->create();
         $statisticksBlock->setData('feed', $item)
+            ->setNameInLayout('mst_feed_feed_statistics')
             ->setData('interval', $days);

         return $statisticksBlock->toHtml();