[Koha-bugs] [Bug 14148] New: Bug 12412 breaks import if plugins are not enabled

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue May 5 14:44:08 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14148

            Bug ID: 14148
           Summary: Bug 12412 breaks import if plugins are not enabled
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: blocker
          Priority: P5 - low
         Component: Tools
          Assignee: gmcharlt at gmail.com
          Reporter: katrin.fischer at bsz-bw.de
        QA Contact: testopia at bugs.koha-community.org

Dobrica reported on bug 12412:

This bug will break Koha installation if there is no enable_plugins in
koha-conf.xml with following error:

Can't call method "GetPlugins" on an undefined value at
/srv/koha_ffzg/tools/stage-marc-import.pl line 206, <DATA> line 603.

This is not ideal, since it will break old installations.

Problem is line:

Koha::Plugins->new()->GetPlugins('to_marc');

where Koha::Plugins->new() will return undef is plugins are not enabled.

It seems we also have same syntax in plugins/plugins-home.pl so it should
probably be fixed also.

--

It's a little bit worse: plugins had to be enabled. Even adding

 <enable_plugins>0</enable_plugins>

to koha-conf.xml won't help.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list