Fresh Installation of LJ

Sep 05, 2009 06:33

"my" variable $getextra masks earlier declaration in same scope at '/home/lj/htdocs/editjournal.bml' line 40.

Using a hash as a reference is deprecated at '/home/lj/htdocs/editjournal.bml' line 357.

Can't locate object method "is_sup_enabled" via package "LJ::SUP" (perhaps you forgot to load "LJ::SUP"?) at /home/lj/cgi-bin/weblib.pl line 2067. @ ( Read more... )

server: logged errors, server: missing lj::sup, server: troubleshooting, server: installation, server

Leave a comment

Comments 3

pauamma September 5 2009, 10:00:38 UTC
For the LJ::SUP error, you'll need to define a stub LJ::SUP package somewhere.

Something like:

#!/usr/bin/perl
use strict;
use warnings;

# stub LJ::SUP, because some stuff in the livejournal repo still expects it. :-(
package LJ::SUP;

sub is_sup_enabled { 0 }

1;

You should be able to ignore the other messages, although you're welcome to fix them and submit patches.

Reply

abudaoud September 16 2009, 22:59:29 UTC
Thank you, this seemed to work out well. I wasn't sure were in the code to place this, so I ended placing it at the extreme bottom of the page.

Reply

pauamma September 17 2009, 11:54:55 UTC
Thanks for the update. :-)

Probably better is to put it in a file of its own, like cgi-bin/LJ/SUP.pm (in your local repo or development area, so it doesn't get overwritten when you upgtade the livejournal code). Then you can pull it in from modperl_sub-local. That will make it available everywhere in your code.

Reply


Leave a comment

Up