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
  #21  
Old 06-07-2012, 04:01 PM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default Re: xpayments Cron help please

Looks like what my host done didn't fix the problem same email again....Alex i tried what you said above and the email i received was this -

X-Powered-By: PHP/5.3.10
Content-type: text/html

But this error is still present in back end of xpayments

The cron.php script execution error
The cron.php script was launched more than 24 hours ago. It is recommended to run cron.php once every 24 hours, otherwise the PCI DSS requirements for protecting cardholder data might not be met. Please check the cron.php launch settings.

Just at a total loss on this one, Alex i could do with some help with this please.....Thanks
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #22  
Old 06-07-2012, 05:48 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

Have you tried what Hooter told you in post #9? Alex's suggestion uses php instead of php-cli, which we have already established, does not work for you.

I have the cron running on a VPS at Hands on. I don't use the path in the cron tab, as Hooter recommend, but I think it should work. Instead, I changed the path to the include file in the cron.php script to have a full path instead of a relative path. The people at Hands-on should be able to sort this for you now - they told you it executes without error.

---
__________________
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
  #23  
Old 06-08-2012, 01:16 AM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default Re: xpayments Cron help please

Hi thanks yes i did try what hooter put

Handson created a php.ini file inside of the xpayments directory with the following
include_path="/home/mysite/public_html/xpayments/"

They also said - we added php-cli to your path and it is now available to your user account

When i use hooters code i get this email -

X-Powered-By: PHP/5.3.10
Content-type: text/html

but the error message in xpayments back end is still there..

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

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #24  
Old 06-10-2012, 12:03 PM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default Re: xpayments Cron help please

Hi well problem still exists Handson having been working hard trying to sort this for me, the latest thing was -

Hi Dean,

We have modified the permissions on the shell script, as well as hard coded the location of php-cli into the script.

But still the error in back end remains

They also tried this -

I have setup a shell script with the following inside,
cd /home/gezcheck/public_html/xpayments;
php-cli cron.php

and set it to execute via crontab.
this method does work without an issue from the cli as your user, so it shouldnt have a problem executing as a cron.

after 24hours the error came back.....QT any help on this please
Handson setup this command on the cron -
sh /home/mysite/cron.sh


Many thanks
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #25  
Old 06-11-2012, 03:40 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: xpayments Cron help please

If I understand you correctly you setup shell script per #20. Am I right? Please provide me with the exact error message you get on the cron job.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #26  
Old 06-11-2012, 09:18 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

If it helps - you can have the engineer at Hands-On contact me and I can let them know where I have an x-payments cron running which they can use as a basis for comparison.

I could be wrong - but I seem to remember that if you modify or add files to X-Payments, that there is a procedure within X-Payments that detects the change, and you have to approve it. If true - then when the Hands-on engineer changes files in X-Payments, you have to make sure you go back into X-Payments and allow the changed files to take effect. Maybe this is part of the problem?

---
__________________
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
  #27  
Old 06-12-2012, 04:36 AM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default Re: xpayments Cron help please

Quote:
Originally Posted by qualiteam
If I understand you correctly you setup shell script per #20. Am I right? Please provide me with the exact error message you get on the cron job.

I receive email with this -

/bin/sh: php-cli: command not found


Hi gb2world yes you do get an allow change link in xpayments back end if you modify something i got this when doing the checkout page, but don't receive anything else so presume everything is ok...i will forward your message onto Handson asking them to contact you.....thanks for your help...

Handson emailed me this -

Hi Dean,

With the 1H systems we use here, we have multiple different PHP versions available. Checking out the threads at X-cart.com directly, I see PHP 5.3 should be specifically used. I have changed the cronjob to:

cd /home/mysite/public_html/xpayments;/usr/local/php53/bin/php-cli cron.php

At the moment I am not receiving any error outputs from this. I did change it to 5 minutes and it ran several times without producing errors, so I've set it back to once per day.

The status code when exiting from this command is 110 though, and we would normally see a status 0 for a successful execution of any PHP script. This 110 code is present from even the root level with PHP and php-cli, so this doesn't seem like a specific account related issue. You may want to double check your config.php settings also.

Please let us know how this goes.
------

I am not receiving any error emails but the error remains in xpayments back end.
I presume if there was a problem with config.ini.php then i would be having more problems than just the error in the backend..


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

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #28  
Old 06-13-2012, 01:13 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: xpayments Cron help please

Quote:
Originally Posted by a1deano
I receive email with this -

/bin/sh: php-cli: command not found
....

Handson emailed me this -

Hi Dean,

With the 1H systems we use here, we have multiple different PHP versions available. Checking out the threads at X-cart.com directly, I see PHP 5.3 should be specifically used. I have changed the cronjob to:

cd /home/mysite/public_html/xpayments;/usr/local/php53/bin/php-cli cron.php

....

I am not receiving any error emails but the error remains in xpayments back end.
I presume if there was a problem with config.ini.php then i would be having more problems than just the error in the backend..


Thanks Dean

OK, I see. The issue was due to incorrect php-cli reference in the cron job command. The command itself (#20) works.

So, as far as I understand, the cron job works fine at the moment. Thus, could you please clarify what exactly the error appears in the XP admin back-end.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #29  
Old 06-13-2012, 02:12 AM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default Re: xpayments Cron help please

Hi Alex

Thanks for your help the error message in xpayments backend is -

The cron.php script execution error
The cron.php script was launched more than 24 hours ago. It is recommended to run cron.php once every 24 hours, otherwise the PCI DSS requirements for protecting cardholder data might not be met. Please check the cron.php launch settings.


The code handon have put in the cron is -
cd /home/mysite/public_html/xpayments;/usr/local/php53/bin/php-cli cron.php

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

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #30  
Old 06-13-2012, 04:00 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: xpayments Cron help please

Please check the "<xp_dir>/var/log/cron/DATE/errors.xxxx.log" file. Do you see any errors around the cron.php launch time there?
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
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 11:59 AM.

   

 
X-Cart forums © 2001-2020