X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   X-Payments issues & questions (https://forum.x-cart.com/forumdisplay.php?f=50)
-   -   X-payments problem after server change (https://forum.x-cart.com/showthread.php?t=76948)

joestern 05-03-2019 01:12 PM

X-payments problem after server change
 
We migrated to a new server with PHP 7.3 and other updates.

Whenever we try to process an order, we get 'Error: The card information entered is not valid. Please check and try again.'

This is happening on version 3.1.4 and 3.1.5.

It looks like the Luhn calculation is failing every time even with valid card numbers?

Do you have any suggestions as to what server settings we might look to to determine why this problem occurs?

joestern 05-03-2019 02:20 PM

Re: X-payments problem after server change
 
OK - I think I can get past the problem by basically disabling the Luhn calculation/verification.

By following the error logs, I got to "lib/XPay/VSNode/StringRegExp.php file (67:preg_match)" and basically can get past the problem by just removing the exclamation point (!) in that line.

As best I can tell, PHP 7.3 changes the behavior of preg_match a bit, and while I don't know how to trace the test backwards, I think that the formatting of the test is the issue here.

ambal 05-05-2019 08:26 PM

Re: X-payments problem after server change
 
Hi Jeff,

X-Payments 3.x has not been adapted for PHP7.3 yet.

joestern 05-06-2019 09:23 AM

Re: X-payments problem after server change
 
Quote:

Originally Posted by ambal
Hi Jeff,

X-Payments 3.x has not been adapted for PHP7.3 yet.


What is the latest version of PHP that is compatible with X-Payments 3.x?

ambal 05-06-2019 11:58 PM

Re: X-payments problem after server change
 
v7.2.x

https://www.x-payments.com/help/X-Payments:System_requirements_for_X-Payments_3

Quote:

Originally Posted by joestern
What is the latest version of PHP that is compatible with X-Payments 3.x?


joestern 09-17-2019 12:35 PM

Re: X-payments problem after server change
 
We just received a message from x-cart that says:

"Multiple severe vulnerabilities (https://www.cisecurity.org/advisory/multiple-vulnerabilities-in-php-could-allow-for-arbitrary-code-execution_2019-087) have been discovered in all supported PHP branches.

Most of the hosting companies have already upgraded their servers to PHP7.3.9 and some of them are still in the process.

We can patch it up for you, but first we have to examine your store to figure out which way. Please contact us for the details."

How do we upgrade to PHP7.3.9 if x-payments is not compatible with php7.3?!

cflsystems 09-17-2019 04:03 PM

Re: X-payments problem after server change
 
Quote:

Originally Posted by joestern
How do we upgrade to PHP7.3.9 if x-payments is not compatible with php7.3?!

That's funny :lol:

ambal 09-18-2019 01:14 AM

Re: X-payments problem after server change
 
Quote:

Originally Posted by joestern
We just received a message from x-cart that says:

"Multiple severe vulnerabilities (https://www.cisecurity.org/advisory/multiple-vulnerabilities-in-php-could-allow-for-arbitrary-code-execution_2019-087) have been discovered in all supported PHP branches.

Most of the hosting companies have already upgraded their servers to PHP7.3.9 and some of them are still in the process.

We can patch it up for you, but first we have to examine your store to figure out which way. Please contact us for the details."

How do we upgrade to PHP7.3.9 if x-payments is not compatible with php7.3?!


Actually, you do not have to upgrade to the latest PHP 7.3.x. Upgrading to latest PHP 7.2.x is acceptable solution, too.
i.e.
---
SYSTEMS AFFECTED:

PHP 7.2 versions prior to 7.2.22
---

means you can upgrade to PHP 7.2.22 to have fixes applied.

vulcan-works 01-27-2020 07:12 PM

Re: X-payments problem after server change
 
I'm on the newest version of xpayments (3.1.6) and still getting the same preg_match error as the other user here.
7.3 has been out for over a year now, when is this going to be fixed?

Code:

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4
Backtrace:
  lib/XPay/VSNode/StringRegExp.php file (67:)
  lib/XPay/VSNode/StringRegExp.php file (67:preg_match)
  lib/XPay/VSNode/Base/Array.php file (120:validate)
  lib/XPay/VSNode/ArrayKeyString.php file (40:validate)
  lib/XPay/VSNode/Base/Array.php file (120:validate)
  lib/XPay/VSNode/ArrayKeyString.php file (40:validate)
  lib/XPay/Transport/ValidationSchema.php file (99:validate)
  lib/XPay/Transport/Request.php file (219:validate)
  lib/XPay/Core/Handler.php file (381:getData)
  lib/XPay/Core/Handler.php file (141:revalidateData)
  lib/XPay/Core/Handler.php file (475:validateData)
  lib/XPay/Core/Dispatcher.php file (118:__construct)
  lib/XPay/Application.php file (176:dispatch)
  payment.php file (18:run)



All times are GMT -8. The time now is 09:05 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.