Paypal shopping cart not working
I just changed my server.
I am using Zencart version v1.5.4)
I am using PHP 7.2.22
My site was working well on other server using 5.4.? PHP
Now customers can not pay using paypal express checkout.
They get this error [ and a timeout error sometimes]
========================================
An error occurred when we tried to contact the payment processor. Please try again, select an alternate payment method, or contact the store owner for assistance. ()
===================================
Using IPN check file from files produced this result:
=======================
IPNCHECK.PHP - Version 1.3.9
CURL RESPONSE RECEIVED - Communications OKAY
IPN TESTING - Response Received via CURL -- COMMUNICATIONS OKAY
============================
Doing Curl checker from files showed these results:
============================================
Testing communications to various destinations. This is a simple diagnostic to determine whether your server can connect to common destinations.
For advanced "details" mode, add ?details=on to the URL.
Connecting to Zen Cart Support Server (http) ...
GOOD: CURL Connection successful.
Connecting to Zen Cart Support Server (https) ...
GOOD: CURL Connection successful.
Connecting to USPS (port 80)...
GOOD: CURL Connection successful.
Connecting to USPS Test/Staging/Sandbox Server (port 80)...
GOOD: CURL Connection successful.
Connecting to UPS (port 80)...
GOOD: Socket established
Connecting to UPSXML (SSL) (wwwcie.ups.com) ...
Error 7: Failed to connect to wwwcie.ups.com port 80: Connection refused
Connecting to UPSXML (SSL) (www.ups.com) ...
GOOD: CURL Connection successful.
Connecting to UPSXML (SSL) (onlinetools.ups.com) ...
Error 7: Failed to connect to onlinetools.ups.com port 80: Connection timed out
Connecting to FedEx (port 80)...
GOOD: Socket established
Connecting to PayPal IPN (port 443)...
GOOD: Socket established
GOOD: CURL Connection successful.
Connecting to PayPal IPN (port 443) Sandbox ...
GOOD: Socket established
GOOD: CURL Connection successful.
Connecting to PayPal Express/Pro Server ...
GOOD: CURL Connection successful.
Connecting to PayPal Express/Pro Sandbox ...
Error 28: Connection timed out after 5004 milliseconds
Connecting to PayPal Payflowpro Server ...
Error 28: Connection timed out after 5000 milliseconds
Connecting to AuthorizeNet Production Server ...
Error 28: Connection timed out after 5000 milliseconds
Connecting to AuthorizeNet Developer/Sandbox Server ...
GOOD: CURL Connection successful.
Connecting to First Data GGe4 server (SSL)...
GOOD: CURL Connection successful.
Connecting to LinkPointAPI server (port 1129)...
Error 28: Operation timed out after 15001 milliseconds with 0 bytes received
Testing completed. See results above.
+++++++++++++++++++++
I shut off UPS and FEDX in shipments.........
================================
Server has Curl installed:
================
cURL support enabled
cURL Information 7.66.0
Age 5
Features
AsynchDNS Yes
CharConv No
Debug No
GSS-Negotiate No
IDN No
IPv6 Yes
krb4 No
Largefile Yes
libz Yes
NTLM Yes
NTLMWB Yes
SPNEGO Yes
SSL Yes
SSPI No
TLS-SRP Yes
HTTP2 Yes
GSSAPI Yes
KERBEROS5 Yes
UNIX_SOCKETS Yes
PSL No
Protocols dict, file, ftp, ftps, gopher, http, https, imap, imaps, pop3, pop3s, rtsp, scp, sftp, smb, smbs, smtp, smtps, telnet, tftp
Host x86_64-redhat-linux-gnu
SSL Version OpenSSL/1.0.2t
ZLib Version 1.2.3
libSSH Version libssh2/1.4.2
=============================
What should I do?
Re: Paypal shopping cart not working
Testing communications to various destinations. This is a simple diagnostic to determine whether your server can connect to common destinations.
For advanced "details" mode, add ?details=on to the URL.
Connecting to Zen Cart Support Server (http) ...
GOOD: CURL Connection successful.
Connection Details:
Array
(
[url] => "http://www.zen-cart.com/testcurl.php"
[content_type] => text/html; charset=iso-8859-1
[http_code] => 301
[header_size] => 356
[request_size] => 212
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.203262
[namelookup_time] => 0.000411
[connect_time] => 0.10482
[pretransfer_time] => 0.104985
[size_upload] => 37
[size_download] => 245
[speed_download] => 1206
[speed_upload] => 182
[download_content_length] => 245
[upload_content_length] => 37
[starttransfer_time] => 0.202142
[redirect_time] => 0
[redirect_url] => https://www.zen-cart.com/testcurl.php
[primary_ip] => 104.236.245.70
[certinfo] => Array
(
)
[primary_port] => 80
[local_ip] => 74.220.219.94
[local_port] => 26518
)
Connecting to Zen Cart Support Server (https) ...
GOOD: CURL Connection successful.
Connection Details:
Array
(
[url] => "http://www.zen-cart.com/testcurl.php"
[content_type] => text/html; charset=iso-8859-1
[http_code] => 301
[header_size] => 356
[request_size] => 212
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.197875
[namelookup_time] => 0.000378
[connect_time] => 0.09788
[pretransfer_time] => 0.098374
[size_upload] => 37
[size_download] => 245
[speed_download] => 1243
[speed_upload] => 187
[download_content_length] => 245
[upload_content_length] => 37
[starttransfer_time] => 0.19717
[redirect_time] => 0
[redirect_url] => https://www.zen-cart.com/testcurl.php
[primary_ip] => 104.236.245.70
[certinfo] => Array
(
)
[primary_port] => 80
[local_ip] => 74.220.219.94
[local_port] => 26520
)
Connecting to USPS (port 80)...
GOOD: CURL Connection successful.
Connection Details:
Array
(
[url] => "http://production.shippingapis.com/shippingapi.dll"
[content_type] => text/xml
[http_code] => 200
[header_size] => 459
[request_size] => 226
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.201446
[namelookup_time] => 0.006397
[connect_time] => 0.103792
[pretransfer_time] => 0.103912
[size_upload] => 37
[size_download] => 212
[speed_download] => 1054
[speed_upload] => 184
[download_content_length] => 212
[upload_content_length] => 37
[starttransfer_time] => 0.201361
[redirect_time] => 0
[redirect_url] =>
[primary_ip] => 56.0.70.50
[certinfo] => Array
(
)
[primary_port] => 80
[local_ip] => 74.220.219.94
[local_port] => 58524
)
Connecting to USPS Test/Staging/Sandbox Server (port 80)...
GOOD: CURL Connection successful.
Connection Details:
Array
(
[url] => "http://stg-production.shippingapis.com/ShippingApi.dll"
[content_type] => text/xml
[http_code] => 200
[header_size] => 459
[request_size] => 230
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.236303
[namelookup_time] => 0.000547
[connect_time] => 0.095789
[pretransfer_time] => 0.095912
[size_upload] => 37
[size_download] => 212
[speed_download] => 898
[speed_upload] => 156
[download_content_length] => 212
[upload_content_length] => 37
[starttransfer_time] => 0.236215
[redirect_time] => 0
[redirect_url] =>
[primary_ip] => 56.0.71.29
[certinfo] => Array
(
)
[primary_port] => 80
[local_ip] => 74.220.219.94
[local_port] => 26770
)
Connecting to UPS (port 80)...
GOOD: Socket established
Connecting to UPSXML (SSL) (wwwcie.ups.com) ...
Error 7: Failed to connect to wwwcie.ups.com port 80: Connection refused
Connection Details:
Array
(
[url] => "http://wwwcie.ups.com/ups.app/xml/Rate"
[content_type] =>
[http_code] => 0
[header_size] => 0
[request_size] => 0
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.134955
[namelookup_time] => 0.001033
[connect_time] => 0
[pretransfer_time] => 0
[size_upload] => 0
[size_download] => 0
[speed_download] => 0
[speed_upload] => 0
[download_content_length] => -1
[upload_content_length] => -1
[starttransfer_time] => 0
[redirect_time] => 0
[redirect_url] =>
[primary_ip] =>
[certinfo] => Array
(
)
[primary_port] => 0
[local_ip] =>
[local_port] => 0
)
Connecting to UPSXML (SSL) (www.ups.com) ...
GOOD: CURL Connection successful.
Connection Details:
Array
(
[url] => "http://www.ups.com/ups.app/xml/Rate"
[content_type] =>
[http_code] => 301
[header_size] => 247
[request_size] => 211
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.030573
[namelookup_time] => 0.000243
[connect_time] => 0.01306
[pretransfer_time] => 0.013144
[size_upload] => 37
[size_download] => 0
[speed_download] => 0
[speed_upload] => 1233
[download_content_length] => 0
[upload_content_length] => 37
[starttransfer_time] => 0.030494
[redirect_time] => 0
[redirect_url] => https://www.ups.com/ups.app/xml/Rate
[primary_ip] => 23.43.242.135
[certinfo] => Array
(
)
[primary_port] => 80
[local_ip] => 74.220.219.94
[local_port] => 47896
)
Connecting to UPSXML (SSL) (onlinetools.ups.com) ...
Error 7: Failed to connect to onlinetools.ups.com port 80: Connection timed out
Connection Details:
Array
(
[url] => "http://onlinetools.ups.com/ups.app/xml/Rate"
[content_type] =>
[http_code] => 0
[header_size] => 0
[request_size] => 0
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 3.749778
[namelookup_time] => 0.000369
[connect_time] => 0
[pretransfer_time] => 0
[size_upload] => 0
[size_download] => 0
[speed_download] => 0
[speed_upload] => 0
[download_content_length] => -1
[upload_content_length] => -1
[starttransfer_time] => 0
[redirect_time] => 0
[redirect_url] =>
[primary_ip] =>
[certinfo] => Array
(
)
[primary_port] => 0
[local_ip] =>
[local_port] => 0
)
Connecting to FedEx (port 80)...
GOOD: Socket established
Connecting to PayPal IPN (port 443)...
GOOD: Socket established
GOOD: CURL Connection successful.
Connection Details:
Array
(
[url] => "http://www.paypal.com/cgi-bin/webscr"
[content_type] => text/html
[http_code] => 302
[header_size] => 1965
[request_size] => 212
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.992122
[namelookup_time] => 0.000322
[connect_time] => 0.013067
[pretransfer_time] => 0.013209
[size_upload] => 37
[size_download] => 26
[speed_download] => 26
[speed_upload] => 37
[download_content_length] => -1
[upload_content_length] => 37
[starttransfer_time] => 0.991956
[redirect_time] => 0
[redirect_url] => https://www.paypal.com/home
[primary_ip] => 23.43.241.28
[certinfo] => Array
(
)
[primary_port] => 80
[local_ip] => 74.220.219.94
[local_port] => 47353
)
Connecting to PayPal IPN (port 443) Sandbox ...
GOOD: Socket established
GOOD: CURL Connection successful.
Connection Details:
Array
(
[url] => "http://www.sandbox.paypal.com/cgi-bin/webscr"
[content_type] =>
[http_code] => 302
[header_size] => 122
[request_size] => 220
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.082943
[namelookup_time] => 0.00027
[connect_time] => 0.041508
[pretransfer_time] => 0.041611
[size_upload] => 37
[size_download] => 0
[speed_download] => 0
[speed_upload] => 451
[download_content_length] => 0
[upload_content_length] => 37
[starttransfer_time] => 0.082848
[redirect_time] => 0
[redirect_url] => https://www.sandbox.paypal.com/
[primary_ip] => 173.0.82.77
[certinfo] => Array
(
)
[primary_port] => 80
[local_ip] => 74.220.219.94
[local_port] => 53832
)
Connecting to PayPal Express/Pro Server ...
Error 28: Connection timed out after 5000 milliseconds
Connection Details:
Array
(
[url] => "http://api-3t.paypal.com/nvp"
[content_type] =>
[http_code] => 0
[header_size] => 0
[request_size] => 0
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 5.000025
[namelookup_time] => 0.000209
[connect_time] => 0
[pretransfer_time] => 0
[size_upload] => 0
[size_download] => 0
[speed_download] => 0
[speed_upload] => 0
[download_content_length] => -1
[upload_content_length] => -1
[starttransfer_time] => 0
[redirect_time] => 0
[redirect_url] =>
[primary_ip] =>
[certinfo] => Array
(
)
[primary_port] => 0
[local_ip] =>
[local_port] => 0
)
Connecting to PayPal Express/Pro Sandbox ...
Error 28: Connection timed out after 5000 milliseconds
Connection Details:
Array
(
[url] => "http://api-3t.sandbox.paypal.com/nvp"
[content_type] =>
[http_code] => 0
[header_size] => 0
[request_size] => 0
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 5.000076
[namelookup_time] => 0.0003
[connect_time] => 0
[pretransfer_time] => 0
[size_upload] => 0
[size_download] => 0
[speed_download] => 0
[speed_upload] => 0
[download_content_length] => -1
[upload_content_length] => -1
[starttransfer_time] => 0
[redirect_time] => 0
[redirect_url] =>
[primary_ip] =>
[certinfo] => Array
(
)
[primary_port] => 0
[local_ip] =>
[local_port] => 0
)
Connecting to PayPal Payflowpro Server ...
Error 28: Connection timed out after 5000 milliseconds
Connection Details:
Array
(
[url] => "http://payflowpro.paypal.com/transaction"
[content_type] =>
[http_code] => 0
[header_size] => 0
[request_size] => 0
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 5.000625
[namelookup_time] => 0.000278
[connect_time] => 0
[pretransfer_time] => 0
[size_upload] => 0
[size_download] => 0
[speed_download] => 0
[speed_upload] => 0
[download_content_length] => -1
[upload_content_length] => -1
[starttransfer_time] => 0
[redirect_time] => 0
[redirect_url] =>
[primary_ip] =>
[certinfo] => Array
(
)
[primary_port] => 0
[local_ip] =>
[local_port] => 0
)
Connecting to AuthorizeNet Production Server ...
Error 28: Connection timed out after 5006 milliseconds
Connection Details:
Array
(
[url] => "http://secure.authorize.net/gateway/transact.dll"
[content_type] =>
[http_code] => 0
[header_size] => 0
[request_size] => 0
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 5.006507
[namelookup_time] => 0.000296
[connect_time] => 0
[pretransfer_time] => 0
[size_upload] => 0
[size_download] => 0
[speed_download] => 0
[speed_upload] => 0
[download_content_length] => -1
[upload_content_length] => -1
[starttransfer_time] => 0
[redirect_time] => 0
[redirect_url] =>
[primary_ip] =>
[certinfo] => Array
(
)
[primary_port] => 0
[local_ip] =>
[local_port] => 0
)
Connecting to AuthorizeNet Developer/Sandbox Server ...
GOOD: CURL Connection successful.
Connection Details:
Array
(
[url] => "http://test.authorize.net/gateway/transact.dll"
[content_type] =>
[http_code] => 301
[header_size] => 194
[request_size] => 222
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.03976
[namelookup_time] => 0.000213
[connect_time] => 0.012866
[pretransfer_time] => 0.013579
[size_upload] => 37
[size_download] => 0
[speed_download] => 0
[speed_upload] => 948
[download_content_length] => 0
[upload_content_length] => 37
[starttransfer_time] => 0.039679
[redirect_time] => 0
[redirect_url] => https://test.authorize.net/gateway/transact.dll
[primary_ip] => 184.84.7.203
[certinfo] => Array
(
)
[primary_port] => 80
[local_ip] => 74.220.219.94
[local_port] => 32406
)
Connecting to First Data GGe4 server (SSL)...
GOOD: CURL Connection successful.
Connection Details:
Array
(
[url] => "http://checkout.globalgatewaye4.firstdata.com/payment"
[content_type] => text/html
[http_code] => 301
[header_size] => 401
[request_size] => 229
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.186081
[namelookup_time] => 0.000402
[connect_time] => 0.023088
[pretransfer_time] => 0.023226
[size_upload] => 37
[size_download] => 178
[speed_download] => 956
[speed_upload] => 198
[download_content_length] => 178
[upload_content_length] => 37
[starttransfer_time] => 0.185971
[redirect_time] => 0
[redirect_url] => https://checkout.globalgatewaye4.firstdata.com/payment
[primary_ip] => 198.41.221.130
[certinfo] => Array
(
)
[primary_port] => 80
[local_ip] => 74.220.219.94
[local_port] => 47848
)
Connecting to LinkPointAPI server (port 1129)...
Error 28: Operation timed out after 15005 milliseconds with 0 bytes received
Connection Details:
Array
(
[url] => "http://secure.linkpt.net/LSGSXML"
[content_type] =>
[http_code] => 0
[header_size] => 0
[request_size] => 213
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 15.005865
[namelookup_time] => 0.000543
[connect_time] => 0.039671
[pretransfer_time] => 0.040284
[size_upload] => 37
[size_download] => 0
[speed_download] => 0
[speed_upload] => 2
[download_content_length] => -1
[upload_content_length] => 37
[starttransfer_time] => 0
[redirect_time] => 0
[redirect_url] =>
[primary_ip] => 208.72.248.102
[certinfo] => Array
(
)
[primary_port] => 1129
[local_ip] => 74.220.219.94
[local_port] => 24275
)
Testing completed. See results above.
Re: Paypal shopping cart not working
ultimatepicklejar.com/zen-cart6/
I guess this would help
Re: Paypal shopping cart not working
Upgrade Zen Cart or if the host will support downgrade php version for starters. Zen Cart 1.5.4 was in no way ready for php 7.x...
Also/otherwise may be able to hobble through by obtaining the payment module software from the latest version of Zen Cart: includes/modules/payment is where the files are located with language files at includes/languages/english/modules/payment.
Re: Paypal shopping cart not working
I will start a new store to check and will also try the workaround on the old one for the time being and will post back here the results. Thanks much for help
Re: Paypal shopping cart not working
Re: Paypal shopping cart not working
Welllll.................
1st I downloaded the 1.5.6c package.................
I uploaded it all.
I did not change any permissions...........
I copied my old database to a new one and started the new store. I loved the format!
BUT nothing showed from old database.............
I tryed a lot of export formats before I got one to work.
I did not know how to add to the new database and finally used a format like this:\
-- MySQL dump 10.13 Distrib 5.6.41-84.1, for Linux (x86_64)
--
-- Host: localhost Database: xxxxxxxx-xxxxxxxx
-- ------------------------------------------------------
-- Server version 5.6.41-84.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `address_book`
--
DROP TABLE IF EXISTS `address_book`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `address_book` (
`address_book_id` int(11) NOT NULL AUTO_INCREMENT,
`customers_id` int(11) NOT NULL DEFAULT '0',
`entry_gender` char(1) NOT NULL DEFAULT '',
`entry_company` varchar(64) DEFAULT NULL,
`entry_firstname` varchar(32) NOT NULL DEFAULT '',
`entry_lastname` varchar(32) NOT NULL DEFAULT '',
`entry_street_address` varchar(64) NOT NULL DEFAULT '',
`entry_suburb` varchar(32) DEFAULT NULL,
`entry_postcode` varchar(10) NOT NULL DEFAULT '',
`entry_city` varchar(32) NOT NULL DEFAULT '',
`entry_state` varchar(32) DEFAULT NULL,
`entry_country_id` int(11) NOT NULL DEFAULT '0',
`entry_zone_id` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`address_book_id`),
KEY `idx_address_book_customers_id_zen` (`customers_id`)
) ENGINE=MyISAM AUTO_INCREMENT=734 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
=========== and it took! The rest was easy. It is getting easier to do upgrades now or I just got lucky!
I haven't tried installing Paypal yet. Im sure that is where my method will bite the dust.........
I still have to find logo and color template.
What will happen if I did not change permissions? I did change 2 at some point but not sure ifit was the last time I when I got the copied database to work...
https://ultimatepicklejar.com/New_St...=6&chapter=100
I have a regular progammer working on the original site but I love coding although I really bite at it. I had to re-do most of my templates a sthey werent coded right for the new site and used all those <div> things. I put them back to tables :) Servers probably hate me .
Im going to try to add the paypal express thing and Dynamic Price and The change customer password in admin addons.
Re: Paypal shopping cart not working
Did you run the database upgrade after pulling over the old store database? I didn't see that mentioned...
Re: Paypal shopping cart not working
The first time I did the install, it went straight to the admin area.
On a later time, it did say something about the database which scared me as it said it would more or less format it if I remember right.
I was pretty much committed so I followed the 2 or 3 steps and it
I got shipping and Paypal express working too.
I really don't like the responsive template when used on a small screen. It does not have a menu button at that point and is easy to become trapped and not move around the site.
Anyway, the problem was definitely needing to upgrade PHP for sure. I really appreciate the help and advice. I will try another install with another install and a pre-populated database and keep notes. I will wait for my old site to be fixed correctly by my regular maintence lady as I can not seem to add background image and color change for background! I added the code everywhere i could so no telling what is wrong now.
#logoWrapper {>>
width:760px;>>
height:110px;>>
background-image:url(../images/header_bg.jpg.???);>>
background-repeat:no-repeat;>>
If I can duplicate the next install I will post results and better document the install...............
In the meanwhile I thank yall for the comments and sharing of knowledge so very much. I would have liked to try the few page change suggestion but got scared with the live store and didnt have another 1.5.4 store set up.
Re: Paypal shopping cart not working
after you drop the "new" database and replace it with a copy of the "old" database you have to run the installer again, and you should be presented with the option to upgrade the database. There are changes to the database required otherwise thing will not work correclty with the newer code and you will have wasted your time.