denise: Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome (Default)
Denise ([staff profile] denise) wrote in [site community profile] dw_dev_training2013-06-25 04:04 am

Styles error on fresh install

So, after trying to get things working under OSX and failing horribly, I installed the code on an Ubuntu VM locally so I could hack without internet. Everything's going well enough so far, except that I had a mistake in my $LJHOME when I first ran update-db.pl (I had it as /home/dw/ instead of /home/dw). I corrected it later, but now all the styles are kind of fucked. When I visit /customize, it gives me this error:

[Error: You cannot use this theme. at /home/dw//cgi-bin/LJ/Customize.pm line 58. @ dev-dw]

After fixing the path error in $LJHOME, I tried deleting all the styles from the DB and re-ran update-db.pl -p, which at least forced all the styles to recompile, but that didn't make the error go away. I also tried changing the theme_preview_styleid userprop using /admin/propedit, but no dice.

Anybody have any further thoughts? If things are really fucked I can drop the entire dw database table and start over, but if somebody knows of anything quicker than that, that'd be great.
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 2013-06-26 09:08 am (UTC)(link)
Very nice detective work there! I hadn't realised this would even be an issue.

Grepping for "s2layers" and ignoring the results talking about the database shows that bin/dev/newtheme.pl may also need updating, but this is less urgent since it's just explanatory text.

I'm sending off an email to everybody who I set 'hacks up for from the 14th onwards to let them know about this bug. Thanks! :D