Manually running cron.php: error Class 'UserPreference' not found

Hi!

I cannot setup cron jobs right now on my webspace. I would habe to upgrade…

But I can SSH into my webspace. I tried to manually run cron.php

with the following command:

php -f cron.php
The only output I get is: “cron.php is CLI only”

If I run php -af cron.php to get some more outpu I only get:
PHP Fatal error: Class ‘UserPreference’ not found in suitecrm/cron.php on line 45

Either way, my schedulers say “last successful run: never”

Any idea how to solve this issue?

Thanks
Dominik

I found a solution to this problem, but it seems to be a workaround:

http://forums.sugarcrm.com/f3/help-sugar-6-5-throwing-cron-php-cli-only-error-80983/

As soon as I commented the mentiod code out it worked and I now have my group e-mails in the mail box…

Is this a bug? Or is this because of my webspace?

Thanks
Dominik