You have this? It looks like you have no resource model.
<models>
<awesome>
<class>Super_Awesome_Model</class>
<resourceModel>awesome_mysql4</resourceModel>
</awesome>
<awesome_mysql4>
<class>Super_Awesome_Model_Mysql4</class>
</models>
You have to define the class and the resource model.
class Super_Awesome_Model_Simple extends Mage_Core_Model_Abstract
{
protected function _construct()
{
parent::_construct();
$this->_init('awesome/simple');
}
}
and the resource model:
class Super_Awesome_Model_Mysql4_Simple extends Mage_Core_Model_Resource_Db_Abstract
{
protected function _construct()
{
$mainTable = 'simple'; // check the node in the config.xml
$idFieldName = 'simple_id'; // whatever the column is named.
$this->_init($mainTable, $idFieldName)
}
}
And to be up to date change now every Mysql4 to Resource. Mysql4 is outdated. Today the resource models are named Namespace_Module_Model_Resource_MyModel
You probably just disabled the module via command line.
Try this:
php bin/magento module:enable Magento_Analytics
and then run
php bin/magento setup:di:compile
php bin/magento setup:upgrade
And make sure that you have enabled Advanced Reporting in:
Admin -> Stores -> Configuration -> General -> Advanced Reporting
Best Answer
A little late to the party but I was trying for over 2 months to make Advanced Reporting work even though I had followed every step of the official guide and also couldn't find a proper search result for my problem. My issue was that in my server's file system under the following path tmp/analytics/ huge tar files were being created every time Magento 2 was collecting data for Advanced Reporting (It is the "Time of day to send data" field in its configuration page).
This issue was solved by applying the following patch https://github.com/magento/magento2/issues/21452#issuecomment-467799311
If this is your problem too, you can check this question and answer for more info https://magento.stackexchange.com/a/245239/66247
(for the record I am using Magento v2.2.7)