Page 1 of 1

error paypal checkout

Posted: Wed Feb 25, 2009 7:26 am
by giangel84
I've also an problem with order checkout when i using paypal payment method.

This is the error retrive from my browser.

Warning: mcrypt_create_iv() [function.mcrypt-create-iv]: Cannot open source device in C:\xampp\htdocs\system\library\encryption.php on line 8

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\system\library\encryption.php:8) in C:\xampp\htdocs\system\library\response.php on line 65

Are there any solution?

What is Encryption Key and as i as configure it?!

Thank you so much!!!

Re: error paypal checkout

Posted: Wed Feb 25, 2009 8:43 am
by liquidpele
You're on windows are are trying to send email through an SMTP server that does not accept mail that is not coming from localhost. This means you need to configure php.ini to use the local smtp server, or if it's a remote one you'll have to use smtp authentication.

Re: error paypal checkout

Posted: Sat Mar 07, 2009 5:45 pm
by pleX
This problem does not relate to the SMTP!!

The error message is "Cannot open source device in C:\xampp\htdocs\system\library\encryption.php on line 8" because in the encryption.php

Line 8: => $this->iv = mcrypt_create_iv(32);
that will suppose to open random value from /dev/random or /dev/urandom .

If you run this script on Linux you will not have this problem
since Linux has this file device.

On the other hand, you run on Windows
You have to change the script from
$this->iv = mcrypt_create_iv(32);
to
srand();
$this->iv = mcrypt_create_iv(32, MCRYPT_RAND );

Re: error paypal checkout

Posted: Mon Mar 09, 2009 9:32 pm
by liquidpele
Wow... I posted that to the wrong Tab. Sorry for any confusion there.

You might want to submit a bug report though:
http://code.google.com/p/opencart/issues/list

Re: error paypal checkout

Posted: Mon Mar 09, 2009 10:05 pm
by pleX
Thanks liquidpele to response back.

After I take long time to debug the code,
I saw that this bug was solve in opencart v1.1.9. ;D