pauamma: Cartooney crab wearing hot pink and acid green facemask holding drink with straw (Default)
Res facta quae tamen fingi potuit ([personal profile] pauamma) wrote in [site community profile] dw_dev_training2011-11-21 05:27 pm
Entry tags:

Question thread #3

It's time for another question thread!

The rules:

- You may ask any dev-related question you have in a comment. (It doesn't even need to be about Dreamwidth, although if it involves a language/library/framework/database Dreamwidth doesn't use, you will probably get answers pointing that out and suggesting a better place to ask.)
- You may also answer any question, using the guidelines given in To Answer, Or Not To Answer.
ninetydegrees: Art: self-portrait (Default)

[personal profile] ninetydegrees 2011-12-09 08:21 pm (UTC)(link)
No, it's not and journaljquery isn't there either.

I've done that, thanks, it's just the one file you mentioned:

/dreamhack/home/8174-ninetydegrees/dw/etc/config-local.pl
denise: Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome (Default)

[staff profile] denise 2011-12-09 08:22 pm (UTC)(link)
Dumb question but this is always what gets me: did you stop and restart your 'hack after you edited the configs?
ninetydegrees: Art: self-portrait (Default)

[personal profile] ninetydegrees 2011-12-09 08:26 pm (UTC)(link)
Yep, I have a script which does everything for me but I've just used the stop and start commands to make sure and still no beta features.
Edited (duh.) 2011-12-09 20:30 (UTC)
fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)

[personal profile] fu 2011-12-09 08:26 pm (UTC)(link)
Hmm. Can you try:

perl -c /dreamhack/home/8174-ninetydegrees/dw/etc/config-local.pl

That will check the syntax of the configuration file; hopefully that gives us a cule.
ninetydegrees: Art: self-portrait (Default)

[personal profile] ninetydegrees 2011-12-09 08:30 pm (UTC)(link)
I get:

/dreamhack/home/8174-ninetydegrees/dw/etc/config-local.pl syntax OK

I do have copies of config-local.pl in /dw/cvs/local/etc and /dw/cvs/dw-nonfree/etc but they have the code I mentioned earlier too.
fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)

[personal profile] fu 2011-12-09 08:46 pm (UTC)(link)
Hmmm. Okay, try this:

perl /dreamhack/home/8174-ninetydegrees/dw/etc/config-local.pl

(which actually runs the file -- should be no harm done!)
ninetydegrees: Art: self-portrait (Default)

[personal profile] ninetydegrees 2011-12-09 08:49 pm (UTC)(link)
I get:

Can't locate object method "account" via package "type" (perhaps you forgot to load "type"?) at /dreamhack/home/8174-ninetydegrees/dw/etc/config-local.pl line 99.


Line 99 is where the shop configuration starts and I don't think I've ever changed it but here's what it says:

%SHOP = (
key => [ $USD, months, account type, cost in points ],
prem6 => [ 20, 6, 'premium', 200 ],
prem12 => [ 40, 12, 'premium', 400 ],
paid1 => [ 3, 1, 'paid', 30 ],
paid2 => [ 5, 2, 'paid', 50 ],
paid6 => [ 13, 6, 'paid', 130 ],
paid12 => [ 25, 12, 'paid', 250 ],
seed => [ 200, 99, 'seed', 2000 ],
points => [],
);
fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)

[personal profile] fu 2011-12-09 08:51 pm (UTC)(link)
Aha, okay. Comment out the "key" line; looks like that wasn't technically a syntax error, but it was causing the configuration file to not be executed fully.

We really should have a bug open for this; I vaguely recall we used to have one but we couldn't figure out how to trigger the problem (heh), and I can't seem to find it now...

Anyway, comment that out and things should work okay!
ninetydegrees: Art: self-portrait (Default)

[personal profile] ninetydegrees 2011-12-09 08:53 pm (UTC)(link)
Ha! I figured it out thanks to the backup file as I got your comment! Thanks for all the help!
fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)

[personal profile] fu 2011-12-09 08:55 pm (UTC)(link)
Excellent! Have fun :)