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)
-   -   Payment_cc.php ERROR (https://forum.x-cart.com/showthread.php?t=64871)

mcanitano 09-17-2012 08:17 AM

Payment_cc.php ERROR
 
I installed X-Payments and set it up yesterday, I was trying to use OPC with the new iFrame integration, but it had errors and I don't like how it turned out so we switched to FLC.

I noticed while using both FLC and OPC and submitting an order, the payment_cc.php file was corrupt or something. I am getting a 500 Error (internal error) when submitting an order:

"Server error
The website encountered an error while retrieving https://MYDOMAIN.com/payment/payment_cc.php. It may be down for maintenance or configured incorrectly."

Any one else experience this or know how to fix this problem? This is currently a new web site I am trying to release and this is the only problem we have left before we release it. And since payment is a big part of the website, it has to wait..ha!

rubyaryat 09-19-2012 02:05 PM

Re: Payment_cc.php ERROR
 
Check that the permissions and ownership of payment_cc.php are correct.
Permissions should be 644.

Rubyaryay

joss 09-19-2012 03:34 PM

Re: Payment_cc.php ERROR
 
Check X-Cart PHP error logs, if the issue is caused by the PHP fatal error, it should be saved in logs.

The files where PHP errors are gathered are of the following format:

- <xcart-dir>/var/log/x-errors_php-YYMMDD.php

where YYMMDD is the date.

mcanitano 09-21-2012 07:42 AM

Re: Payment_cc.php ERROR
 
I keep seeing the error

Code:

[21-Sep-2012 15:38:19 UTC] PHP Fatal error:  Cannot redeclare func_store_advinfo() (previously declared in /path/to/xcart/modules/XPayments_Connector/xpc_func.php:94) in /path/to/xcart/include/func/func.order.php on line 3596

cflsystems 09-21-2012 07:52 AM

Re: Payment_cc.php ERROR
 
You have this function declared twice - in xpc_func.php and func.order.php. Compare both and if they are exactly the same probably keep the one in func.order.php, comment out in the other file. You may also need to report this in the bugtracker so QT can look in to it

mcanitano 09-21-2012 08:22 AM

Re: Payment_cc.php ERROR
 
1 Attachment(s)
Quote:

Originally Posted by cflsystems
You have this function declared twice - in xpc_func.php and func.order.php. Compare both and if they are exactly the same probably keep the one in func.order.php, comment out in the other file. You may also need to report this in the bugtracker so QT can look in to it


Thanks, it is working somewhat, I can at least do payments with Paypal and other methods, but now X-Payments will not work, I am working on the configuration of it but it seems to be correct, and I'm getting an internal error after I click submit after entering credit card information.

And looked through my error log files to find this

Code:


ERROR [2012-21-09 12:17:08]
User: unknown; IP: **.**.***.***
Zone: Core
Code: NONSECURE_PROTOCOL (237)
X-Payments is using a non-secure protocol

Affected systems: Core/Defender.php file (60:assert); Application.php file (133:check); /path/to/xcart/payment.php file (26:run)


cflsystems 09-21-2012 08:38 AM

Re: Payment_cc.php ERROR
 
Does your X-Payments uses SSL connection - https://....
X-Payments will not work on non-secure connection (you can change that in its config file but not recommended at all)

mcanitano 09-21-2012 09:02 AM

Re: Payment_cc.php ERROR
 
Yes we have SSL on our server and I am getting a green bar during checkout so the SSL works, I think it is the cron.php script needing to run every 24 hours, I am currently working on getting that to run with my server client.

Now I ran into another problem when clicking "Checkout" (url: https://www.MYDOMAIN.com/xcart/cart.php?mode=checkout) on the home page and looked in my error log files to find:

Code:

[21-Sep-2012 17:00:10 UTC] PHP Fatal error:  Call to undefined function func_is_addresses_different() in /path/to/xcart/include/register.php on line 1652

EDIT: Got the cron.php to run.
I think I found a solution to the problem above, the function should be "func_is_adresses_different()" I found that QT made a typo and didn't add two d's to addresses...


All times are GMT -8. The time now is 07:21 AM.

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