View | Details | Raw Unified | Return to bug 24071
Collapse All | Expand All

(-)a/about.pl (+8 lines)
Lines 25-30 use Modern::Perl; Link Here
25
use CGI qw ( -utf8 );
25
use CGI qw ( -utf8 );
26
use DateTime::TimeZone;
26
use DateTime::TimeZone;
27
use File::Spec;
27
use File::Spec;
28
use File::Slurp qw( read_file );
28
use List::MoreUtils qw/ any /;
29
use List::MoreUtils qw/ any /;
29
use LWP::Simple;
30
use LWP::Simple;
30
use Module::Load::Conditional qw(can_load);
31
use Module::Load::Conditional qw(can_load);
Lines 702-705 if ( open( my $file, "<:encoding(UTF-8)", "$docdir" . "/history.txt" ) ) { Link Here
702
    $template->param( timeline_read_error => 1 );
703
    $template->param( timeline_read_error => 1 );
703
}
704
}
704
705
706
my $logdir = C4::Context->config('logdir');
707
my $plack_error_log = read_file("$logdir/plack-error.log");
708
# TODO could add SIP, indexer, Zebra
709
$template->param(
710
    plack_error_log => $plack_error_log,
711
);
712
705
output_html_with_http_headers $query, $cookie, $template->output;
713
output_html_with_http_headers $query, $cookie, $template->output;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt (-1 / +110 lines)
Lines 28-33 Link Here
28
        <li><a href="#licenses">Licenses</a></li>
28
        <li><a href="#licenses">Licenses</a></li>
29
        <li><a href="#translations">Translations</a></li>
29
        <li><a href="#translations">Translations</a></li>
30
        <li><a href="#history">Timeline</a></li>
30
        <li><a href="#history">Timeline</a></li>
31
        <li><a href="#get_in_touch">The Koha community</a></li>
31
        </ul>
32
        </ul>
32
33
33
        <div id="about">
34
        <div id="about">
Lines 796-809 Link Here
796
    [% END %]
797
    [% END %]
797
        </div>
798
        </div>
798
799
800
801
802
        <div id="get_in_touch">
803
            <h2>Get in touch with the Koha community</h2>
804
            <p>There are several ways to get in touch with the Koha community.</p>
805
            <p>Most of them are listed on the <a href="https://wiki.koha-community.org/wiki/Getting_involved">Getting involved page of the wiki</a>.
806
            You will learn how to improve the manual, become a translator, open a bug report, test bugs, and even write your own patches!</p>
807
808
            <h2>Open a new bug report</h2>
809
            <p>We would like to give you some hints about how to open a new bug report on our bug trackers.</p>
810
            <p>Before opening a bug report you need to make sure that this is a real bug.
811
            You also need to ask your support provider, if you have one, to confirm the bug for you.</p>
812
            <p>What would be the different steps before opening a new bug report?</p>
813
            <p>You should first make sure it is not fixed yet or it is not a configuration issue. To do so you should try and recreate the bug on <a href="https://wiki.koha-community.org/wiki/Sandboxes">one of the sandboxes provided by the community</a>.</p>
814
            <p>If you recreate it on the sandbox you can note the different steps and describe them on the bug report you are going to open.</p>
815
            <p>It is also important to provide the different information:</p>
816
            <div id="debug_info">
817
                <table>
818
                <tr><th scope="row">Koha version: </th><td>[% kohaVersion | html %]</td></tr>
819
                <tr><th scope="row">OS version ('uname -a'): </th><td>[% osVersion | html %]</td></tr>
820
                <tr><th scope="row">Perl interpreter: </th><td>[% perlPath | html %]</td></tr>
821
                <tr><th scope="row">Perl version: </th><td>[% perlVersion | html %]</td></tr>
822
                <tr><th scope="row">MySQL version: </th><td>[% mysqlVersion | html %]</td></tr>
823
              [% IF (is_psgi) %]
824
                <tr><th scope="row">PSGI: </th><td>[% psgi_server | html %]</td></tr>
825
              [% END %]
826
              [% IF Koha.Preference('SearchEngine') == 'Elasticsearch' %]
827
                <tr>
828
                    <th scope="row">Elasticsearch: </th>
829
                [% IF elasticsearch_fatal_config_error %]
830
                    <td><span class="status_warn">[% elasticsearch_fatal_config_error | html %]</span></td>
831
                [% ELSE %]
832
                    <td>
833
                        Nodes:
834
                        <span>[% elasticsearch_status.nodes.join(' / ') | html %]</span>
835
                        |
836
                        Status:
837
                    [% IF elasticsearch_status.running %]
838
                        <span class="status_ok">running</span>
839
                        |
840
                        Indices:
841
                      [% FOREACH index IN elasticsearch_status.indexes %]
842
                          [% index.index_name | html %] (count: <emph>[% index.count | html %]</emph>)[% UNLESS loop.last %], [% END %]
843
                      [% END %]
844
                    [% ELSE %]
845
                        <span class="status_warn">not running</span>
846
                    [% END %]
847
                    </td>
848
                [% END %]
849
                </tr>
850
              [% END %]
851
                <tr><th scope="row">Memcached: </th>
852
                    <td>
853
                        Servers: [% IF memcached_servers %]<span>[% memcached_servers | html %]</span>
854
                                 [% ELSE %]<span>undefined</span>[% END %] |
855
                        Namespace: [% IF memcached_namespace %]<span>[% memcached_namespace | html %]</span>
856
                                   [% ELSE %]<span>undefined</span>[% END %] |
857
                        Status: [% IF memcached_servers %]
858
                                    [% IF memcached_running and is_memcached_still_active %]
859
                                        <span class="status_ok">running</span>.
860
                                    [% ELSE %]
861
                                        <span class="status_warn">not running</span>.
862
                                        [% IF is_psgi %]
863
                                            <span>Remember memcached needs to be started before Plack.</span>
864
                                        [% END %]
865
                                    [% END %]
866
                                [% ELSE %]
867
                                    <span>unknown</span>
868
                                [% END %] |
869
                        Config read from:
870
                        [% SWITCH where_is_memcached_config %]
871
                            [% CASE 'config_only' %]
872
                                <span class="status_ok">koha-conf.xml</span>
873
                            [% CASE 'ENV_only' %]
874
                                <span class="status_warn">ENV</span> Note that the right place to define the memcached config is in your $KOHA_CONF file
875
                            [% CASE 'both' %]
876
                                <span class="status_warn">ENV and koha-conf.xml</span> Note that the right place to define the memcached config is in your $KOHA_CONF file. To avoid any misunderstanding you should not export the memcached config from ENV.
877
                            [% CASE # nowhere %]
878
                                <span class="status_warn">Nowhere</span> Note that the right place to define the memcached config is in your $KOHA_CONF file. Currently you do not have a valid memcached configuration defined.
879
                        [% END %]
880
                      [% IF effective_caching_method != 'Cache::Memcached::Fast::Safe' %]
881
                        | Effective caching method: [% effective_caching_method | html %]
882
                      [% END %]
883
                    </td>
884
                </tr>
885
                <tr><th scope="row">Zebra version: </th><td>[% zebraVersion | html %]</td></tr>
886
                [% IF (errZebraConnection == 10000) %]
887
                <tr><th scope="row"><b>Error</b> </th><td>Zebra server seems not to be available. Is it started?</td></tr>
888
                [% ELSIF (errZebraConnection) %]
889
                <tr><th scope="row"><b>Warning</b> </th><td>Error message from Zebra: [% ( errZebraConnection ) | html %] </td></tr>
890
                [% END %]
891
                </table>
892
893
                <ol>
894
                    <li>
895
                        Plack error log: <textarea cols="100" rows="25">[% plack_error_log | html_line_break %]</textarea>
896
                    </li>
897
                </ol>
898
            </div>
899
            <button id="print_debug" class="btn btn-default">Export</button>
900
        </div>
799
    </div>
901
    </div>
800
</div>
902
</div>
801
</div>
903
</div>
802
904
803
[% MACRO jsinclude BLOCK %]
905
[% MACRO jsinclude BLOCK %]
804
    <script type="text/javascript">
906
    <script type="text/javascript">
907
        function print_debug(){
908
            var debug_content = $("#debug_info").html();
909
            var original_content = document.body.innerHTML
910
            document.body.innerHTML = debug_content;
911
            window.print();
912
            document.body.innerHTML = original_content;
913
        }
805
         $(document).ready(function() {
914
         $(document).ready(function() {
806
            $('#abouttabs').tabs();
915
            $('#abouttabs').tabs();
916
            $("#print_debug").on("click", function(){print_debug()});
807
         });
917
         });
808
    </script>
918
    </script>
809
[% END %]
919
[% END %]
810
- 

Return to bug 24071