whobutdrew: (Rational)
Drew ([personal profile] whobutdrew) wrote in [site community profile] dw_dev2009-10-02 04:00 pm
Entry tags:

(no subject)

Quick one this time, promise!

When I try to view the admin console reference on my site, I get this error:

[Error: Undefined subroutine: LJ::check_priv at /home/dw/cgi-bin/LJ/Console/Command/BanFromVerticals.pm line 21 @ ubuntu]

The line it refers to is:

return LJ::check_priv($remote, "admin", "vertical");

If I comment that line out, then I get another error, so this is the one that needs addressing.

Where should this subroutine be found?

I don't think this happened on my old version of the server that ended up getting nuked, but I don't remember for 100% certain.
denise: Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome (Default)

[staff profile] denise 2009-10-02 11:06 pm (UTC)(link)
Hmm. That's an old thing we ripped out of the code a while ago on our side -- something LJ had set up that we didn't want -- so it sounds like you're not running the most recent version of the code.
foxfirefey: A fox colored like flame over an ornately framed globe (Default)

[personal profile] foxfirefey 2009-10-03 12:21 am (UTC)(link)
Stupid question, but did you upgrade the install's repository to the latest production branchy thingie?
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2009-10-02 11:13 pm (UTC)(link)
Hmm. It may be that you have an old file hanging around in live, which was deleted from production. See http://wiki.dwscoalition.org/notes/Dev_Maintenance#Syncing_code_to_live

Oh, also, that function is now under LJ::User, and is called using $u->check_priv
Edited 2009-10-02 23:13 (UTC)
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2009-10-03 05:10 am (UTC)(link)
Glad I could help!