Since upgrading to 3.2, the Label Creator tool is not functioning. All my layouts, templates and batches are gone and everything I click on returns an error. When I click on manage label batches I get this error: Undefined subroutine &main::get_active_layout called at /usr/share/koha/intranet/cgi-bin/labels/label-manager.pl line 51. Please help. C.J. -- View this message in context: http://koha.1045719.n5.nabble.com/Label-creator-error-tp3297943p3297943.html Sent from the Koha - Discuss mailing list archive at Nabble.com.
Hi C.J. On Wed, Dec 8, 2010 at 3:44 PM, cjwalke <cjwalke@mofga.org> wrote:
Since upgrading to 3.2, the Label Creator tool is not functioning. All my layouts, templates and batches are gone and everything I click on returns an error.
When I click on manage label batches I get this error: Undefined subroutine &main::get_active_layout called at /usr/share/koha/intranet/cgi-bin/labels/label-manager.pl line 51.
3.2.x does not have a label-manager.pl 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. Maybe the 3.2.x code was installed in a different directory by chance? Kind Regards, Chris
Hi Chris, I read in another post that 3.2 has label-manage.pl instead of label-manager.pl. Below is my /usr/share/koha/intranet/cgi-bin directory and it contains both. Is that part of the issue? cjwalke@mofgalibrary:/usr/share/koha/intranet/cgi-bin/labels$ ls label-create-csv.pl label-edit-profile.pl label-print.pl label-create-layout.pl label-edit-template.pl label-profiles.pl label-create-pdf.pl label-home.pl label-save-template.pl label-create-profile.pl label-item-search.pl label-templates.pl label-create-template.pl label-manage.pl pcard-member-search.pl label-create-xml.pl label-manager.pl spinelabel-home.pl label-edit-batch.pl label-print-csv.pl spinelabel-print.pl label-edit-layout.pl label-print-pdf.pl If not, where else would I look? Thanks, C.J. On 12/9/10 8:58 PM, "Chris Nighswonger" <cnighswonger@foundations.edu> wrote:
Hi C.J.
On Wed, Dec 8, 2010 at 3:44 PM, cjwalke <cjwalke@mofga.org> wrote:
Since upgrading to 3.2, the Label Creator tool is not functioning. All my layouts, templates and batches are gone and everything I click on returns an error.
When I click on manage label batches I get this error: Undefined subroutine &main::get_active_layout called at /usr/share/koha/intranet/cgi-bin/labels/label-manager.pl <http://label-manager.pl> line 51.
3.2.x does not have a label-manager.pl <http://label-manager.pl> 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.
Maybe the 3.2.x code was installed in a different directory by chance?
Kind Regards, Chris
On Fri, Dec 10, 2010 at 9:58 AM, C.J. Walke <cjwalke@mofga.org> wrote:
Hi Chris,
I read in another post that 3.2 has label-manage.pl instead of label-manager.pl. Below is my /usr/share/koha/intranet/cgi-bin directory and it contains both. Is that part of the issue?
That is part of the issue and only part I imagine.... <snip>
If not, where else would I look?
Well, all of the associated templates are probably incorrect as well since they are calling the old script rather than the new one. 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.) What process did you follow when upgrading to 3.2.0? Also, what does "SHOW tables LIKE '%creator%';" say? Kind Regards, Chris
On 12/9/10 8:58 PM, "Chris Nighswonger" <cnighswonger@foundations.edu> wrote:
Hi C.J.
On Wed, Dec 8, 2010 at 3:44 PM, cjwalke <cjwalke@mofga.org> wrote:
Since upgrading to 3.2, the Label Creator tool is not functioning. All my layouts, templates and batches are gone and everything I click on returns an error.
When I click on manage label batches I get this error: Undefined subroutine &main::get_active_layout called at /usr/share/koha/intranet/cgi-bin/labels/label-manager.pl < http://label-manager.pl> line 51.
3.2.x does not have a label-manager.pl <http://label-manager.pl> 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.
Maybe the 3.2.x code was installed in a different directory by chance?
Kind Regards, Chris
On 12/10/10 10:37 AM, "Chris Nighswonger" <cnighswonger@foundations.edu> wrote:
On Fri, Dec 10, 2010 at 9:58 AM, C.J. Walke <cjwalke@mofga.org> wrote:
Hi Chris,
I read in another post that 3.2 has label-manage.pl <http://label-manage.pl> instead of label-manager.pl <http://label-manager.pl> . Below is my /usr/share/koha/intranet/cgi-bin directory and it contains both. Is that part of the issue?
That is part of the issue and only part I imagine.... <snip>
If not, where else would I look?
Well, all of the associated templates are probably incorrect as well since they are calling the old script rather than the new one.
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.)
What process did you follow when upgrading to 3.2.0?
³I used wget to download the file, untarred, then followed the Upgrade section of INSTALL.ubuntu: UPGRADE ======= If you are upgrading from a previous installation of Koha 3, you can use the following:
./koha_perl_deps.pl -u -m # to identify new Perl dependencies perl Makefile.PL --prev-install-log /path/to/koha-install-log make make test sudo make upgrade²
Also, what does "SHOW tables LIKE '%creator%';" say?
³mysql> SHOW tables LIKE '%creator%'; +----------------------------+ | Tables_in_koha (%creator%) | +----------------------------+ | creator_batches | | creator_images | | creator_layouts | | creator_templates | +----------------------------+ 4 rows in set (0.00 sec)²
Kind Regards, Chris
On 12/9/10 8:58 PM, "Chris Nighswonger" <cnighswonger@foundations.edu <http://cnighswonger@foundations.edu> > wrote:
Hi C.J.
On Wed, Dec 8, 2010 at 3:44 PM, cjwalke <cjwalke@mofga.org <http://cjwalke@mofga.org> > wrote:
Since upgrading to 3.2, the Label Creator tool is not functioning. All my layouts, templates and batches are gone and everything I click on returns an error.
When I click on manage label batches I get this error: Undefined subroutine &main::get_active_layout called at /usr/share/koha/intranet/cgi-bin/labels/label-manager.pl <http://label-manager.pl> <http://label-manager.pl> line 51.
3.2.x does not have a label-manager.pl <http://label-manager.pl> <http://label-manager.pl> 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.
Maybe the 3.2.x code was installed in a different directory by chance?
Kind Regards, Chris
On Fri, Dec 10, 2010 at 4:40 PM, C.J. Walke <cjwalke@mofga.org> wrote:
“I used wget to download the file, untarred, then followed the Upgrade section of INSTALL.ubuntu: UPGRADE ======= If you are upgrading from a previous installation of Koha 3, you can use the following:
./koha_perl_deps.pl -u -m # to identify new Perl dependencies perl Makefile.PL --prev-install-log /path/to/koha-install-log make make test sudo make upgrade”
Also, what does "SHOW tables LIKE '%creator%';" say?
“mysql> SHOW tables LIKE '%creator%'; +----------------------------+ | Tables_in_koha (%creator%) | +----------------------------+ | creator_batches | | creator_images | | creator_layouts | | creator_templates | +----------------------------+ 4 rows in set (0.00 sec)”
Well, at least the db upgrade appears to have gone ok. I'm not sure what went wrong with the rest of the upgrade. My best suggestion at this point is to back up and punt... install fresh. Kind Regards, Chris
On 12/9/10 8:58 PM, "Chris Nighswonger" <cnighswonger@foundations.edu <http://cnighswonger@foundations.edu> > wrote:
Hi C.J.
On Wed, Dec 8, 2010 at 3:44 PM, cjwalke <cjwalke@mofga.org <http://cjwalke@mofga.org> > wrote:
Since upgrading to 3.2, the Label Creator tool is not functioning. All my layouts, templates and batches are gone and everything I click on returns an error.
When I click on manage label batches I get this error: Undefined subroutine &main::get_active_layout called at /usr/share/koha/intranet/cgi-bin/labels/label-manager.pl <http://label-manager.pl> <http://label-manager.pl> line 51.
3.2.x does not have a label-manager.pl <http://label-manager.pl> <http://label-manager.pl> 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.
Maybe the 3.2.x code was installed in a different directory by chance?
Kind Regards, Chris
Hi Chris, I'm ready to punt, but what is the process to install fresh? I've used mysqldump to backup my koha database. What else? Thanks. C.J. On 12/10/10 11:37 PM, "Chris Nighswonger" <cnighswonger@foundations.edu> wrote:
On Fri, Dec 10, 2010 at 4:40 PM, C.J. Walke <cjwalke@mofga.org> wrote:
³I used wget to download the file, untarred, then followed the Upgrade section of INSTALL.ubuntu: UPGRADE ======= If you are upgrading from a previous installation of Koha 3, you can use the following:
./koha_perl_deps.pl -u -m # to identify new Perl dependencies perl Makefile.PL --prev-install-log /path/to/koha-install-log make make test sudo make upgrade²
Also, what does "SHOW tables LIKE '%creator%';" say?
³mysql> SHOW tables LIKE '%creator%'; +----------------------------+ | Tables_in_koha (%creator%) | +----------------------------+ | creator_batches | | creator_images | | creator_layouts | | creator_templates | +----------------------------+ 4 rows in set (0.00 sec)²
Well, at least the db upgrade appears to have gone ok.
I'm not sure what went wrong with the rest of the upgrade. My best suggestion at this point is to back up and punt... install fresh.
Kind Regards, Chris
On 12/9/10 8:58 PM, "Chris Nighswonger" <cnighswonger@foundations.edu <http://cnighswonger@foundations.edu> > wrote:
Hi C.J.
On Wed, Dec 8, 2010 at 3:44 PM, cjwalke <cjwalke@mofga.org <http://cjwalke@mofga.org> > wrote:
Since upgrading to 3.2, the Label Creator tool is not functioning. All my layouts, templates and batches are gone and everything I click on returns an error.
When I click on manage label batches I get this error: Undefined subroutine &main::get_active_layout called at /usr/share/koha/intranet/cgi-bin/labels/label-manager.pl <http://label-manager.pl> <http://label-manager.pl> line 51.
3.2.x does not have a label-manager.pl <http://label-manager.pl> <http://label-manager.pl> 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.
Maybe the 3.2.x code was installed in a different directory by chance?
Kind Regards, Chris
Hi Chris, So I have taken your advice and installed 3.2.1 fresh. What I don't know is how to restore my koha database to the new install. Please advise and thank you. C.J. On 12/10/10 11:37 PM, "Chris Nighswonger" <cnighswonger@foundations.edu> wrote:
On Fri, Dec 10, 2010 at 4:40 PM, C.J. Walke <cjwalke@mofga.org> wrote:
³I used wget to download the file, untarred, then followed the Upgrade section of INSTALL.ubuntu: UPGRADE ======= If you are upgrading from a previous installation of Koha 3, you can use the following:
./koha_perl_deps.pl -u -m # to identify new Perl dependencies perl Makefile.PL --prev-install-log /path/to/koha-install-log make make test sudo make upgrade²
Also, what does "SHOW tables LIKE '%creator%';" say?
³mysql> SHOW tables LIKE '%creator%'; +----------------------------+ | Tables_in_koha (%creator%) | +----------------------------+ | creator_batches | | creator_images | | creator_layouts | | creator_templates | +----------------------------+ 4 rows in set (0.00 sec)²
Well, at least the db upgrade appears to have gone ok.
I'm not sure what went wrong with the rest of the upgrade. My best suggestion at this point is to back up and punt... install fresh.
Kind Regards, Chris
On 12/9/10 8:58 PM, "Chris Nighswonger" <cnighswonger@foundations.edu <http://cnighswonger@foundations.edu> > wrote:
Hi C.J.
On Wed, Dec 8, 2010 at 3:44 PM, cjwalke <cjwalke@mofga.org <http://cjwalke@mofga.org> > wrote:
Since upgrading to 3.2, the Label Creator tool is not functioning. All my layouts, templates and batches are gone and everything I click on returns an error.
When I click on manage label batches I get this error: Undefined subroutine &main::get_active_layout called at /usr/share/koha/intranet/cgi-bin/labels/label-manager.pl <http://label-manager.pl> <http://label-manager.pl> line 51.
3.2.x does not have a label-manager.pl <http://label-manager.pl> <http://label-manager.pl> 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.
Maybe the 3.2.x code was installed in a different directory by chance?
Kind Regards, Chris
On Wed, Dec 22, 2010 at 2:17 PM, C.J. Walke <cjwalke@mofga.org> wrote:
Hi Chris,
So I have taken your advice and installed 3.2.1 fresh. What I don't know is how to restore my koha database to the new install. Please advise and thank you.
mysql -ukohauser -p koha <your-db-backup.sql Where 'kohauser' == your koha user and 'koha' == your koha db name Kind Regards, Chris
Chris, Thanks for all your help!! I am back up and running. Cheers! C.J. On 12/22/10 4:02 PM, "Chris Nighswonger" <cnighswonger@foundations.edu> wrote:
On Wed, Dec 22, 2010 at 2:17 PM, C.J. Walke <cjwalke@mofga.org> wrote:
Hi Chris,
So I have taken your advice and installed 3.2.1 fresh. What I don't know is how to restore my koha database to the new install. Please advise and thank you.
mysql -ukohauser -p koha <your-db-backup.sql
Where 'kohauser' == your koha user and 'koha' == your koha db name
Kind Regards, Chris
participants (3)
-
C.J. Walke -
Chris Nighswonger -
cjwalke