Jump to content

[SOLVED] GPG binary not found


sawade

Recommended Posts

[pre]Fatal error: Uncaught PEAR_Exception: GPG binary not found. If you are sure the GPG binary is installed, please specify the location

of the GPG binary using the 'binary' driver option. in php/Crypt/GPG.php on line 355

 

Exception trace # Function Location 0

Crypt_GPG_Engine->__construct(Array) /php/Crypt/GPG.php:355

Crypt_GPG->__construct() formtester.php:664 2 {main} thrown in /php/Crypt/GPG/Engine.php on line 391

 

Above is the last error I need to debug to get my form fully operational again.  This is a new error.  The form was working before,

and now all of a sudden this error is popping up.  :confused: I'm afraid I am not very well versed in GPG, a co-worker created the GPG and the

PHP code to use it.  Below is the code:

[/pre]

 

$data = $msg;	

$gpg = new Crypt_GPG();
$gpg->addEncryptkey('private key');
$encrypted = $gpg->encrypt($data);

/* Sends Email */
$mail = Mail::factory('smtp', $smtp);

$mail->send($to, $headers, $encrypted)
	or die('Error accessing SMTP server.');

$mail->send($to, $headers2, $msg)
	or die('Error accessing SMTP server.');

Link to comment
Share on other sites

Fatal error: Uncaught Crypt_GPG_Exception: Unknown error getting keys. Please use the 'debug' option when creating the Crypt_GPG object, and file a bug report at http://pear.php.net/bugs/report.php?package=Crypt_GPG in /php/Crypt/GPG.php on line 1406

 

Exception trace # Function Location 0 Crypt_GPG->getKeys('private key;') /php/Crypt/GPG.php:1406 1 Crypt_GPG->_addKey(Array, true, false, 'secureforms@meds…') /php/Crypt/GPG.php:1228 2 Crypt_GPG->addEncryptKey('private key;') /folder/ in /folder/php/Crypt/GPG.php on line 685

 

[pre]Now I get this error msg.[/pre]

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.