magento2: Can't Disable Advanced Reporting
Preconditions
- Magento 2.2.2
Steps to reproduce
- After a fresh install of version 2.2.2, a system message was received that Synchronization Failed with Magento Business Intelligence (I don’t remember the exact message).
- To prevent further synchronization error messages, go to
Stores > Configuration > General > Advanced Reportingand change Advanced Reporting Service to Disable - Press Save Config
Expected result
- The advanced reporting capabilities should be disabled.
Actual result
- The following weird error message is received:
Please select a vertical. - The advanced reporting capabilities revert back to being enabled.
Reason and Proposed Solutions
The error is thrown from Magento\Analytics\Model\Config\Backend\Vertical::beforeSave() method because I did not select an Industry under Industry Data. That defaults to --Please Select-- and is an empty value, so beforeSave() behaves as it should.
Since the Advanced Reporting needs an external account and service, it should default to Disable on new installs. However, if it was Magento’s intention to have it enabled for all new installs, then 1) the logic should be changed so an empty value for the Industry can be provided when Advanced Reporting Service is set to Disable and Save Config is pressed or 2) a more detailed error message should be displayed so merchants understand that an Industry must be provided, even to Disable the Advanced Reporting Service.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 5
- Comments: 18 (4 by maintainers)
And even when you disable it the message shows in the dashboard, this is in really bad taste Magento, promoting 3rd party services on the homepage of the admin interface without being able to disable it!
All you need to do is add
ifconfig="analytics/general/enabled"tovendor/magento/module-analytics/view/adminhtml/layout/adminhtml_dashboard_index.xmlI think there should be option to totally disable such external services, dotMailer is the other one
Is this module taking data from stores regardless if you have a paid BI account at all ?
jzahedieh
edit: vendor/magento/module-analytics/view/adminhtml/layout/adminhtml_dashboard_index.xml
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceContainer name="content"> <block ifconfig="analytics/general/enabled" template="Magento_Analytics::dashboard/section.phtml" class="Magento\Backend\Block\Template" name="analytics_service_external_link" before="-"/> </referenceContainer> </body> </page>Any solution for this issue? I had just disable the Magento_Analytics by the below command,
php bin/magento module:disable Magento_Analytics
and php bin/magento setup:di:compile
now no more error notifications from Business Intelligence.