ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Bug with the Referrer Module?

October 03, 2012 5:25pm

Subscribe [2]
  • #1 / Oct 03, 2012 5:25pm

    notacouch

    92 posts

    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: 71

    Line 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…?

  • #2 / Oct 05, 2012 12:29pm

    Shane Eckert

    7174 posts

    Hello notacouch,

    I am sorry to hear you are running into this problem.

    I am not able to reproduce this. Was this an upgrade to 2.5.3 or a clean install?

    Where do you the error? During the uninstall?

    Can you tell me a bit about what Add-Ons you have installed? Are they all up to date?

    Please let me know and we can go from there. This is really odd ....

    Cheers,

  • #3 / Oct 05, 2012 5:02pm

    notacouch

    92 posts

    Sorry I had went ahead and put it in the bug tracker.

    Here’s some info:

    Upgraded from 2.5.2 (2.5.2 was a clean install)

    I get the error on any page (template, not the cp iirc) on the site after de-installing the module (have debugging on).

    I just started using EE 2.x recently so any Add-on I use is probably going to be its most recent version.

    Core Modules:
    -Channel
    -Comment
    -Email
    -Emoticon
    -jQuery
    -Member
    -Rich Text Editor
    -RSS
    -Safecracker
    -Search
    -Statistics

    3rd party Modules:
    -Custom one in development
    -Member Categories 1.0.3
    -OmniLog 1.5.0
    -Social Sign On 2.2
    -Stash 2.1.0

    Core Accessories:
    -ExpressionEngine info

    3rd Party Accessories:
    -OmniLog 1.5.0

    Core Extensions:
    -Rich Text Editor 1.0
    -SafeCracker 2.1

    3rd Party Extensions:
    -2 custom extensions
    -Low Seg2Cat 2.6.3
    -Member Categories 1.0.3
    -Mo Variables 1.1.0
    -P&T Field Pack 1.0.3
    -Social Sign On 2.2

    Plugins:
    -HTTP Header 1.0.3 (modified a little)
    -IfElse 2.0.0
    -Loopee 1.0
    -Magpie RSS Parser 1.3.5
    -MX Calculator 1.0.2
    -PHPStringFun 1.2.1
    -XML Encode 1.3

  • #4 / Oct 08, 2012 12:52pm

    Shane Eckert

    7174 posts

    Hey notacouch,

    I see the bug in the tracker.

    I cannot reproduce this, but let’s see what the Engineers say about the bug.

    Even if you did just start using ExpressionEngine, some developers will release an update after we release ours. 2.5.3 is a substantial upgrade with over 100 bug fixes. I would make sure that all the Add-Ons are up to date.

    Cheers,

  • #5 / Oct 08, 2012 12:56pm

    notacouch

    92 posts

    Wow. Okay well I’ll try and make sure I’m watching whatever I can on GitHub, may help if updates are released for any add-ons.

    Thanks for the heads up and if this is really just specific to my environment I apologize for the time taken.

  • #6 / Oct 09, 2012 11:31am

    Shane Eckert

    7174 posts

    Hey notacouch,

    No worries at all. I will keep this thread open just in case!

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases