Jump to:

23493 Posts in 18996 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » cron tasks and database not defined in SS 2.4

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 258 Views
  • lekoala
    Community Member
    30 Posts

    cron tasks and database not defined in SS 2.4 Link to this post

    Hi there,

    I'm stuck on a problem with schedulded tasks. I have read this
    and this
    and everything seems to be working quite well on my local host but on the live server, the database connection is not initialized so when I call any dataobject, it fails.

    I can see that SS_DATABASE_USERNAME and SS_DATABASE_PASSWORD are configured correctly from my __ss_environment.php file, but that don't seem to be enough. Is the _config.php executed when running silverstripe from the command line?
    if not, how can I specify my database name and initialize my connection without duplicating my configuration that is already in _config.php

    If someone has a bright idea, it would be great!

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.