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

xpayments Cron help please

 
Reply
   X-Cart forums > X-Payments > X-Payments issues & questions
 
Thread Tools
  #1  
Old 04-30-2012, 09:47 AM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default xpayments Cron help please

Hi all can anyone advise on setting up a cron job for xpayments, ive just had no luck with this, but not to sure if i am doing it correct.

I am setting up through cPanel and tried various lines and get errors -

/home/mysite/public_html/xcart/xpayments/cron.php: Permission denied

php /home/mysite/public_html/xcart/cron.php --key=xxxxxxxxxxxxxxxxxxxxxxxxxxxx

Ive just tried this line -

php /home/mysite/public_html/xcart/xpayments/cron.php

I didn't get an error as such but got this by email -
Content-type: text/html

I am obviously missing something or not doing something correct
can anyone advise on this please

Thanks
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #2  
Old 04-30-2012, 04:05 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: xpayments Cron help please

I don't think you need the key, unless something has changed on more recent versions. You may also need a full path for php. See: http://forum.x-cart.com/showthread.php?t=55339

---
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
  #3  
Old 04-30-2012, 04:40 PM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default Re: xpayments Cron help please

Hi i did look at the thread before but couldn't work the issue from it, must be something simple but i can't work it out....
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #4  
Old 05-05-2012, 10:41 AM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default Re: xpayments Cron help please

Just wondered if anyone is using xpayments and host with handson, would really appreciate help what to put in the cron job in cPanel

Also do i need to include anything in the cron.php in xpayments
also what permission...I just can't get this to work...please anyone simple reply thou
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #5  
Old 05-05-2012, 12:47 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: xpayments Cron help please

Are you certain that the cron is not executing?

Perhaps someone else can confirm - but if you set up the cron in cpanel, and you keep the option set to send you an email when the cron executes, you are going to receive an email that contains the output of the cron.

It has been a while since I set up X-payments - but I think the cron.php executes without an output.

So - when you get an empty email, I don't think that indicates that there has been an error, but is just telling you that the cron has completed execution. (Perhaps QT or others can confirm that xpayments cron runs without an output, so an empty email receipt indicates it executed normally.)

Another way for you to check that the cron is running: I think that when you log in to the X-Payments administration, if the cron has not run, it warns you.

If you are able to open X-Payments administration, and it is not warning you about any issues, that is a good sign. If you can execute a test payment from your shop where the connector is installed without any problems, that is another good sign that you have installed it correctly.

---
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
  #6  
Old 05-05-2012, 01:42 PM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default Re: xpayments Cron help please

Hi yes i am receiving emails which vary as i try new things, i keep logging into xpayments but the cron warning still remains.
Below are some of the emails ive received.

Content-type: text/html

home/mysite/public_html/xpayments/cron.php: line 1: ?php: No such file or directory
/home/mysite/public_html/xpayments/cron.php: line 2: //: is a directory
/home/mysite/public_html/xpayments/cron.php: line 4: /Z: is a directory
/home/mysite/public_html/xpayments/cron.php: line 5: access-logs: command not found
/home/gezawear/public_html/xpayments/cron.php: line 6: access-logs: command not found
/home/gezawear/public_html/xpayments/cron.php: line 7: access-logs: command not found
/home/mysite/public_html/xpayments/cron.php: line 8: access-logs: command not found
/home/mysite/public_html/xpayments/cron.php: line 9: access-logs: command not found
/home/mysite/public_html/xpayments/cron.php: line 10: syntax error near unexpected token `newline'
/home/mysite/public_html/xpayments/cron.php: line 10: ` * @author Creative Development LLC <info@cdev.ru>'

/bin/sh: /public_html/xpayments/cron.php: No such file or directory

To be honist ive never set a cron job up and just can't work it out, couldn't find info in the manual either as what to put in cPanel for this....
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #7  
Old 05-06-2012, 01:24 AM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default Re: xpayments Cron help please

On the the reply from hands on they gave this info -

php /home/gezawear/public_html/xcart/xpayments/cron.php

I put this into the cron job in cPanel and the email i received was this -

"Content-type: text/html"

But the warning still remains in xpayments, I have also set permissions to 755 hmmmmmmmm still not working..
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #8  
Old 05-06-2012, 09:50 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: xpayments Cron help please

You might have to try and get QT and Hands-on together to solve this. The email means you know that at least the cron.php started execution.

I reported the same issue to Hands-on last year - I asked them if there was a reference point of a successful implementation there that could be used as a basis of comparison. This was the situation last year - maybe they have a different answer now:

"I'm not aware of a running installation of X-Payments on our servers that I could look at for guidance, and none of the other techs I've spoken with have been able to get a copy running successfully."

I hacked up things to get the cron to run - but I am not confident that it is running correctly - so I would not want to offer any solution to you.

If you are able to use a shell and run the cron.php file, you will probably find that it executes correctly. Running the exact same command from the cron tab yields what you are reporting - I suspect it starts, but does not get to the end where it updates the x-payments database, so the warnings do not go away.

Since cron.php runs from the command line, but something seems off when run from a cron - there has to be some difference in the ownership, or something peculiar to how Hands-on server is set up. But since they do not have a successful implementation they can reference,it is hard to say what might be wrong. (I thought I was the only one with this issue.)

I don't think X-Payments software really fits in with the general statement that the recommended hosts are configured properly for X-Cart. I had many issues, some still unresolved, in the installation process.

---
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
  #9  
Old 05-07-2012, 06:39 AM
 
hooter hooter is offline
 

X-Adept
  
Join Date: Dec 2004
Posts: 519
 

Default Re: xpayments Cron help please

This problem arises because the xpayments cron.php expects to be run "implicitly" from the command-line. You need to adjust your cron command to use the php cli binary directly.

Here is an example cron that we have used that runs the xpayments cron without issue on at least a dozen CPANEL hosted client installations:
Code:
cd /home/username/public_html/xpayments;php-cli cron.php
Of course, change the above example folder path to suit your own installation.
__________________
Blog for X-Cart | Ebay Auction Manager
Reply With Quote

The following user thanks hooter for this useful post:
gb2world (05-07-2012)
  #10  
Old 05-07-2012, 10:27 AM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: xpayments Cron help please

Thanks, Hooter.

QT might want to add a note to the installation instructions about this.

---
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
Reply
   X-Cart forums > X-Payments > X-Payments issues & questions



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 03:52 PM.

   

 
X-Cart forums © 2001-2020