CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Standalone Installations (Moderator: cap10morgan) »
  • Fatal OpenID error on localhost install
Pages: [1]

Author Topic: Fatal OpenID error on localhost install  (Read 8222 times)

michaelp

  • Guest
Fatal OpenID error on localhost install
November 06, 2008, 12:21:36 pm
Trying to install on XAMP for testing, got to the CiviCRM First User Setup OpenID screen (really?), put in my OpenID URL, getting:

Fatal error: Define Auth_OpenID_RAND_SOURCE as null to continue with an insecure random number generator.

Using Civicrm
2.1.1 Drupal PHP5
Standalone

How can I work around this for a local installation (tried putting null in the function, but no joy).


dekkit

  • Guest
Re: Fatal OpenID error on localhost install
November 25, 2008, 03:46:00 am
I'm using WAMP on windows XP for a stand alone CiviCRM installation... i've done some research and found this looks to be an issue with the OpenID php module (and not specific to CiviCRM)

1. Have a look in your www directory (this is mine): www\civicCRM\packages\Auth\OpenID

2. open the file: CryptUtil.php

3. from line 18 replace the chunk of code with the following (it may not be as secure but for a local install it should be fine):

if (!defined('Auth_OpenID_RAND_SOURCE')) {
    /**
     * The filename for a source of random bytes. Define this yourself
     * if you have a different source of randomness.
     *
     * define('Auth_OpenID_RAND_SOURCE', '/dev/urandom');
     */
   define('Auth_OpenID_RAND_SOURCE', null);


4. save file and try again  :)

Powered by CiviCRM 2.1.2. CiviCRM

albertpaul68

  • Guest
Re: Fatal OpenID error on localhost install
December 04, 2010, 02:09:48 am
Be aware that if you install the latest version of Wampserver and combine it with Drupal 6.13 or above you will likely get the following error. Deprecated: Function ereg() is deprecated in C:\wamp\www\drupal\includes\file.inc on line 902

The error is caused by the fact that the newer version of Wampserver utilizes version 5.3 of PHP and the latest version of Drupal does not support PHP 5.3. You can remedy the issue by installing an earlier version of Wampserver that has the 5.2 branch of PHP. Wampserver 2.0h  includes PHP 5.2.9-2. Another option is to use another stack installer such as the Acquia Drupal Stack Installer.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Standalone Installations (Moderator: cap10morgan) »
  • Fatal OpenID error on localhost install

This forum was archived on 2017-11-26.