sawade Posted August 10, 2009 Share Posted August 10, 2009 [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. 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.'); Quote Link to comment Share on other sites More sharing options...
taquitosensei Posted August 11, 2009 Share Posted August 11, 2009 you'll need to find out where the binary gpg is and specify it like so $gpg = new Crypt_GPG(array('binary' => '/path/to/gpg')); Quote Link to comment Share on other sites More sharing options...
sawade Posted August 11, 2009 Author Share Posted August 11, 2009 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] Quote Link to comment Share on other sites More sharing options...
taquitosensei Posted August 11, 2009 Share Posted August 11, 2009 It sounds like you haven't created the keys or crypt_gpg doesn't know where to look. Here's a guide to creating and using keys with crypt_gpg http://pear.php.net/manual/en/package.encryption.crypt-gpg.php Quote Link to comment Share on other sites More sharing options...
sawade Posted August 11, 2009 Author Share Posted August 11, 2009 Thanks I will read through that. No, I didn't do anything with it. A co-worker said they had it all set up and to just input the code I gave above into the form. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.