Menu

Fatal error: Cannot use string offset as an array

Help
2012-10-28
2012-11-03
  • admin at ibn-rushd.org

    Hi everybody, I'm trying to test address book on a test site but am having difficulties with the very first step of the quick installation guide.
    I copied the files to the server via ftp and the tried to access the url with following error message:

    Fatal error: Cannot use string offset as an array in /usr/export/www/vhosts/funnetwork/hosting/hiktest/addressbook/config/cfg.user.php on line 43

    Tried this with both v8.1.22 and v8.1.18.

    As I'm not a PHP developer, I do not know what could be wrong.
    Any help appreciated.

     
    • chatelao

      chatelao - 2012-10-28

      Hi,

      • Could you send me the URL to your site? So I could see the error?
      • Did you use the install form from version .22 ?

      Regards
      Olivier

      2012/10/28 admin at ibn-rushd.org abdallabushnaq@users.sf.net

      Hi everybody, I'm trying to test address book on a test site but am having
      difficulties with the very first step of the quick installation guide.
      I copied the files to the server via ftp and the tried to access the url
      with following error message:

      Fatal error: Cannot use string offset as an array in
      /usr/export/www/vhosts/funnetwork/hosting/hiktest/addressbook/config/cfg.user.php
      on line 43

      Tried this with both v8.1.22 and v8.1.18.

      As I'm not a PHP developer, I do not know what could be wrong.
      Any help appreciated.


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/php-addressbook/discussion/531751/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/prefs/

      --

      Olivier Châtelain-Gmür
      Mayweg 17, 3007 Bern, Switzerland
      Home: +41 (0) 31 371 86 69
      Mobile: +41 (0) 79 726 08 60
      Mailto:o.chatelain@ieee.org


       
  • admin at ibn-rushd.org

    Sorry for the late reply. I was expecting an email notification and did not expect someone to answer within such a short time.
    I tried both versions. Just copied files and called url, like in the quick install.
    The test site url is:
    http://hiktest.hi.funpic.de/addressbook/
    But the error message is just plain what I already have posted.

     
  • chatelao

    chatelao - 2012-11-02

    Could you upload your "cfg.user.php" script? (without replaced passwords)
    OR
    Just copy-paste line 46 to the message-board?

     
  • admin at ibn-rushd.org

    It is the original. I did not change a thing. Thi sis what was described in the manual.

    //
    // == List of Login/Pass-Users ==
    //
    // -- Setup an "admin" user, with password "secret" --
    $userlist['admin']['pass'] = "secret";
    $userlist['admin']['role'] = "root"; // used to call "/diag.php"

    /*
    // Setup a "readonly" user
    $userlist['view']['pass'] = "apassword";
    $userlist['view']['role'] = "readonly";

    // Setup a user accessing only one group
    $userlist['mygroup']['pass'] = "apassword";
    $userlist['mygroup']['group'] = "My group";

    // Setup a user for the second domain (0 = default)
    $userlist['adm2']['pass'] = "adm2";
    $userlist['adm2']['domain'] = 1;
    //*/

    //
    // == User table in database ==
    // - Excludes the table_prefix!
    $usertable = "user";

    // == List of IP-Users ==
    //
    /
    $iplist['169.168.1.1']['role'] = "admin";
    $iplist['169.168.1.1']['role'] = "readonly";
    /

    //
    // == Look & Feel of the domains
    //
    $skin_color = "red"; // global skin color, e.g. on login

    // blue, brown, green, grey, pink, purple, red, turquoise, yellow
    $domain[0]['skin'] = "red";
    $domain[1]['skin'] = "pink";
    $domain[2]['skin'] = "yellow";

    ?>

     
    • chatelao

      chatelao - 2012-11-03

      Hi,

      The Brackets of the array re missing?!?

      Regards O.

      Am 03.11.2012 um 08:30 schrieb "admin at ibn-rushd.org" abdallabushnaq@users.sf.net:

      It is the original. I did not change a thing. Thi sis what was described in the manual.

      //
      // == List of Login/Pass-Users ==
      //
      // -- Setup an "admin" user, with password "secret" --
      $userlist'admin''pass' = "secret";
      $userlist'admin''role' = "root"; // used to call "/diag.php"
      /*
      // Setup a "readonly" user $userlist'view''pass' = "apassword"; $userlist'view''role' = "readonly";
      // Setup a user accessing only one group
      $userlist'mygroup''pass' = "apassword";
      $userlist'mygroup''group' = "My group";

      // Setup a user for the second domain (0 = default)
      $userlist'adm2''pass' = "adm2";
      $userlist'adm2''domain' = 1;
      //*/

      //
      // == User table in database ==
      // - Excludes the table_prefix!
      $usertable = "user";

      // == List of IP-Users ==
      //
      /
      $iplist'169.168.1.1''role' = "admin";
      $iplist'169.168.1.1''role' = "readonly";
      /

      //
      // == Look & Feel of the domains
      //
      $skin_color = "red"; // global skin color, e.g. on login

      // blue, brown, green, grey, pink, purple, red, turquoise, yellow
      $domain0'skin' = "red";
      $domain1'skin' = "pink";
      $domain2'skin' = "yellow";

      ?>

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/php-addressbook/discussion/531751/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/prefs/

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.