I wanted to take a look at book access features so I installed it alright but decided to stick with bookmadesimple for my needs. After disabling it and then confirming uninstall I get WSOD. Reload the page and it's still there.

Anyone else having this problem? I'm experiencing some issues with book permissions and am trying to rule this out as an issue or I could just leave it.

Comments

rumblewand’s picture

Oh and there is no log entry on the WSOD.

ppc.coder’s picture

I'm getting an error when I try to uninstall:

Fatal error: Class 'BookAccessVars' not found in /home/dm7/sites/cscb.ca/modules/book_access/book_access.install on line 258

Here's something that might be related from the 6 version:
http://drupal.org/node/834978

Anonymous’s picture

I started getting this error when upgrading from Drupal 7.7 to 7.8

Anonymous’s picture

Actually, this didn't stem from updating to Drupal-7. When I update Vars I get the wsod error:

Fatal error: Class 'Vars' not found in /mysite.com/sites/all/modules/book_access/book_access.module on line 650

I was updating Vars from Alpha 4 to Alpha 10.

Please someone take a look at this, this module is an important part of my site.

Thank you.

rooby’s picture

There are a few other issues regarding errors when updating the vars module.
In that case you can disable the book_access module, update vars, then re-enable the book access module and it should work ok.

I also have the uninstall problem though, which is annoying because I want to uninstall it because it doesn't work properly but the uninstall also doesn't work properly :)

It is unfortunate that I can't use this module but there are a few bugs that just make it pretty much unusable in a lot of use cases that have been an issue for a very long time.

rooby’s picture

I had a quick go at getting around it by adding this to the top of hook_uninstall():

  // We meed to load the module file or else we can't use the classes in it.
  drupal_load('module', 'book_access');

But then you get this error:

Fatal error: Cannot access self:: when no class scope is active in /var/www/mysite/sites/all/modules/vars/vars.module on line 39

rooby’s picture

FYI, a quick way to uninstall it if you don't have any other modules that depend on the vars module is:

1. Comment out or delete the whole book_access_uninstall() function from book_access.install
2. Uninstall book_access and vars modules.

If you still need vars for someting else then you can do this:
1. Comment out or delete the whole book_access_uninstall() function from book_access.install
2. Uninstall book_access module
3. In your database, manually run this command:

DELETE FROM variable_default WHERE module = 'book_access';
thelee’s picture

Status: Active » Fixed

There have been changes to book_access.install a while back that remove the Vars dependency, so I'm marking this as fixed. If this crops up again, file a new issue.

rooby’s picture

There have been changes to book_access.install a while back that remove the Vars dependency

Yay! I'm not a fan of the vars module.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.