Ad Widget

Collapse

Проблема экспорта шаблонов

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ShamanOS
    Junior Member
    • Aug 2010
    • 16

    #1

    Проблема экспорта шаблонов

    Не могу экспортировать шаблоны.
    Делаю так: захожу под admin, Настройка -> Импорт/Экспорт -> выбираю группу Templates, в ней выбираю всё, нажимаю 'Экспорт' - пишет "HTTP 500 Internal Server Error".
    Как лечить?
  • dima_dm
    Senior Member
    • Dec 2009
    • 2697

    #2
    Смотрите логи Web сервере на предмет ошибок, скорее всего, каких-то PHP модулей не хватает.

    Comment

    • ShamanOS
      Junior Member
      • Aug 2010
      • 16

      #3
      Спасибо, разобрался. Для работы нужны установленные модули:
      php-xml
      php-dom

      Comment

      • Rulkin
        Junior Member
        • Aug 2010
        • 10

        #4
        та же ошибка
        вроде все стоит.... а все равно не пашет..
        -
        Code:
        /usr/ports/>pkg_info | grep p5
        p5-Authen-PAM-0.16_1 A Perl interface to the PAM library
        p5-Compress-Raw-Zlib-2.023 Low-Level Interface to zlib compression library
        p5-Compress-Zlib-2.015 Perl5 interface to zlib compression library
        p5-Crypt-CBC-2.30   Perl5 interface to Cipher Block Chaining with DES and IDEA
        p5-Crypt-DES-2.05   Perl5 interface to DES block cipher
        p5-Digest-HMAC-1.01 Perl5 interface to HMAC Message-Digest Algorithms
        p5-Digest-SHA1-2.11 Perl interface to the SHA-1 Algorithm
        p5-GD-2.41          A perl5 interface to Gd Graphics Library version2
        p5-HTML-Parser-3.64 Perl5 module for parsing HTML documents
        p5-HTML-Tagset-3.20 Some useful data table in parsing HTML
        p5-IO-Compress-Base-2.015 Base Class for IO::Uncompress modules
        p5-IO-Compress-Zlib-2.015 Perl5 interface for reading and writing of (g)zip files
        p5-Net-SNMP-5.2.0   A perl module for SNMP... Net::SNMP
        p5-Net-SSLeay-1.35  Perl5 interface to SSL
        p5-Pod-Parser-1.38  Modules to work with POD (Plain Old Documentation)
        p5-SNMP_Session-1.12 A perl5 module providing rudimentary access to SNMPv1 and v
        p5-Term-ANSIColor-1.12 Color screen output using ANSI escape sequences
        p5-Text-Iconv-1.7   Perl interface to iconv() codeset conversion function
        p5-URI-1.51         Perl5 interface to Uniform Resource Identifier (URI) refere
        p5-XML-DOM-1.44     Perl module for building DOM Level 1 compliant document str
        p5-XML-Parser-2.36  Perl extension interface to James Clark's XML parser, expat
        p5-XML-RegExp-0.03  Regular expressions for XML tokens
        p5-gettext-1.05_2   Message handling functions
        p5-libwww-5.834     Perl5 library for WWW access
        p5-libxml-0.08      Collection of Perl5 modules for working with XML
        php5-5.2.8          PHP Scripting Language
        php5-bcmath-5.2.11_1 The bcmath shared extension for php
        php5-ctype-5.2.9    The ctype shared extension for php
        php5-gd-5.2.9       The gd shared extension for php
        php5-mbstring-5.2.11_1 The mbstring shared extension for php
        php5-mysql-5.2.9    The mysql shared extension for php
        php5-openssl-5.2.9  The openssl shared extension for php
        php5-session-5.2.9  The session shared extension for php
        php5-simplexml-5.2.9 The simplexml shared extension for php
        php5-snmp-5.2.11_1  The snmp shared extension for php
        php5-sockets-5.2.11_1 The sockets shared extension for php
        php5-spl-5.2.9      The spl shared extension for php
        php5-xml-5.2.11_1   The xml shared extension for php
        --
        Code:
        [Mon Aug 16 14:38:28 2010] [error] [client 192.168.100.250] PHP Warning:  require_once(include/classes/class.domdocument.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /usr/local/www/zabbix/include/config.inc.php on line 74, referer: http://192.168.100.200/zabbix/export.php?sid=f8413f59125136cb
        [Mon Aug 16 14:38:28 2010] [error] [client 192.168.100.250] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'include/classes/class.domdocument.php' (include_path='.:/usr/local/share/pear') in /usr/local/www/zabbix/include/config.inc.php on line 74, referer: http://192.168.100.200/zabbix/export.php?sid=f8413f59125136cb
        FreeBSD 7.0-RELEASE

        Comment

        • dima_dm
          Senior Member
          • Dec 2009
          • 2697

          #5
          А почему у вас PHP модули разных версий?
          php-5.2.8, набор модулей 5.2.9 и 5.2.11_1. Если ставите, то ставьте все модули и PHP одного релиза.
          Last edited by dima_dm; 16-08-2010, 15:54.

          Comment

          • Rulkin
            Junior Member
            • Aug 2010
            • 10

            #6
            Originally posted by dima_dm
            А почему у вас PHP модули разных версий?
            php-5.2.8, набор модулей 5.2.9 и 5.2.11_1. Если ставите, то ставьте все модули и PHP одного релиза.
            спс, попробую обновится...

            -
            а пока, не подскажете ли как доустановить модули
            php-xml
            php-dom
            в iso образ 1,8,2

            в линухе, ну совсем не силен

            Comment

            • ShamanOS
              Junior Member
              • Aug 2010
              • 16

              #7
              Originally posted by Rulkin
              та же ошибка
              вроде все стоит.... а все равно не пашет..
              Всё, да не всё. Не стоит модуль php-dom.

              Должно быть приблизительно вот так:
              Code:
              # [COLOR="fuchsia"]pkg_info[/COLOR] | [COLOR="fuchsia"]grep[/COLOR] "php5-*"
              php5-5.3.2          PHP Scripting Language
              php5-bcmath-5.3.2   The bcmath shared extension for php
              php5-ctype-5.3.2    The ctype shared extension for php
              php5-dom-5.3.2      The dom shared extension for php
              php5-gd-5.3.2       The gd shared extension for php
              php5-ldap-5.3.2     The ldap shared extension for php
              php5-mbstring-5.3.2 The mbstring shared extension for php
              php5-mysql-5.3.2    The mysql shared extension for php
              php5-session-5.3.2  The session shared extension for php
              php5-snmp-5.3.2     The snmp shared extension for php
              php5-sockets-5.3.2  The sockets shared extension for php
              php5-xml-5.3.2      The xml shared extension for php
              Ставим так (FreeBSD):
              Code:
              # [COLOR="fuchsia"]locate[/COLOR] php5-dom
              /usr/ports/textproc/php5-dom
              /usr/ports/textproc/php5-dom/Makefile
              #[COLOR="fuchsia"]cd[/COLOR] /usr/ports/textproc/php5-dom
              #[COLOR="fuchsia"]make[/COLOR] && [COLOR="fuchsia"]make[/COLOR] install && [COLOR="fuchsia"]make[/COLOR] clean
              Проверяем:
              Code:
              #[COLOR="fuchsia"]ls[/COLOR] [COLOR="aqua"]-l[/COLOR] /usr/local/include/php/ext
              total 36
              drwxr-xr-x  3 root  wheel   512 May 27 19:25 bcmath
              drwxr-xr-x  2 root  wheel   512 May 27 19:25 ctype
              drwxr-xr-x  3 root  wheel   512 May 27 19:24 date
              drwxr-xr-x  2 root  wheel   512 Aug 16 09:47 dom
              drwxr-xr-x  3 root  wheel   512 May 27 19:24 ereg
              drwxr-xr-x  3 root  wheel   512 May 27 20:14 gd
              drwxr-xr-x  2 root  wheel   512 Aug  9 10:45 ldap
              drwxr-xr-x  2 root  wheel   512 May 27 19:24 libxml
              drwxr-xr-x  3 root  wheel   512 May 31 16:15 mbstring
              drwxr-xr-x  2 root  wheel   512 May 27 20:15 mysql
              drwxr-xr-x  2 root  wheel   512 May 27 19:24 pcre
              -rw-r--r--  1 root  wheel   329 Aug 16 09:47 php_config.h
              drwxr-xr-x  2 root  wheel   512 May 31 17:54 session
              drwxr-xr-x  2 root  wheel   512 May 27 20:14 snmp
              drwxr-xr-x  2 root  wheel   512 May 27 20:15 sockets
              drwxr-xr-x  2 root  wheel   512 May 27 19:24 spl
              drwxr-xr-x  2 root  wheel  1536 May 27 19:24 standard
              drwxr-xr-x  2 root  wheel   512 Aug 13 11:42 xml
              Перестартуем апач:
              Code:
              #[COLOR="fuchsia"]apachectl[/color] [COLOR="cyan"]graceful[/color]
              ... и наслаждаемся

              Comment

              Working...