Log in

View Full Version : Accessing $vbulletin->options from a scheduled task


penagate
05-24-2008, 08:06 PM
Hi all,

I am developing a scheduled task (cron). When I run this manually via the Scheduled Task Manager, it works perfectly. However, when invoked via the cron scheduler, only a very limited set of items are available in the $vbulletin->options array; this breaks my script.

Does anyone know how I can ensure that the options I require are read into the options array in this situation?

Thoughts appreciated.

Cheers,

— P

Marco van Herwaarden
05-25-2008, 10:35 AM
Which options are you missing?

penagate
05-28-2008, 04:58 AM
Almost everything, but specifically the ones in the setting group for my custom product.

I worked around this by reading them manually from the database, but I'm still curious to know why they're not loaded. As I say, every option is loaded when the script is run manually through the ACP.