Post by giangel84 » Wed Feb 25, 2009 7:26 am

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!!!

Newbie

Posts

Joined
Sat Feb 21, 2009 11:00 am

Post by liquidpele » Wed Feb 25, 2009 8:43 am

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.

New member

Posts

Joined
Mon Feb 23, 2009 11:58 pm

Post by pleX » Sat Mar 07, 2009 5:45 pm

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 );

Newbie

Posts

Joined
Sun Jul 20, 2008 11:36 pm

Post by liquidpele » Mon Mar 09, 2009 9:32 pm

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

New member

Posts

Joined
Mon Feb 23, 2009 11:58 pm

Post by pleX » Mon Mar 09, 2009 10:05 pm

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

Newbie

Posts

Joined
Sun Jul 20, 2008 11:36 pm
Who is online

Users browsing this forum: Bing [Bot], edkny and 121 guests