Closed (fixed)
Project:
Spaces
Version:
6.x-2.0-beta3
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Jul 2009 at 20:47 UTC
Updated:
27 Aug 2009 at 17:40 UTC
When trying to enable the module this is what I get: Fatal error: Interface 'space_setting' not found in /home/web123456/domains/example.com/public_html/sites/all/modules/spaces/spaces_design/spaces_design.module on line 53.
Comments
Comment #1
jaxpax commentedI disabled the module, flushed the tables and enabled ones again and everything works just fine. I'm sorry for not doing this before "crying wolf".
//Patrik
Comment #2
yhahn commentedNo worries, thanks for fixing the bug : )
Comment #3
luckysmack commentedI received the same error. Even after clearing the caches, setting status to 0 in the system table, i still received this error. But i noticed I only received it if I enabled spaces, spaces_design, spaces_site, and spaces_user at the same time. if i enabled spaces first by itself and then each submodule individually i did not get the error. Also i noticed that when i received this error the only enabled spaces module in the database was spaced_design. So maybe spaces design is trying to be enabled bofore core spaces and the required tables arent present. So it seems like it isnt checking that its dependency is enabled first. But i could be wrong. None the less its easily fixable but still a bug. hope this helps.
Comment #4
yhahn commentedI believe I've fixed this with this commit: http://drupal.org/project/cvs/261691
I'm assuming that the problem was occuring because spaces is weighted to -1 in hook_enable(), after spaces_design has been loaded. Therefore, under certain conditions I'm guessing that spaces_design was evaluated first before spaces, making the class definition fail.
The fix moves the class definitions out into an inc file so that they are only loaded when the spaces settings are requested.