in reply to schedule::cron Not Working

You don't seem to be checking your return values to ensure you are creating and utilizing objects correctly.

Without further examination, I'd check those first.