View Full Version : Ver 2.0 cron jobs
Mark Brookes
11-04-2006, 06:56 AM
Hi (Vincent?)
I am confused. In the Ver 2.0 cron folder there are several files:
check.php
header.inc.php
index.html
sponsored.php
what happened to the ver 1.2 files?
broken.php
reciprocal.php
pr.cgi
and pr.php
What should I do to start the link checking?
Also are there any updated instructions, or should I try to work it out from the previous guide.pdf.
Thanks
John Turner
11-15-2006, 05:14 AM
Hello Mark Brookes,
If you use V2.0 PRO, why you try to use files from v1.2 ?
For V2.0 you need just to adjust necessary settings in
Admin Panel » Configuration » Cronjob Configuration
Hope it helps.
Mark Brookes
11-15-2006, 08:57 AM
so does the ver2.0 check.php do the same job that in ver 1.2 needed broken.php and reciprocal.php and pr.cgi and and pr.php?
thanks
John Turner
11-15-2006, 09:29 AM
As I known, Yes it is.
Mark Brookes
11-16-2006, 11:25 AM
Hi John
I have tried installing the cron jobs but get the following error messages. I am not yet trying to run them as a cron, but testing them by involking check.php from the browesr address field. can you help?
Warning: main(/home/finespee/public_html/wedding-resources/cron/../../includes/config.inc.php) [function.main (http://www.finespeeches.com/wedding-resources/cron/function.main)]: failed to open stream: No such file or directory in /home/finespee/public_html/wedding-resources/cron/header.inc.php on line 18
Fatal error: main() [function.require (http://www.finespeeches.com/wedding-resources/cron/function.require)]: Failed opening required '/home/finespee/public_html/wedding-resources/cron/../../includes/config.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/finespee/public_html/wedding-resources/cron/header.inc.php on line 18
Vincent Wright
11-16-2006, 11:45 AM
Greetings Mark,
please open /cron/header.inc.php and remove one "../" from the both paths in require_once().
Mark Brookes
11-16-2006, 04:02 PM
Hi Vincent
Thank you for your help, I no longer get those error messages.
When I run check.php in the browser the status bar flashes the message "web site found. waitingfor reply" then it says "Done". This takes about 1 second even if I am supposed to be checking 10 links or 100 links.
However when I check in admin panel no links appear to have had their status updated.
So although there are no errors reported, nevertheless I don't appear to have the script working
help welcomed :)
John Turner
11-17-2006, 09:33 AM
Mark Brookes,
It should not display any information, because this file is used by CRON.
It task is to update table links with necessary information.
Have you got it?
Mark Brookes
11-17-2006, 10:04 AM
Mark Brookes,
It should not display any information, because this file is used by CRON.
It task is to update table links with necessary information.
Have you got it?
Hi John,
Thanks for your reply.
"When I check in admin panel no links appear to have had their status updated.
So although there are no errors reported, nevertheless I don't appear to have the script working"
I have also checked the 'last_check_date' in the links table in phpMyAdmin, and although I have browser-run check.php for more than 400 links, only about 5 have a date in them.
I think this indicates that I have a problem with check.php even before I add the complexities of Cron settings?
You have my access details please feel free to have a look.
Is it possibly anything to do with the fact that the data for most links in last_check_date is Zero rather than Null? I think this happened automatically when I imported my links details.
If so how can I change this?
regards
Mark
John Turner
11-17-2006, 11:03 AM
Open '../cron/check.php'
***find following code
$check_interval = (int)$settings['check_interval'];
$check_interval = empty($check_interval) ? 7 : $check_interval;
***replace it with following code
$check_interval = (int)$settings['cron_check_interval'];
$check_interval = empty($check_interval) ? 7 : $check_interval;
Hope it helps.
Mark Brookes
11-17-2006, 11:44 AM
Hi John I have tried this, and sadly it makes no difference that I can see.
I am still wondering about all the zero values in last_check_date instead of null values which appear when new links are added. Do I need to change them to Null Values? if so how?
Thanks
Mark
Mark Brookes
11-17-2006, 12:03 PM
Hi John
I had a bright idea, and found some SQL code that Vincent sent me when I was testing ver1.2 cron jobs.
With it I have changed the last_check-Date to Null and the check.php does seem to be running. as the dates in that field are now being updated.
I will let you know how it goes.
At the moment it seems to be working on the broken test, and I hope it will get to the Google PR & reciprocal when it finishes.
Mark Brookes
11-17-2006, 01:38 PM
Hello John
It seems that the broken link checks are now working. However Pagerank & Reciprocal do not appear to be working.
in phpMyAdmin > _links:
every pagerank value = -1
and every revip_value = 0
can you advise please?
regards
Mark
Mark Brookes
11-19-2006, 11:09 AM
Greetings Mark,
please open /cron/header.inc.php and remove one "../" from the both paths in require_once().
Hi Vincent,
For information:
is this correction just needed for me & my installation, or does everyone need it?
regards
Mark
Mark Brookes
11-19-2006, 11:51 AM
Open '../cron/check.php'
***find following code
$check_interval = (int)$settings['check_interval'];
$check_interval = empty($check_interval) ? 7 : $check_interval;
***replace it with following code
$check_interval = (int)$settings['cron_check_interval'];
$check_interval = empty($check_interval) ? 7 : $check_interval;
Hope it helps.
Hi John,
For information:
is this correction just needed for me & my installation, or does everyone need it?
regards
Mark
Mark Brookes
11-21-2006, 02:01 PM
Results of above code change:
Since 19th Nov - this change did not appear to have an effect, however today, I note that some reciprocal link checks are being performed. SO in due course all links in my directory should be checked for recip-links.
However pagerank checks ALL result in -1 in the links table. A check does appear to be performed, but no pagerank values (except -1) are recorded.
Has anyone else experienced this?
Does anyone know a solution?
regards
MArk
Mark Brookes
11-21-2006, 03:13 PM
Following from the above - I am wondering if there is some path setting that is wrong, because my server's error log says
"[Tue Nov 21 08:10:55 2006] [error] [client xx.xx.xx.xx] script not found or unable to stat: /home/xxxx/public_html/cgi-bin/checksum.cgi"
but the checksum.cgi program is in folder:
/home/xxxx/public_html/wedding-resources/cgi-bin/checksum.cgi
any ideas?
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.