Download & Extend

Uninstall does not remove the site_403 association correctly (breaking authentication)

Project:Secure Site
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active

Issue Summary

The following is the implementation of hook_disable() on the module.

function securesite_disable() {
  variable_set('site_403', variable_get('securesite_403', variable_get('site_403', '')));
}

This is intended to set $site_403 back to the setting before secure site was enabled, however if $securesite_403 is unset it sets $site_403 back to 'securesite_403' - which of course breaks when the module is uninstalled. Maybe something like this should be used?

function securesite_disable() {
  $site_403 = variable_get('site_403', '');
  if($site_403 == 'securesite_403') {
    $site_403 = '';
  }
  variable_set('site_403', variable_get('securesite_403', $site_403));
}

Comments

#1

How does one recover from uninstalling? I can't access anything on my site.

#2

Uninstalling wouldn't affect your ability to access the site.

#3

Hi Darren,

I think it is - nothing else has changed.

Everytime I attempt to login (with admin password or any other user/password combo), the URL of the site changes to:-

/securesite_403?destination=securesite_403

And the page shows a

"Page not found
The requested page could not be found."

Any ideas?

Thanks,

Scott

#4

I was able to resolve this by

1. Logging into http://domain/?q=user as admin

2. This then showed me the Admin menu, I re-enabled the SecureSite module.

3. I then set it to Force Authentication = Never

I now seem to be back up and running, but am scared to disable and uninstall the module in case the issue happens again.

Scott

#5

Well,
same problem. I cannot use the normal login block anymore since it looks for the securesite_403 destination taking to the "nowhere" page.

Users have to go to http://myweb/user in order to login.

I tried several ways to install the module with the different options in the set up and tried to removed it rom there: No way.

#6

Same problem here when trying to uninstall. Something goes wonky when trying to access www.mysiteexample.com/admin , you get redirected and the url that comes up is:

www.mysiteexample.com/securesite_403?destination=securesite_403

Thanks for looking into this!

#7

Fixed with the suggestion of the original poster, make securesite is enabled when doing this. Then edit manually the file securesite.install and change the function as described above. Then try uninstalling the module again.

#8

subscribing