sono 3 giorni che sbatto la testa in ogni dove per risolvere questo problema con paypal. Ho seguito tutte le guide che ho trovato e alla fine sono arrivato a questo punto senza trovare una soluzione.
Io ho installato e configurato tutto, solo che quando vado a fare un ordine al momento in cui dovrei essere ridirezionato su paypal (pagina checkout_confirmation.php) mi viene scritto questo errore:
Codice: Seleziona tutto
Warning: fread() [function.fread]: Length parameter must be greater than 0. in /web/htdocs/miosito/home/site/includes/modules/payment/paypal_ipn.php on line 575
Codice: Seleziona tutto
$fh = fopen(MODULE_PAYMENT_PAYPAL_IPN_EWP_WORKING_DIRECTORY . '/' . $random_string . 'encrypted.txt', 'rb');
$data = fread($fh, filesize(MODULE_PAYMENT_PAYPAL_IPN_EWP_WORKING_DIRECTORY . '/' . $random_string . 'encrypted.txt'));
fclose($fh);
unlink(MODULE_PAYMENT_PAYPAL_IPN_EWP_WORKING_DIRECTORY . '/' . $random_string . 'encrypted.txt');
log del webserver:
Codice: Seleziona tutto
[Thu Jun 12 16:04:27 2008] [error] unable to load 'random state', referer: http://www.miosito.it/site/checkout_payment.php
[Thu Jun 12 16:04:27 2008] [error] This means that the random number generator has not been seeded, referer: http://www.miosito.it/site/checkout_payment.php
[Thu Jun 12 16:04:27 2008] [error] with much random data., referer: http://www.miosito.it/site/checkout_payment.php
[Thu Jun 12 16:04:27 2008] [error] Consider setting the RANDFILE environment variable to point at a file that, referer: http://www.miosito.it/site/checkout_payment.php
[Thu Jun 12 16:04:27 2008] [error] 'random' data can be kept in (the file will be overwritten)., referer: http://www.miosito.it/site/checkout_payment.php
[Thu Jun 12 16:04:27 2008] [error] Error creating PKCS#7 structure, referer: http://www.miosito.it/site/checkout_payment.php
[Thu Jun 12 16:04:27 2008] [error] 2998:error:24064064:random number generator:SSLEAY_RAND_BYTES:PRNG not seeded:md_rand.c:503:You need to read the OpenSSL FAQ, http://www.openssl.org/support/faq.html, referer: http://www.miosito.it/site/checkout_payment.php
[Thu Jun 12 16:04:27 2008] [error] 2998:error:04088003:rsa routines:RSA_setup_blinding:BN lib:rsa_lib.c:417:, referer: http://www.miosito.it/site/checkout_payment.php
[Thu Jun 12 16:04:27 2008] [error] 2998:error:04066044:rsa routines:RSA_EAY_PRIVATE_ENCRYPT:internal error:rsa_eay.c:409:, referer: http://www.miosito.it/site/checkout_payment.php
[Thu Jun 12 16:04:27 2008] [error] 2998:error:21080006:PKCS7 routines:PKCS7_dataFinal:EVP lib:pk7_doit.c:744:, referer: http://www.miosito.it/site/checkout_payment.php
[Thu Jun 12 16:04:27 2008] [error] 2998:error:21074091:PKCS7 routines:PKCS7_sign:pkcs7 datasign:pk7_smime.c:144:, referer: http://www.miosito.it/site/checkout_payment.php
[Thu Jun 12 16:04:27 2008] [error] unable to load 'random state', referer: http://www.miosito.it/site/checkout_payment.php
[Thu Jun 12 16:04:27 2008] [error] This means that the random number generator has not been seeded, referer: http://www.miosito.it/site/checkout_payment.php
[Thu Jun 12 16:04:27 2008] [error] with much random data., referer: http://www.miosito.it/site/checkout_payment.php
[Thu Jun 12 16:04:27 2008] [error] Consider setting the RANDFILE environment variable to point at a file that, referer: http://www.miosito.it/site/checkout_payment.php
[Thu Jun 12 16:04:27 2008] [error] 'random' data can be kept in (the file will be overwritten)., referer: http://www.miosito.it/site/checkout_payment.php
[Thu Jun 12 16:04:27 2008] [error] Error creating PKCS#7 structure, referer: http://www.miosito.it/site/checkout_payment.php
[Thu Jun 12 16:04:27 2008] [error] 3000:error:24064064:random number generator:SSLEAY_RAND_BYTES:PRNG not seeded:md_rand.c:503:You need to read the OpenSSL FAQ, http://www.openssl.org/support/faq.html, referer: http://www.miosito.it/site/checkout_payment.php
[Thu Jun 12 16:04:27 2008] [error] 3000:error:21073041:PKCS7 routines:PKCS7_encrypt:malloc failure:pk7_smime.c:404:, referer: http://www.miosito.it/site/checkout_payment.php
[Thu Jun 12 16:04:27 2008] [error] PHP Warning: fread() [<a href='function.fread'>function.fread</a>]: Length parameter must be greater than 0. in /web/htdocs/www.miosito.it/home/site/includes/modules/payment/paypal_ipn.php on line 575, referer: http://www.miosito.it/site/checkout_payment.php
qualcuno sa aiutarmi?
grazie mille