Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-27077

"Array to string conversion" while try to connect to mantis

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I (re-)set up a little (working) mantis farm. Mantis version 1.2.19, Apache 2.4.10, PHP 5.6.3, Windows
      Jenkins 1.599, Mantis-Plugin v0.26

      This setup worked with my old Apache2.2 installation. After a new installation with Apache2.4 and updated components the connection from Jenkins to Mantis does not work anymore.

      In Jenkins log I found this:

      Feb 23, 2015 9:06:28 AM INFO hudson.plugins.mantis.soap.mantis120.MantisSessionImpl 
      Mantis version is 1.2.X
      Feb 23, 2015 9:06:28 AM WARNING hudson.plugins.mantis.MantisSite isConnect
      Failed to connect http://<myserver>/mantisfarm/instance/ (cause: Error Type: SYSTEM NOTICE,
      Error Description: Array to string conversion).

      With Loggin in Mantis enabled in Jenkins-Config I clicked the "Verify" Button. The Mantis log says that my entered credentials are correct:

      23.02.2015 11:27 CET ldap Found value '<connectionuser>@<here>.de' for field 'mail'.
      23.02.2015 11:27 CET ldap User '<connectionuser>' authenticated

      But the Jenkins config claims "Unable to login with the user name and password."

      I don't know how to get more debug information to tear down this problem. JENKINS-23979 was closed by the reporter with no detailed information.

        Attachments

          Activity

          Hide
          sogabe sogabe added a comment -

          try to set $g_mc_use_nusoap = true in config_inc.php

          Show
          sogabe sogabe added a comment - try to set $g_mc_use_nusoap = true in config_inc.php
          Hide
          nigjo Jens H added a comment -

          No difference.

          I found the hint in mc_config_defaults_inc.php for the 'soap'-Extension. So here is my PHP extension list

          ; Windows Extensions
          ; Note that ODBC support is built in, so no dll is needed for it.
          ; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5)
          ; extension folders as well as the separate PECL DLL download (PHP 5).
          ; Be sure to appropriately set the extension_dir directive.
          ;
          extension=php_bz2.dll
          extension=php_curl.dll
          extension=php_fileinfo.dll
          extension=php_gd2.dll
          ;extension=php_gettext.dll
          ;extension=php_gmp.dll
          ;extension=php_intl.dll
          ;extension=php_imap.dll
          ;extension=php_interbase.dll
          extension=php_ldap.dll
          extension=php_mbstring.dll
          ;extension=php_exif.dll      ; Must be after mbstring as it depends on it
          ;extension=php_mysql.dll
          extension=php_mysqli.dll
          ;extension=php_oci8_12c.dll  ; Use with Oracle Database 12c Instant Client
          extension=php_openssl.dll
          ;extension=php_pdo_firebird.dll
          ;extension=php_pdo_mysql.dll
          ;extension=php_pdo_oci.dll
          ;extension=php_pdo_odbc.dll
          ;extension=php_pdo_pgsql.dll
          ;extension=php_pdo_sqlite.dll
          ;extension=php_pgsql.dll
          ;extension=php_pspell.dll
          ;extension=php_shmop.dll
          
          ; The MIBS data available in the PHP distribution must be installed. 
          ; See http://www.php.net/manual/en/snmp.installation.php 
          ;extension=php_snmp.dll
          
          ;extension=php_soap.dll
          ;extension=php_sockets.dll
          ;extension=php_sqlite3.dll
          ;extension=php_sybase_ct.dll
          ;extension=php_tidy.dll
          extension=php_xmlrpc.dll
          extension=php_xsl.dll
          Show
          nigjo Jens H added a comment - No difference. I found the hint in mc_config_defaults_inc.php for the 'soap'-Extension. So here is my PHP extension list ; Windows Extensions ; Note that ODBC support is built in, so no dll is needed for it. ; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5) ; extension folders as well as the separate PECL DLL download (PHP 5). ; Be sure to appropriately set the extension_dir directive. ; extension=php_bz2.dll extension=php_curl.dll extension=php_fileinfo.dll extension=php_gd2.dll ;extension=php_gettext.dll ;extension=php_gmp.dll ;extension=php_intl.dll ;extension=php_imap.dll ;extension=php_interbase.dll extension=php_ldap.dll extension=php_mbstring.dll ;extension=php_exif.dll ; Must be after mbstring as it depends on it ;extension=php_mysql.dll extension=php_mysqli.dll ;extension=php_oci8_12c.dll ; Use with Oracle Database 12c Instant Client extension=php_openssl.dll ;extension=php_pdo_firebird.dll ;extension=php_pdo_mysql.dll ;extension=php_pdo_oci.dll ;extension=php_pdo_odbc.dll ;extension=php_pdo_pgsql.dll ;extension=php_pdo_sqlite.dll ;extension=php_pgsql.dll ;extension=php_pspell.dll ;extension=php_shmop.dll ; The MIBS data available in the PHP distribution must be installed. ; See http://www.php.net/manual/en/snmp.installation.php ;extension=php_snmp.dll ;extension=php_soap.dll ;extension=php_sockets.dll ;extension=php_sqlite3.dll ;extension=php_sybase_ct.dll ;extension=php_tidy.dll extension=php_xmlrpc.dll extension=php_xsl.dll
          Hide
          sogabe sogabe added a comment -

          To enable soap extension,

          1) $g_mc_use_nusoap = false in config_inc.php
          2) extension=php_soap.dll php.ini

          Show
          sogabe sogabe added a comment - To enable soap extension, 1) $g_mc_use_nusoap = false in config_inc.php 2) extension=php_soap.dll php.ini
          Hide
          nigjo Jens H added a comment -

          The Verify button now results in a "Verfied." May be a better error message will help for this "miss-config".

          Will test tomorrow for adding notes from Jenkins to Mantis.

          Show
          nigjo Jens H added a comment - The Verify button now results in a "Verfied." May be a better error message will help for this "miss-config". Will test tomorrow for adding notes from Jenkins to Mantis.

            People

            Assignee:
            sogabe sogabe
            Reporter:
            nigjo Jens H
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: