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)
-   -   xpayments Cron help please (https://forum.x-cart.com/showthread.php?t=63478)

a1deano 06-07-2012 04:01 PM

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

gb2world 06-07-2012 05:48 PM

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.

---

a1deano 06-08-2012 01:16 AM

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

a1deano 06-10-2012 12:03 PM

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

qualiteam 06-11-2012 03:40 AM

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.

gb2world 06-11-2012 09:18 PM

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?

---

a1deano 06-12-2012 04:36 AM

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

qualiteam 06-13-2012 01:13 AM

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.

a1deano 06-13-2012 02:12 AM

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

qualiteam 06-13-2012 04:00 AM

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?


All times are GMT -8. The time now is 01:40 AM.

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