[dev] Tutorial?

Kasó Péter kaso.peter at externet.hu
Tue Jun 24 19:02:53 UTC 2008


Hello,

Thanks the link, it is very good. I downloaded the mopple.zip. And I tried to run but I got a Fatal Error.
I hope you can help for me. I use the newest horde version.

Thanks, Peter

The fatal error:

Notice: Only variable references should be returned by reference in /var/www/phorde/mopple/lib/Driver.php on line 76

A fatal error has occurred
Required "hostspec" not specified in mopple configuration. The file /var/www/phorde/config/../mopple/config/conf.php should contain a $conf['storage']['params']['hostspec'] setting.
[line 637 of /var/www/phorde/lib/Horde.php]

Details:
The full error message is logged in Horde's log file, and is shown below only to administrators. Non-adminitrative users will not see error details.

object(PEAR_Error)#13 (8) {
  ["error_message_prefix"]=>
  string(0) ""
  ["mode"]=>
  int(1)
  ["level"]=>
  int(1024)
  ["code"]=>
  NULL
  ["message"]=>
  string(182) "Required "hostspec" not specified in mopple configuration.

The file /var/www/phorde/config/../mopple/config/conf.php should contain a $conf['storage']['params']['hostspec'] setting."
  ["userinfo"]=>
  NULL
  ["backtrace"]=>
  array(6) {
    [0]=>
    array(6) {
      ["file"]=>
      string(29) "/var/www/phorde/pear/PEAR.php"
      ["line"]=>
      int(576)
      ["function"]=>
      string(10) "PEAR_Error"
      ["class"]=>
      string(10) "PEAR_Error"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(5) {
        [0]=>
        string(182) "Required "hostspec" not specified in mopple configuration.

The file /var/www/phorde/config/../mopple/config/conf.php should contain a $conf['storage']['params']['hostspec'] setting."
        [1]=>
        NULL
        [2]=>
        int(1)
        [3]=>
        int(1024)
        [4]=>
        NULL
      }
    }
    [1]=>
    array(7) {
      ["file"]=>
      string(29) "/var/www/phorde/lib/Horde.php"
      ["line"]=>
      int(636)
      ["function"]=>
      string(10) "raiseError"
      ["class"]=>
      string(4) "PEAR"
      ["object"]=>
      object(Mopple_Driver_sql)#12 (4) {
        ["_params"]=>
        array(11) {
          ["persistent"]=>
          bool(false)
          ["username"]=>
          string(4) "root"
          ["password"]=>
          string(5) "Dina1"
          ["protocol"]=>
          string(4) "unix"
          ["database"]=>
          string(6) "phorde"
          ["charset"]=>
          string(5) "utf-8"
          ["splitread"]=>
          bool(false)
          ["phptype"]=>
          string(5) "mysql"
          ["table"]=>
          string(12) "mopple_songs"
          ["driverconfig"]=>
          string(5) "horde"
          ["umask"]=>
          int(63)
        }
        ["_db"]=>
        NULL
        ["_connected"]=>
        bool(false)
        ["_mp3s"]=>
        array(0) {
        }
      }
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(1) {
        [0]=>
        string(182) "Required "hostspec" not specified in mopple configuration.

The file /var/www/phorde/config/../mopple/config/conf.php should contain a $conf['storage']['params']['hostspec'] setting."
      }
    }
    [2]=>
    array(7) {
      ["file"]=>
      string(41) "/var/www/phorde/mopple/lib/Driver/sql.php"
      ["line"]=>
      int(251)
      ["function"]=>
      string(18) "assertDriverConfig"
      ["class"]=>
      string(5) "Horde"
      ["object"]=>
      object(Mopple_Driver_sql)#12 (4) {
        ["_params"]=>
        array(11) {
          ["persistent"]=>
          bool(false)
          ["username"]=>
          string(4) "root"
          ["password"]=>
          string(5) "Dina1"
          ["protocol"]=>
          string(4) "unix"
          ["database"]=>
          string(6) "phorde"
          ["charset"]=>
          string(5) "utf-8"
          ["splitread"]=>
          bool(false)
          ["phptype"]=>
          string(5) "mysql"
          ["table"]=>
          string(12) "mopple_songs"
          ["driverconfig"]=>
          string(5) "horde"
          ["umask"]=>
          int(63)
        }
        ["_db"]=>
        NULL
        ["_connected"]=>
        bool(false)
        ["_mp3s"]=>
        array(0) {
        }
      }
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(3) {
        [0]=>
        &array(11) {
          ["persistent"]=>
          bool(false)
          ["username"]=>
          string(4) "root"
          ["password"]=>
          string(5) "Dina1"
          ["protocol"]=>
          string(4) "unix"
          ["database"]=>
          string(6) "phorde"
          ["charset"]=>
          string(5) "utf-8"
          ["splitread"]=>
          bool(false)
          ["phptype"]=>
          string(5) "mysql"
          ["table"]=>
          string(12) "mopple_songs"
          ["driverconfig"]=>
          string(5) "horde"
          ["umask"]=>
          int(63)
        }
        [1]=>
        &string(7) "storage"
        [2]=>
        &array(6) {
          [0]=>
          string(7) "phptype"
          [1]=>
          string(8) "hostspec"
          [2]=>
          string(8) "username"
          [3]=>
          string(8) "database"
          [4]=>
          string(7) "charset"
          [5]=>
          string(5) "table"
        }
      }
    }
    [3]=>
    array(7) {
      ["file"]=>
      string(41) "/var/www/phorde/mopple/lib/Driver/sql.php"
      ["line"]=>
      int(206)
      ["function"]=>
      string(8) "_connect"
      ["class"]=>
      string(17) "Mopple_Driver_sql"
      ["object"]=>
      object(Mopple_Driver_sql)#12 (4) {
        ["_params"]=>
        array(11) {
          ["persistent"]=>
          bool(false)
          ["username"]=>
          string(4) "root"
          ["password"]=>
          string(5) "Dina1"
          ["protocol"]=>
          string(4) "unix"
          ["database"]=>
          string(6) "phorde"
          ["charset"]=>
          string(5) "utf-8"
          ["splitread"]=>
          bool(false)
          ["phptype"]=>
          string(5) "mysql"
          ["table"]=>
          string(12) "mopple_songs"
          ["driverconfig"]=>
          string(5) "horde"
          ["umask"]=>
          int(63)
        }
        ["_db"]=>
        NULL
        ["_connected"]=>
        bool(false)
        ["_mp3s"]=>
        array(0) {
        }
      }
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(0) {
      }
    }
    [4]=>
    array(7) {
      ["file"]=>
      string(31) "/var/www/phorde/mopple/list.php"
      ["line"]=>
      int(17)
      ["function"]=>
      string(8) "retrieve"
      ["class"]=>
      string(17) "Mopple_Driver_sql"
      ["object"]=>
      object(Mopple_Driver_sql)#12 (4) {
        ["_params"]=>
        array(11) {
          ["persistent"]=>
          bool(false)
          ["username"]=>
          string(4) "root"
          ["password"]=>
          string(5) "Dina1"
          ["protocol"]=>
          string(4) "unix"
          ["database"]=>
          string(6) "phorde"
          ["charset"]=>
          string(5) "utf-8"
          ["splitread"]=>
          bool(false)
          ["phptype"]=>
          string(5) "mysql"
          ["table"]=>
          string(12) "mopple_songs"
          ["driverconfig"]=>
          string(5) "horde"
          ["umask"]=>
          int(63)
        }
        ["_db"]=>
        NULL
        ["_connected"]=>
        bool(false)
        ["_mp3s"]=>
        array(0) {
        }
      }
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(0) {
      }
    }
    [5]=>
    array(4) {
      ["file"]=>
      string(32) "/var/www/phorde/mopple/index.php"
      ["line"]=>
      int(21)
      ["args"]=>
      array(1) {
        [0]=>
        string(31) "/var/www/phorde/mopple/list.php"
      }
      ["function"]=>
      string(7) "require"
    }
  }
  ["callback"]=>
  NULL
}




More information about the dev mailing list