View Full Version : Cron Reciprocal Error
sdawkins
09-12-2006, 04:14 PM
Vincent,
I received this error today????
Cron started on Sep 12, 2006 10:06 AM -------------------------------------
Fatal error: Call to undefined function: getkeyvalue() in /home/xxxxxxx/public_html/cron/reciprocal.php on line 22
Vincent Wright
09-12-2006, 04:25 PM
Ah, this has been reported several times: you either did not add this function as described in the guide, or you added it in the wrong place.
Ok, tommorow I will take a look at your files (I'm posting from home -- don't have your credentials here).
sdawkins
09-12-2006, 04:30 PM
This is the new directory. Hmmm......
Vincent Wright
09-12-2006, 04:33 PM
Well, I don't remember...
Did I send you the new cron package that includes detailed instructions in PDF format. If yes you can find some info there. If not, let me know and I will send you the package.
sdawkins
09-12-2006, 04:48 PM
Yes, you did. I used that (but didn't read it as I assumed I knew what I was doing....lol) -- could running the sql file and then the update file cause this error?
Vincent Wright
09-12-2006, 05:00 PM
... could running the sql file and then the update file cause this error?
No, don't think so. You should have added this function to classes/Dir.php
sdawkins
09-12-2006, 05:01 PM
ok, I didn't do that......woopsies.....
Vincent Wright
09-12-2006, 05:05 PM
So... do it....
A minor note: add the function within class definition, like this:
class eSyndiCat
{
// other functions here
// ...
function getKeyValue()
{
// function body here
}
}
?>
Some customers added this function OUTSIDE the class definition, right before the closing ?> The result: crons were not working.
sdawkins
09-12-2006, 05:10 PM
? I think it is working now -- at least when I ran it I did not get the error.
This is how it looks for me -- did I do it correctly?
* Prints out block with error
*/
function printError($aError)
{
echo $aError;
}
function &getKeyValue($query)
{
$out = array ();
$res =& $this->query($query);
while ($row =& mysql_fetch_row($res))
{
$out[$row[0]] = $row[1];
}
return $out;
}
}
?>
Vincent Wright
09-12-2006, 05:11 PM
Yes, that's it.
sdawkins
09-12-2006, 05:21 PM
Thanks Vincent!
Vincent Wright
09-12-2006, 05:28 PM
You are welcome, Sharon.
sdawkins
09-12-2006, 10:13 PM
Me again Vincent.
I do not know why this is not working for me. Followed the directions.
I have to manually (check the box correct) for the links to show up in the reciprocal links area. I do not have to do this on Find Top Links....??
Sharon
sdawkins
09-12-2006, 10:39 PM
In my admin panel under the cronjobs configuration one of the things is there 4 times.
Actually, a bunch of stuff is there more than once??????
Cron logging enabled disabled
Cron logging enabled disabled
Cron logging enabled disabled
Cron logging enabled disabled
Vincent Wright
09-13-2006, 04:56 AM
Which directory is it happening on?
sdawkins
09-13-2006, 12:02 PM
Vincent, it is the new directory www.abacklink.com
Should I send you my info?
Vincent Wright
09-13-2006, 12:10 PM
Yes, please, send this info:
CPanel url, username & pass
FTP username & pass
Dir admin username & pass
sdawkins
09-13-2006, 12:34 PM
Email sent -- thank you
Vincent Wright
09-13-2006, 03:36 PM
I fixed the Cronjob Configuration settings.
Then, I checked your database. It turn outs that:
only 4 links have valid reciprocal URL values
only 3 links have recip URLs that point to pages that have links back to you
So, the cron is working ok.
sdawkins
09-13-2006, 03:42 PM
Right, I had manually added those. It did show in the database, but not in the 'reciprocal links' section in the admin panel. It works in my other directory.
I will try submitting another recip and see how it goes.
Also, it doesn't do the 'reciprocal = featured' automatically.....
Thanks,
Sharon
sdawkins
09-13-2006, 03:51 PM
So, I just tried it, and now it works. But a site already listed, after I did the correct reciprocal didn't go to featured.
Thanks.
Vincent Wright
09-13-2006, 03:58 PM
Let me explain...
The first time you executed cron job you might have forgotten to enable the "Valid recip as featured" option. That's why the links were not marked as featured.
In this case you have to enable this option and wait till the next cycle (in your case I see checking interval is 1 day, it means you have to wait till the next day).
Hope this clarifies the confusion.
sdawkins
09-13-2006, 04:08 PM
Vincent, I had it set in the cpanel for every 15 minutes. How do I remove it in the admin panel? Or change it to do it by minutes instead of days? Maybe it said in the txt file.......can't remember.
Also, I ran it manually, and the link in question did not appear in featured. Not a big deal as I can watch the emails (I added the reciprocal field).
Thanks,
Sharon
Vincent Wright
09-21-2006, 05:34 AM
Why do you want to remove it from admin panel and do it by minutes not days?
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.