Hi,
i had problems installing the subsites module and overcame them like this.
I'm using a test envoronment on osx with xampp and silverstripe 2.3.0-rc2.
Installation:
- unziped the latest version of subsites and genericdataadmin below htdocs/silverstripe (root folder of silverstripe)
- made a link in the root folder with
sudo ln -s modules/genericdataadmin/tags/rc/0.1/ genericdataadmin sudo ln -s modules/subsites/trunk/ subsites
- Issued a http://localhost/silverstripe/db/build?flush=1 to see the subsite item left of the helm menu when calling the admin section at http://localhost/silverstripe/admin/
Setup:
When opening the subsite section under http://localhost/silverstripe/admin/subsites/
I got the error: Notice: Trying to get property of non-object in line 113 which is this code:
112 } else {
113 return $list->First()->Title;
114 }
- After I made a quick hack modifying the line to:
113 return $list; //->First()->Title;
- loading the page succeeded.
This confimed my suspicion that the db is not proberly initialised on install and there is no trap for this kind of error, which should be.
- After creation of the first subsite and undooing my hack, it works now.
- However, the error comes back if i delete the last subsite. So if there is a php crack who can fix this or even a developer, great!
Cheers
Bj