Entry tags:
S2 constant errors
With global warnings on, some permutation of these lines shows up in the log whenever I hit an S2 page:
Constant subroutine S2::PROPS redefined at /usr/share/perl/5.8/constant.pm line 103.
Constant subroutine S2::STATIC redefined at /usr/share/perl/5.8/constant.pm line 103.
Constant subroutine S2::VTABLE redefined at /usr/share/perl/5.8/constant.pm line 103.
Any ideas as to why this might be happening?
Constant subroutine S2::PROPS redefined at /usr/share/perl/5.8/constant.pm line 103.
Constant subroutine S2::STATIC redefined at /usr/share/perl/5.8/constant.pm line 103.
Constant subroutine S2::VTABLE redefined at /usr/share/perl/5.8/constant.pm line 103.
Any ideas as to why this might be happening?
no subject
no subject
Edit: which is to say, yes, since they're there, I wouldn't see any harm with removing the lines from BackendPerl.pm. But when I tried that, the warnings didn't disappear immediately.
no subject
no subject
So after trying that, I'm still seeing the redefined constants twice per S2 lastn page call and once per every other S2 page call. Since S2.pm is loaded in LJ::S2 and LJ::S2::EntryPage, I think they are still being reloaded by mod_perl every time, even though the files haven't changed.
no subject
no subject
update s2compiled2 set compdata=replace(compdata,'use constant VTABLE => 0;\nuse constant STATIC => 1;\nuse constant PROPS => 2;\n','');
That seems to have done the trick, phew.