Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Queued Jobs Lucene Cron


Go to End


3 Posts   1321 Views

Avatar
somerider

Community Member, 3 Posts

29 October 2012 at 9:14pm

Has anyone successfully set up the lucene reindex and ProcessJobQueueTask crons necessary to automate lucene indexing from cpanel? I'm on a shared host and this is what I'm running...

php sapphire/cli-script.php reindexsearch

php sapphire/cli-script.php dev/tasks/ProcessJobQueueTask

Jumped through a few _SS_environment.php hoops with the first one but am now stuck on this:
Cron output: Undefined index: SERVER_PORT in ..../sapphire/core/control/Director.php on line 404

Any clues?

Cheers in advance.

Avatar
Willr

Forum Moderator, 5523 Posts

2 November 2012 at 11:34am

Looks like it assumes $_SERVER['SERVER_PORT'] is set in the code and perhaps not set in your cli mode. Perhaps try defining it in your _ss_environment file - $_SERVER['SERVER_PORT'] = 80;

Avatar
Marcus

Administrator, 89 Posts

20 November 2012 at 1:55pm

You might also try using php-cli from the commandline - some shared hosts make the cli available via a separate binary