Zen Cart Logo
Forums / PayPal Website Payments Pro support / Error message when going to payment page

Error message when going to payment page

Locked

Views: 8,063

Results 1 to 20 of 28
This thread is locked. New replies are disabled.
4 Jan 2008, 3:38 PM
#1
shadoh avatar

shadoh

New Zenner

Join Date:
Dec 2007
Posts:
39
Plugin Contributions:
0

Error message when going to payment page

Okay, I tried integrating PayPal Express Checkout before buying Website Payments Pro, but I was getting this error message. I figured I had to upgrade to WPP, so I did, but I'm still getting this error message:

(18) transfer closed with -1 bytes remaining to read

That's the message I get emailed with the subject "ALERT: PayPal Express Checkout Error ()".

User is in their cart, on my checkout page, selects PayPal Express Checkout as their payment method, and when they click Submit (I assume this is where they should be taken to PayPal's page), they get that error. Actually, it looks like this on my site:

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. () - (18) transfer closed with -1 bytes remaining to read

I've copied and pasted all of my API information (username, password, signature) and I've double and triple checked it and I know I've that part correctly (I've re-copied and re-pasted it to make absolutely sure).

I've installed Payments Pro on my site as well, and using the credit card form directly on my site yields the same error message. :( HELP!!

4 Jan 2008, 9:02 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Error message when going to payment page

That's a CURL error coming from your webserver.
It has nothing to do with your PayPal account.

Please post a link to the /extras/curltest.php file on your server.

4 Jan 2008, 10:27 PM
#5
shadoh avatar

shadoh

New Zenner

Join Date:
Dec 2007
Posts:
39
Plugin Contributions:
0

Re: Error message when going to payment page

My hosting company is I-Dentity (http://www.i-dentity.com/).

Here is the cURL info based on what the server info page on Zen Cart says:

CURL support enabled
CURL Information libcurl/7.10.5 OpenSSL/0.9.7c zlib/1.1.3

If my version is insufficient, how would I go about having my hosting company update it? If they can't or won't, what are my alternatives?

4 Jan 2008, 10:46 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Error message when going to payment page

It seems it needs to be using libcurl/7.15.1 or newer.

I suggest you point them to the article about it and ask them to upgrade it.

If they won't, there are several recommended Zen-Cart-friendly hosting companies on the "hosting" page ... see the link at the top of this screen.

4 Jan 2008, 10:48 PM
#7
shadoh avatar

shadoh

New Zenner

Join Date:
Dec 2007
Posts:
39
Plugin Contributions:
0

Re: Error message when going to payment page

Okay... thank you for the information and recommendations. I've opened a ticket with my hosting company. I hope they are willing to assist!

15 Jan 2008, 8:23 PM
#8
shadoh avatar

shadoh

New Zenner

Join Date:
Dec 2007
Posts:
39
Plugin Contributions:
0

Re: Error message when going to payment page

Hey, Doc. Hope you're still monitoring this thread!

My hosting company upgraded curl on my box (after I politely suggested I might have to look elsewhere if they didn't). They have apparently implemented it, and in fact, if I type "curl -V" at a command prompt, I get:

curl 7.15.4 (i686-pc-linux-gnu) libcurl/7.15.4 zlib/1.1.3
Protocols: tftp ftp telnet dict ldap http file
Features: Largefile libz

HOWEVER, when I am in Zen Cart admin, and I go to the server info page, it still shows the version of curl that was previously installed. Is there an option or something I need to do inside of ZC? Do I have to do some sort of restart within the console?

15 Jan 2008, 8:58 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Error message when going to payment page

Hmmm ... I'm not sure exactly.
They might have to restart apache for the curl version details to be reflected in PHP info.

17 Jan 2008, 1:51 AM
#10
shadoh avatar

shadoh

New Zenner

Join Date:
Dec 2007
Posts:
39
Plugin Contributions:
0

Re: Error message when going to payment page

They've restarted apache, and my ZC console still shows the previous version. :( Any other ideas?

17 Jan 2008, 3:43 AM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Error message when going to payment page

shadoh:

They've restarted apache, and my ZC console still shows the previous version. :( Any other ideas?

What are they saying about the inconsistency?

I suspect that if they didn't recompile PHP with CURL and SSL support as part of the upgrade you said they did, then PHP isn't going to benefit from the update.

17 Jan 2008, 3:03 PM
#12
shadoh avatar

shadoh

New Zenner

Join Date:
Dec 2007
Posts:
39
Plugin Contributions:
0

Re: Error message when going to payment page

Their original response to indicate they had completed the upgrade reads:

We have completed your request:

plus24:~/curlsrc/src/curl-7.15.4# /usr/local/bin/curl --version
curl 7.15.4 (i686-pc-linux-gnu) libcurl/7.15.4 zlib/1.1.3
Protocols: tftp ftp telnet dict ldap http file
Features: Largefile libz
When I asked them to re-start apache, their response was:

Apache has been restarted. Please check your console now.

I will pass along what you've stated about re-compiling PHP and see what they say. Thanks, Dr.

17 Jan 2008, 3:30 PM
#13
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Error message when going to payment page

The output of the command tells you exactly where the problem is and it is as described by DrByte. Looks like they installed the new cURL from source but neglected to compile it within PHP. Restarting Apache won't change anything.

A proper install looks something like this:

/usr/bin/curl --version (path varies from Server to Server)
curl 7.15.3 (i686-pc-linux-gnu) libcurl/7.15.3 OpenSSL/0.9.7a zlib/1.1.4
Protocols: tftp ftp telnet dict ldap http file https ftps
Features: Largefile NTLM SSL libz

It is the mention of "OpenSSL" which is the tip-off, that PHP is compiled with cURL support. Without the SSL you'll have all kinds of payment problems such as you are now.

17 Jan 2008, 3:36 PM
#14
shadoh avatar

shadoh

New Zenner

Join Date:
Dec 2007
Posts:
39
Plugin Contributions:
0

Re: Error message when going to payment page

Thank you, WS Rob! I'll pass that info along and hopefully get them to fix it! :hopeful:

22 Jan 2008, 1:26 PM
#15
shadoh avatar

shadoh

New Zenner

Join Date:
Dec 2007
Posts:
39
Plugin Contributions:
0

Re: Error message when going to payment page

I am so annoyed.

It seems like they FINALLY got it done last night:

curl 7.15.4 (i686-pc-linux-gnu) libcurl/7.15.4 OpenSSL/0.9.7i zlib/1.1.3
Protocols: tftp ftp telnet dict ldap http file https ftps
Features: Largefile NTLM SSL libz

However, whatever it is they did messed up my entire ZC site. I can browse to any of my non-Zen pages. However, when I go to the root of my ZC, I get a blank page. If I view source on that page, this is all that is there:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>

If I browse to my ZC admin page, I get this:

Fatal error: Call to undefined function: zen_get_languages() in /home/www/justclickplay/candles/admin/index.php on line 25

If I go through the ZC install screen, I get errors (click here for screenshot).

What did they screw up now? :censored:

22 Jan 2008, 2:00 PM
#16
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Error message when going to payment page

When you say "non Zen pages" do you mean any page that is not a 'php' file?

Can you run this code, create new page and upload if need be:

<?php phpinfo(); ?>

Call it 'test.php' and see what happens when you load into your Browser.

22 Jan 2008, 2:02 PM
#17
shadoh avatar

shadoh

New Zenner

Join Date:
Dec 2007
Posts:
39
Plugin Contributions:
0

Re: Error message when going to payment page

That is correct. I have my main site at http://justclickplay.net/ and that works (as well as if I directly browse to any file on my site) but going to my Zen Cart site (http://justclickplay.net/candles) brings up a blank page. Going to my admin page (justclickplay.net/candles/admin) brings up an error (I will change the admin site name after this is all resolved), and going to my test ZC install also gives an error (http://justclickplay.net/zencart).

Here's the test file you asked for:
http://justclickplay.net/test.php

22 Jan 2008, 2:21 PM
#18
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Error message when going to payment page

Looks like now you have a database problem, but mySQL is not my strong point. You could try using your Control Panel or phpMyAdmin to Check/Correct your database, it might help. Perhaps DrByte or someone else more knowledgeable will provide a better answer.

BTW, at the end of today you should delete that 'test.php' page. That will give anyone else trying to help, a chance to have a look. Not a good idea though, to have the Server PHP settings available to the public. They don't need to know.

22 Jan 2008, 2:41 PM
#19
shadoh avatar

shadoh

New Zenner

Join Date:
Dec 2007
Posts:
39
Plugin Contributions:
0

Re: Error message when going to payment page

Thanks for looking into it. If it is mySQL, it must be something they did, because I've not made any changes for days. I checked the site last night (to check for new orders) and it was working okay. I discovered the issues when I logged in this morning to check if they had done the curl/php recompile.

I appreciate all the assistance you all provide. I'm going to need yet more help from you all. My hosting provider isn't being very helpful (as you can tell by all the messages and the age of this thread), and what little I know about PHP, I know even less about SQL / mySQL. I am so mad / frustrated. If these issues don't get resolved VERY soon, I am definitely switching providers.

And, after all of this, I am definitely making a monetary contribution to the Zen project!

22 Jan 2008, 4:05 PM
#20
shadoh avatar

shadoh

New Zenner

Join Date:
Dec 2007
Posts:
39
Plugin Contributions:
0

Re: Error message when going to payment page

Update for anyone out there who is helping me in troubleshooting my problems: so that my customers don't get a bad page that they don't understand, I've renamed index.php to site.php and created a temporary index.html to let customers know we are having technical difficulties. In the meantime, you can access what (would be) my normal index.php via http://justclickplay.net/site.php