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

Bugfix: Mage_Adminhtml_Helper_Dashboard_Data::countStores() on null #4370

Conversation

sreichel
Copy link
Contributor

Part of #4340.

Fatal error:  Uncaught Error: Call to a member function getItems() on null in /var/www/html/app/code/core/Mage/Adminhtml/Helper/Dashboard/Data.php:50
Stack trace:
#0 /var/www/html/test.php(68): Mage_Adminhtml_Helper_Dashboard_Data->countStores()
#1 /var/www/html/test.php(79): test4340()

Steps to reproduce (*)

$test = Mage::helper('adminhtml/dashboard_data');
var_dump($test->countStores());

@github-actions github-actions bot added the Component: Adminhtml Relates to Mage_Adminhtml label Nov 18, 2024
@sreichel sreichel changed the title Bugfix: Mage_Adminhtml_Helper_Dashboard_Data->countStores() Bugfix: Mage_Adminhtml_Helper_Dashboard_Data->countStores() on null Nov 18, 2024
@sreichel sreichel requested review from kiatng and addison74 November 22, 2024 19:44
@kiatng kiatng merged commit 7e75322 into OpenMage:main Nov 24, 2024
19 checks passed
@sreichel sreichel changed the title Bugfix: Mage_Adminhtml_Helper_Dashboard_Data->countStores() on null Bugfix: Mage_Adminhtml_Helper_Dashboard_Data::countStores() on null Nov 24, 2024
@sreichel sreichel deleted the fix-Mage_Adminhtml_Helper_Dashboard_Data->countStores() branch November 24, 2024 03:38
fballiano added a commit to MahoCommerce/maho that referenced this pull request Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Adminhtml Relates to Mage_Adminhtml
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants