<HTML>
<HEAD>
<TITLE>Re: [Koha] Label creator error</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>On 12/10/10 10:37 AM, "Chris Nighswonger" <<a href="cnighswonger@foundations.edu">cnighswonger@foundations.edu</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>On Fri, Dec 10, 2010 at 9:58 AM, C.J. Walke <<a href="cjwalke@mofga.org">cjwalke@mofga.org</a>> wrote:<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi Chris,<BR>
<BR>
I read in another post that 3.2 has label-manage.pl <<a href="http://label-manage.pl">http://label-manage.pl</a>> instead of label-manager.pl <<a href="http://label-manager.pl">http://label-manager.pl</a>> . Below is my /usr/share/koha/intranet/cgi-bin directory and it contains both. Is that part of the issue?<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
That is part of the issue and only part I imagine....<BR>
<BR>
<snip><BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
If not, where else would I look?<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
<BR>
Well, all of the associated templates are probably incorrect as well since they are calling the old script rather than the new one.<BR>
<BR>
I'm not sure what happened, but the upgrade definitely broke, and I don't know if it might be easier to remove the entire directory structure and re-run Makefile.PL to start fresh. Of course your database would not be affected (Disclaimer: You should *always* backup your database before doing anything drastic... including things as "simple" as upgrading.)<BR>
<BR>
What process did you follow when upgrading to 3.2.0?<BR>
<BR>
“I used wget to download the file, untarred, then followed the Upgrade section of INSTALL.ubuntu:<BR>
UPGRADE<BR>
=======<BR>
If you are upgrading from a previous installation of Koha 3, you can<BR>
use the following:<BR>
<BR>
./koha_perl_deps.pl -u -m # to identify new Perl dependencies<BR>
perl Makefile.PL --prev-install-log /path/to/koha-install-log<BR>
make<BR>
make test<BR>
sudo make upgrade”<BR>
<BR>
Also, what does "SHOW tables LIKE '%creator%';" say?<BR>
<BR>
“mysql> SHOW tables LIKE '%creator%';<BR>
+----------------------------+<BR>
| Tables_in_koha (%creator%) |<BR>
+----------------------------+<BR>
| creator_batches | <BR>
| creator_images | <BR>
| creator_layouts | <BR>
| creator_templates | <BR>
+----------------------------+<BR>
4 rows in set (0.00 sec)”<BR>
<BR>
Kind Regards,<BR>
Chris<BR>
<BR>
<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
On 12/9/10 8:58 PM, "Chris Nighswonger" <<a href="cnighswonger@foundations.edu">cnighswonger@foundations.edu</a> <<a href="http://cnighswonger@foundations.edu">http://cnighswonger@foundations.edu</a>> > wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi C.J.<BR>
<BR>
On Wed, Dec 8, 2010 at 3:44 PM, cjwalke <<a href="cjwalke@mofga.org">cjwalke@mofga.org</a> <<a href="http://cjwalke@mofga.org">http://cjwalke@mofga.org</a>> > wrote:<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
Since upgrading to 3.2, the Label Creator tool is not functioning. All my<BR>
layouts, templates and batches are gone and everything I click on returns an<BR>
error.<BR>
<BR>
When I click on manage label batches I get this error: Undefined subroutine<BR>
&main::get_active_layout called at<BR>
/usr/share/koha/intranet/cgi-bin/labels/label-manager.pl <<a href="http://label-manager.pl">http://label-manager.pl</a>> <<a href="http://label-manager.pl">http://label-manager.pl</a>> line 51.<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
3.2.x does not have a label-manager.pl <<a href="http://label-manager.pl">http://label-manager.pl</a>> <<a href="http://label-manager.pl">http://label-manager.pl</a>> script. Based on this error and the results of the SQL statement I had you execute the other day, it sounds like you did not have a successful upgrade. It seems that the database may have been upgraded, but not the code which is in the /usr/share/koha/intranet/cgi-bin directory.<BR>
<BR>
<BR>
Maybe the 3.2.x code was installed in a different directory by chance?<BR>
<BR>
Kind Regards,<BR>
Chris<BR>
<BR>
<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>