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
https://forums.phpfreaks.com/topic/169683-solved-gpg-binary-not-found/
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]

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.