Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Installing SilverStripe

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Fatal error during silverstripe installation (Call to undefined method com::GetRandom())


Reply

4 Posts   1784 Views

Avatar
neotek

30 January 2011 at 11:43pm Community Member, 3 Posts

Hey

Trying to get the silverstripe to install. My system is Windows 7 32bit, I have downloaded latest WAMP server 2.1 server (Apache 2.2.17, PHP 5.3.5, mySQL 5.5.8).

I am getting this error always:

--- begin ---
( ! ) Fatal error: Call to undefined method com::GetRandom() in C:\wamp\www\silverstripe-v2.4.4\sapphire\security\RandomGenerator.php on line 51
Call Stack
#   Time   Memory   Function   Location
1   0.0054   803912   {main}( )   ..\install.php:0
2   0.0424   1591264   Installer->install( )   ..\install.php:190
3   8.3674   23445720   DataObject->write( )   ..\install.php:1103
4   8.3680   23446488   Member->onBeforeWrite( )   ..\DataObject.php:936
5   8.3695   23446480   Security::encrypt_password( )   ..\Member.php:663
6   8.3697   23446984   PasswordEncryptor->salt( )   ..\Security.php:842
7   8.3703   23465568   RandomGenerator->generateHash( )   ..\PasswordEncryptor.php:94
8   8.3703   23465568   RandomGenerator->generateEntropy( )   ..\RandomGenerator.php:69
--- end ---

I Googled for a fix and found this, but it didn't worked either: http://open.silverstripe.org/changeset/115314

Thanks

Avatar
neotek

1 February 2011 at 8:34am Community Member, 3 Posts

WAMP is to blame. On my other machine where I don't have the latest WAMP everything worked fine.

Avatar
Carbon Crayon

27 February 2011 at 7:31am Community Member, 598 Posts

I have submitted a patch to fix this:

http://open.silverstripe.org/ticket/6416

Avatar
neotek

27 February 2011 at 8:21am Community Member, 3 Posts

Thanks