17452 Posts in 4473 Topics by 1971 members
|Go to End||Next >|
30 March 2007 at 6:15am
There's something weird at your end, possibly due to your PHP version (5.0.5).
The following code in sapphire/security/Permission.php (static function groupList) fails:
if($groups) foreach($groups as $group) $groupList = $group->ID;
For somereason the foreach doesn't run.
I've put a hack in your code below this line:
$groupList = 1;
I can now login, but it now assumes every member of your site is an admin (you are the only user, so this is kinda okay for now).
I'll see if someone else can shed light on this....
1 April 2007 at 4:17pm
i reinstalled everything... and my mysite/_config.php file looks like this:
$project = 'mysite';
$databaseConfig = array(
"type" => "MySQLDatabase",
"server" => "localhost",
"username" => "<username>",
"password" => "<password>",
"database" => "<database name>",
so... Sigurd, that line you mentioned (Security::setDefaultAdmin('admin','password'); ) is not there. where should it go?
3 April 2007 at 8:22am
ok, after all these changes i've managed to login, but now i have 2 other problems, in the Security tab, i've got the following: Fatal error: Cannot access protected property Form::$actions in /home/sparknet/public_html/cms/sapphire/forms/TabularStyle.php on line 44,
and in the content tab, the button to publish the edited page didn't appear, i can only save my draft
17 April 2007 at 3:46pm
Seems to be serious bugs in the sapphire security module.
PHP 5.0.5-Debian-0.8~sarge1 (cli) (built: Oct 27 2005 10:43:05)
I got the errors: "You can't access that part of the CMS" on first login with admin/password.
I fixed that by overriding the groupID patch
When trying to access security groups via Security section, I now get:
Fatal error: Cannot access protected property TextField::$value in /home/www/ispconfig/web6/web/silverstripe-v2.0/sapphire/forms/TableField.php on line 537
I have tried to override this by setting
public static $currentController
but this doesn't appear to work.
Can you advise on a fix for this bug and/or advise if it is fixed in 2.0.1rc?
Is this release genuinely stable or is it really beta?
17 April 2007 at 4:22pm
Which version are you using?
Could you please try 2.0.1rc7 and see if it works for you, then we can confirm that this was fixed.
17 April 2007 at 11:22pm
The issue seems to be with PHP 5.0.5
I have built a new test install with PHP 5.2.0 and Silverstripe 2.0.1rc7 and it works without errors.
Andy is taking a look at my PHP 5.0.5 server to see if he can get 2.0.2 working on it tomorrow I think.
18 April 2007 at 11:59am
These problems should now be all fixed. They'll be fixed in the daily build tonight, and will be in 2.0.2.
8 September 2007 at 7:26pm
I am having the same problem when opening the newly installed CMS
Fatal error: Cannot access protected property Controller::$currentController in /...../sapphire/security/Security.php on line 108
I have changed /mysite/_config.php, and added:
I can't access the CMS. What can I do???
|Go to Top||Next >|