delladea: (Default)
Geeky Muse ([personal profile] delladea) wrote in [site community profile] dw_dev_training2011-11-18 07:51 am
Entry tags:

Console commands not working

I've just begin the process of setting up my Dreamhack config according to the wiki. I've gotten to the point of updating my code to the latest version (as described in Dev Maintenance) and creating several test accounts.

No matter which account I'm logged into or what privs that account has, I cannot run console commands at all. Not even commands available to all accounts like ban-set. Every command gives an error message "There is no such command '<command-name>'." At this point, I haven't messed with any of the existing code.

How do I fix this?

Edit: Underscores! I was using dashes instead of underscores in the console commands and my brain didn't catch that. Solved. :D
sophie: A cartoon-like representation of a girl standing on a hill, with brown hair, blue eyes, a flowery top, and blue skirt. ☀ (Default)

[personal profile] sophie 2011-11-19 01:36 am (UTC)(link)
Hi!

What commands have you tried? I ask because, for example, the command you mention in the post doesn't actually have a hyphen, but an underscore - it's ban_set, not ban-set. Using the latter will get you the error you mentioned, so I'm just wanting to make sure the command you're entering is actually correct. (You can use the 'help' command to see what commands are available.)

If it's still not working, we'll try troubleshooting it from there. :)
sophie: A cartoon-like representation of a girl standing on a hill, with brown hair, blue eyes, a flowery top, and blue skirt. ☀ (Default)

[personal profile] sophie 2011-11-19 05:10 pm (UTC)(link)
Don't be embarrassed. This sort of thing happens more often than you'd think, even to people used to working with this stuff. :)
Edited (Grammar fix.) 2011-11-19 17:11 (UTC)
denise: Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome (Default)

[staff profile] denise 2011-11-19 01:42 am (UTC)(link)
Also, a possible thing: be sure you're using ban_set username and not ban_set <username>. (The brackets are there to show it's a variable.) That's gotten people confused before!

I just checked, and the console commands work on my 'hack, so it's not something we broke, at least! (Which has totally happened before. Heh.)
denise: Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome (Default)

[staff profile] denise 2011-11-19 04:09 pm (UTC)(link)
Oh, it's totally not a bother! There's a ton of stuff that everyone thinks "oh, it's just the way it is" and doesn't think to explain, things like "underscores and hyphens are interchangeable in journal URLs but not in console commands". It's not a problem :)
sophie: A cartoon-like representation of a girl standing on a hill, with brown hair, blue eyes, a flowery top, and blue skirt. ☀ (Default)

[personal profile] sophie 2011-11-19 05:08 pm (UTC)(link)
I agree with [staff profile] denise - this sort of question is totally not a bother. That's what this community is here for!

I'm glad you got the problem sorted out!
Edited 2011-11-19 17:08 (UTC)