|
Author |
Thread Statistics | Show CCP posts - 1 post(s) |
PryMary
|
Posted - 2011.02.21 17:04:00 -
[1]
Hey FG,
Love the tracker!! Just one issue: Cron Job of -> poscron.sh
I have this error when the Cron run's: Fatal error: Call to undefined function ADONewConnection() in /xxx/xxxx/unpredictablecarnage.com/pos/includes/dbfunctions.php on line 71
Is there any way to fix this so the POS info can be automagically updated? the other Cron job's run without error's just this one which seems strange
TY for an excellent web app
|
PryMary
|
Posted - 2011.02.21 23:04:00 -
[2]
Well that's what's so strange I have PHP 5 enabled on the server as EDK 3.1.8 requires that also. I have just looked at the postrackercron.sh too see if I have done something different but it is all correct, so I still find it a bit of a mystery as to why the poscron.sh doesn't work.
The only thing that is different between:
cron_updatesov.php & cron_updatealliance.php vs. cron_updatepos.php
Is the final line:
$results=$posmgmt->API_UPDATEAllPOSES();
Should that not be: $posmgmt->API_UPDATEAllPOSES(); ?
|
PryMary
|
Posted - 2011.02.22 09:38:00 -
[3]
Originally by: EVEVERIFY Cashier from your shell, type /usr/bin/php -v to see what version it outputs, assuming linux.
When i type the above i get no directory or file found.
Let's look at this from another perspective... If the other cronjobs run fine without errors then its not PHP5 related as they would be producing the same error's correct?
Well they are not, it is only 1 cronjob = poscron.sh
that is not working. So there must either a) be something wrong with poscron.sh or b) be something wrong with cron_updatepos.php
I have PHP 5 as detailed: PHP Info
So to re-iterate: All POS Tracker cron jobs (except poscron.sh / cron_updatepos.php) work
Help....
|
PryMary
|
Posted - 2011.02.22 14:14:00 -
[4]
ok this is getting annoying now, I may have to just contact the service provider as this is the errors i get when trying to do as directed:
[ps34755]$ /usr/bin/local/php -v -bash: /usr/bin/local/php: No such file or directory [ps34755]$ /usr/bin/php -v -bash: /usr/bin/php: No such file or directory
The host im with is Dreamhost so iono if anyone has this hoster and if they can help provide some insight as to why this doesn't exist.
|
PryMary
|
Posted - 2011.02.22 14:48:00 -
[5]
OK I have made those changes, will wait for the cron to run and post the results here from what i get via the email...
I do hope this works as this sorta thing confuses the hell out of me!
TYVM for your support though FG & Johnathan
♥
|
PryMary
|
Posted - 2011.02.23 14:13:00 -
[6]
Well neither of them work now, so I am going to use the ones I had set-up, and just have to manually update the pos every information everyday.
See below for changed .sh files errors:
poscron.sh:
/home/username/unpredictablecarnage.com/pos/poscron.sh: line 4: cd: /usr/local/php5/bin/php: Not a directory
Fatal error: Call to undefined function ADONewConnection() in /home/username/unpredictablecarnage.com/pos/includes/dbfunctions.php on line 71
postrackercron.sh:
/home/username/unpredictablecarnage.com/pos/postrackercron.sh: line 3: cd: /usr/local/php5/bin/php: Not a directory /home/username/unpredictablecarnage.com/pos/postrackercron.sh: line 5: cd: /usr/local/php5/bin/php: Not a directory /home/username/unpredictablecarnage.com/pos/postrackercron.sh: line 6: cd: /usr/local/php5/bin/php: Not a directory
At least before hand the postrackercron.sh worked lol now I am gonna have to remember what I used to make it work and wait a further 24 hours to make sure this is so damn LOL why can't these things be simple
|
PryMary
|
Posted - 2011.02.23 16:22:00 -
[7]
Hey FG,
OK a bit of progress;
X-Powered-By: PHP/5.2.15 Content-type: text/html
# $Id: poscron.sh 81 2010-08-12 02:49:35Z frozenice2525 $ #cd ~/home/username/unpredictablecarnage.com/pos/ cd /home/username/unpredictablecarnage.com/pos/ #/home/username/php5/bin/php mail.php cd /home/username/unpredictablecarnage.com/pos/cron_updatepos.php
The above is what I get from the mail Dreamhost sends me on execution of a cronjob, now it is using PHP5 but it is still not updating the POS information, I have it set to 1 hour per run. It is not giving me any errors as seen from above so what could be wrong
|
|
|
|