I am on EE 2.5.3.
Not sure if I am doing something wrong. I installed it and then de-installed it and started getting an error:
Table 'db_removed.exp_referrers' doesn't exist
SELECT COUNT(*) AS count
FROM exp_referrers
WHERE site_id = '1'
AND (ref_from = 'url_removed' OR ref_ip = 'ip_removed')
AND ref_date > '1349299057'
Filename: libraries/Referrer.php
Line Number: 71Line 71 is just the above query being run. It’s in the log_referrer method of the EE_Referrer class. Looking for instances of log_referrer returns upd.referrer.php (amongst others)
the following is in the install method:
// turn on referrer tracking
if ($this->EE->config->item('site_id') === FALSE)
{
// site_id will not be defined in the application installation wizard
$this->EE->config->update_site_prefs(array('log_referrers' => 'y'), 1);
}
else
{
$this->EE->config->update_site_prefs(array('log_referrers' => 'y'));
}but no such thing is found in the uninstall method.
so i just tried copy/pasting the above, changing y to n and putting it in the uninstall method:
// turn off referrer tracking
if ($this->EE->config->item('site_id') === FALSE)
{
// site_id will not be defined in the application installation wizard
$this->EE->config->update_site_prefs(array('log_referrers' => 'n'), 1);
}
else
{
$this->EE->config->update_site_prefs(array('log_referrers' => 'n'));
}now installing/uninstalling no longer returns the DB error.
Was there something I was missing or…?