Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Payment_cc.php ERROR
 
Reply
   X-Cart forums > X-Payments > X-Payments issues & questions
 
Thread Tools
  #1  
Old 09-17-2012, 08:17 AM
  mcanitano's Avatar 
mcanitano mcanitano is offline
 

eXpert
  
Join Date: Feb 2006
Location: Melbourne, FL
Posts: 216
 

Default 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!
__________________
Marcello Canitano
New Site: X-Cart v4.5.5 GOLD
X-Cart Mobile v1.4.3
X-Payments v1.0.6
CDSEO Pro v2
Total Server Solutions xCDN

www.silverhorseracing.com
Reply With Quote
  #2  
Old 09-19-2012, 02:05 PM
  rubyaryat's Avatar 
rubyaryat rubyaryat is offline
 

eXpert
  
Join Date: Feb 2003
Location: Canada
Posts: 289
 

Default Re: Payment_cc.php ERROR

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

Rubyaryay
__________________
Rubymods.com - Your X-Cart services partner for over 9 years.
Modules offered: FedEx labels, Live currency rates, GeoIP, Order Audit, Multiple e-goods.
X-Cart Store Hosting, project management and affiliates program available.
4.2.3 gold [Unix]
Reply With Quote
  #3  
Old 09-19-2012, 03:34 PM
 
joss joss is offline
 

X-Cart team
  
Join Date: Feb 2009
Posts: 60
 

Default 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.
__________________
joss@x-cart.com
Reply With Quote
  #4  
Old 09-21-2012, 07:42 AM
  mcanitano's Avatar 
mcanitano mcanitano is offline
 

eXpert
  
Join Date: Feb 2006
Location: Melbourne, FL
Posts: 216
 

Default 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
__________________
Marcello Canitano
New Site: X-Cart v4.5.5 GOLD
X-Cart Mobile v1.4.3
X-Payments v1.0.6
CDSEO Pro v2
Total Server Solutions xCDN

www.silverhorseracing.com
Reply With Quote
  #5  
Old 09-21-2012, 07:52 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 13,539
 

Default 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
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
mcanitano (09-21-2012)
  #6  
Old 09-21-2012, 08:22 AM
  mcanitano's Avatar 
mcanitano mcanitano is offline
 

eXpert
  
Join Date: Feb 2006
Location: Melbourne, FL
Posts: 216
 

Default Re: Payment_cc.php ERROR

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)
Attached Images
File Type: png internalerror.PNG (8.2 KB, 3 views)
__________________
Marcello Canitano
New Site: X-Cart v4.5.5 GOLD
X-Cart Mobile v1.4.3
X-Payments v1.0.6
CDSEO Pro v2
Total Server Solutions xCDN

www.silverhorseracing.com
Reply With Quote
  #7  
Old 09-21-2012, 08:38 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 13,539
 

Default 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)
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #8  
Old 09-21-2012, 09:02 AM
  mcanitano's Avatar 
mcanitano mcanitano is offline
 

eXpert
  
Join Date: Feb 2006
Location: Melbourne, FL
Posts: 216
 

Default 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...
__________________
Marcello Canitano
New Site: X-Cart v4.5.5 GOLD
X-Cart Mobile v1.4.3
X-Payments v1.0.6
CDSEO Pro v2
Total Server Solutions xCDN

www.silverhorseracing.com
Reply With Quote
Reply
   X-Cart forums > X-Payments > X-Payments issues & questions


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 09:27 PM.

   

 
X-Cart forums © 2001-2018