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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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

1 participant