5 replies [Last post]
Lodey's picture
Offline
Joined: 07/23/2009
Juice: 7
Was this information Helpful?

Here's my setup:

Drupal 6.13
Ubercart 2 RC3

Paypal Web Payments Standard

I have set everything up as recommended and everything is working fine except there is a problem with the IPN verification when either using sandbox OR the live account. In both situations my order goes through to paypal and then on completion comes back to my site confirmation page and emails are all sent out as they should be.

The problem is that without the IPN verification none of my actions are being triggered to update the status of the order as payment completed.

Looking in the log I can see that the main error is listed as follows :

-------------------------------
Type uc_paypal
Date Thursday, 27 August 2009 - 6:18pm
User Guest
Location http://site.com/uc_paypal/ipn/30
Referrer
Message IPN failed with HTTP error Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?, code -137245712.
Severity error
-------------------------------

More interestingly the previous okay log entry at the exact same time as this one is saying

-------------------------------
Type uc_paypal
Date Thursday, 27 August 2009 - 6:18pm
User Guest
Location http://site.com/uc_paypal/ipn/30
Referrer
Message Receiving IPN at URL for order 30.

Array
(
[mc_gross] => 0.10
[invoice] => 30-1251393247
[protection_eligibility] => Eligible
[address_status] => confirmed
[item_number1] =>
[payer_id] => G8DTL75AVQ4EC
[tax] => 0.01
[address_street] => 'data removed by me but was correct'
Crowlas
[payment_date] => 10:18:49 Aug 27, 2009 PDT
[option_selection1_1] => 1
[payment_status] => Completed
[charset] => windows-1252
[address_zip] => 'data removed by me but was correct'
[mc_shipping] => 0.00
[mc_handling] => 0.00
[first_name] => Test
[mc_fee] => 0.10
[address_country_code] => GB
[address_name] => Jan Lodey
[notify_version] => 2.8
[custom] =>
[payer_status] => unverified
[business] => 'data removed by me but was correct'
[address_country] => United Kingdom
[num_cart_items] => 1
[mc_handling1] => 0.00
[address_city] => 'data removed by me but was correct'
[verify_sign] => AyordagBQ8ynLuzo5e2jDPDD0926ALryqRFtFyH0KJlffc4P8goA5mlf
[payer_email] => 'data removed by me but was correct'
[mc_shipping1] => 0.00
[option_name1_1] => Product count
[txn_id] => 07T67427BB662532J
[payment_type] => instant
[last_name] => User
[address_state] => CORN
[item_name1] => Order 30 at 'data removed by me but was correct'
[receiver_email] => 'data removed by me but was correct'
[payment_fee] =>
[quantity1] => 1
[receiver_id] => DDCP8D37SLTLS
[txn_type] => cart
[mc_gross_1] => 0.09
[mc_currency] => GBP
[residence_country] => GB
[test_ipn] => 1
[transaction_subject] => Shopping Cart
[payment_gross] =>
)

** I have removed some off the personal details from the above for the purpose of this public issue - but all the details I removed were perfectly as they should be.
-------------------------------

So based on the above statement 'Message--Receiving IPN at URL for order 30.' and the details provided does this mean that paypal sent the information TO my site okay...... but then the following message is saying it couldnt send it back again or vice versa?

I have trawled the web to find out more on this issue - one guy has an unaswered post from a while back.... but other than that I'm stumped. I get the same above response if I switch over to a live account.

My server is configured with openssl I checked..... some other posts mention this.

I have posted a note with my server guys who are looking into it..... but you know how it is - its difficult for them without knowing the drupal system etc....

So the BIG question can anyone help - or had a similar problem.

One more thing..... I know many people might say try the latest version - but that has a major problem for me as it is not compatible with the VAT module - which is essential for my English based store..... If I upgrade then the VAT system wrecks the whole site....

Subscribe if you are having the same problem and hopefully we can get past it.

Thanks

Lodey's picture
Offline
Joined: 07/23/2009
Juice: 7
Just a bit more info

Looking more at this.... and please note I'm a bit of a php novice... so I'm working on what I can read and and search trhough as opposed to understand.

Looking at ubercart/uc_paypal/uc_paypal.pages.inc

Am I rigth in thinking that the point of the IPN being checked is at line 59 :

$response = drupal_http_request($host, array(), 'POST', $req);

I guess this is where it then moves to the next if statement outlining :

// TODO: Change this to property_exists when we have a PHP requirement >= 5.1.
if (array_key_exists('error', $response)) {
watchdog('uc_paypal', 'IPN failed with HTTP error @error, code @code.', array('@error' => $response->error, '@code' => $response->code), WATCHDOG_ERROR);
return;
}

I think I'm right in saying that this bit is generating the error? If so is it something to do with $response = drupal_http_request($host, array(), 'POST', $req);

My server is not running any secure password protections etc.... as mentioned openssl is definately configured on the server, and we do not have access to any https: certificates.

Not sure if that will help someone help me - but hope so!

Thanks

TR
TR's picture
Offline
Bug FinderFAQ ModeratorGetting busy with the Ubercode.
Joined: 11/05/2007
Juice: 3424
Lodey wrote: Unable to find
Lodey wrote:

Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?

This means your PHP needs to be configured with the "--with-openssl" option. When this is done right, phpinfo() will list SSL under the supported socket transport streams. (See admin/reports/status/php).

Lodey wrote:

as mentioned openssl is definately configured on the server

PHP built with OpenSSL support is not the same as having OpenSSL on your server.

<tr>.
frost's picture
Offline
Joined: 07/23/2008
Juice: 134
getting same error - not sure if openssl set up right?

same error, using ubercart 6.x-2.0. this same server runs another website using ubercart 5 with paypal no problem, but i dont know if that proves it is set up correctly since maybe ubercart5/paypal communication is different?

here's the phpinfo output

System Linux server1.indytech-hosting.com 2.6.18-128.7.1.el5xen #1 SMP Mon Aug 24 10:08:55 EDT 2009 i686
Build Date Sep 16 2009 12:41:11
Configure Command './configure' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-libxml' '--enable-magic-quotes' '--enable-mbstring' '--enable-pdo=shared' '--enable-sockets' '--enable-zip' '--prefix=/usr/local' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-curl=/opt/curlssl/' '--with-gd' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mhash=/opt/mhash/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-mysqli=/usr/bin/mysql_config' '--with-pdo-mysql=shared' '--with-pdo-sqlite=shared' '--with-png-dir=/usr' '--with-sqlite=shared' '--with-xpm-dir=/usr' '--with-zlib' '--with-zlib-dir=/usr'
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/lib
Loaded Configuration File /usr/local/lib/php.ini
Scan this dir for additional .ini files (none)
additional .ini files parsed (none)
PHP API 20041225
PHP Extension 20060613
Zend Extension 220060519
Debug Build no
Thread Safety disabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams compress.zlib, php, file, data, http, ftp, zip
Registered Stream Socket Transports tcp, udp, unix, udg
Registered Stream Filters zlib.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed

Directive Local Value Master Value
allow_call_time_pass_reference On On
allow_url_fopen On On
allow_url_include Off Off
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output &amp; &
asp_tags Off Off
auto_append_file no value no value
auto_globals_jit On On
auto_prepend_file no value no value
browscap no value no value
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_classes no value no value
disable_functions no value no value
display_errors On On
display_startup_errors Off Off
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl Off Off
error_append_string no value no value
error_log error_log error_log
error_prepend_string no value no value
error_reporting 6135 6135
expose_php On On
extension_dir /usr/local/lib/php/extensions/no-debug-non-zts-20060613 /usr/local/lib/php/extensions/no-debug-non-zts-20060613
file_uploads On On
highlight.bg #FFFFFF #FFFFFF
highlight.comment #FF8000 #FF8000
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
html_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .:/usr/lib/php:/usr/local/lib/php .:/usr/lib/php:/usr/local/lib/php
log_errors On On
log_errors_max_len 1024 1024
magic_quotes_gpc Off On
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
mail.force_extra_parameters no value no value
max_execution_time 30 30
max_input_nesting_level 64 64
max_input_time 60 60
memory_limit 64M 32M
open_basedir /home/dulra:/usr/lib/php:/usr/local/lib/php:/tmp no value
output_buffering no value no value
output_handler no value no value
post_max_size 8M 8M
precision 12 12
realpath_cache_size 16K 16K
realpath_cache_ttl 120 120
register_argc_argv On On
register_globals Off Off
register_long_arrays On On
report_memleaks On On
report_zend_debug On On
safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value
sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
serialize_precision 100 100
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 2M 2M
upload_tmp_dir no value no value
user_dir no value no value
variables_order EGPCS EGPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance On On
zend.ze1_compatibility_mode Off Off

apache2handler

Apache Version Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.10
Apache API Version 20051115
Server Administrator webmaster@dulra.org
Hostname:Port dulra.org:0
User/Group nobody(99)/99
Max Requests Per Child: 1000 - Keep Alive: on - Max Per Connection: 100
Timeouts Connection: 300 - Keep-Alive: 5
Virtual Server Yes
Server Root /usr/local/apache
Loaded Modules core mod_authn_file mod_authz_host mod_authz_groupfile mod_authz_user mod_authz_default mod_auth_basic mod_include mod_filter mod_log_config mod_logio mod_env mod_expires mod_headers mod_unique_id mod_setenvif mod_version mod_proxy mod_proxy_connect mod_proxy_ftp mod_proxy_http mod_proxy_ajp mod_proxy_balancer mod_ssl prefork http_core mod_mime mod_status mod_autoindex mod_asis mod_info mod_suexec mod_cgi mod_negotiation mod_dir mod_actions mod_userdir mod_alias mod_rewrite mod_so mod_auth_passthrough mod_bwlimited mod_fpcgid mod_php5 mod_security2

TR
TR's picture
Offline
Bug FinderFAQ ModeratorGetting busy with the Ubercode.
Joined: 11/05/2007
Juice: 3424
frost wrote: same error,
frost wrote:

same error, using ubercart 6.x-2.0.

And what part of my post in #2 didn't you understand?

frost wrote:
Configure Command './configure' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-libxml' '--enable-magic-quotes' '--enable-mbstring' '--enable-pdo=shared' '--enable-sockets' '--enable-zip' '--prefix=/usr/local' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-curl=/opt/curlssl/' '--with-gd' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mhash=/opt/mhash/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-mysqli=/usr/bin/mysql_config' '--with-pdo-mysql=shared' '--with-pdo-sqlite=shared' '--with-png-dir=/usr' '--with-sqlite=shared' '--with-xpm-dir=/usr' '--with-zlib' '--with-zlib-dir=/usr'

I don't see --with-openssl anywhere in there.

frost wrote:
Registered PHP Streams compress.zlib, php, file, data, http, ftp, zip

I don't see https in there.

frost wrote:
Registered Stream Socket Transports tcp, udp, unix, udg

I don't see ssl in there.

<tr>.
torgosPizza's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/14/2007
Juice: 4110
Re: getting same error - not sure if openssl set up right?

SSL being bundled and installed in your PHP has nothing to do with whether or not Ubercart is setup correctly. You need to contact your host and ask them to enable and configure SSL in your installation of PHP.

--
Help directly fund development: Donate via PayPal!