Menu

Cannot redeclare _http_user()...

Help
bert
2005-04-15
2012-10-11
  • bert

    bert - 2005-04-15

    ...(previously declared in /home/httpd/vhosts/mydomain.com/subdomains/bertornot/httpdocs/phpwiki/configurator.php:71)

    I've just setup phpwiki (1.3.11_rc3), changed a minimum of configuration items (just to connect to my MySQL DB) and voila.... what is wrong? Could anyone help me out please?

    Kind regards,
    Bert

     
    • Yannick Lefebvre

      I got the same message. It comes up when you did not set an admin user name and password in the config.php file.

       
    • feebleoreo

      feebleoreo - 2005-04-18

      I got the same thing. I went into config-dist.ini, and set

      ;ADMIN_USER =
      ; ADMIN_PASSWD is ignored on HttpAuth
      ;ADMIN_PASSWD =

      to

      ADMIN_USER = myusername
      ; ADMIN_PASSWD is ignored on HttpAuth
      ADMIN_PASSWD = mypw

      But it still doesn't work. I get prompted for a username and password, enter them, and then just get prompted over and over again. Anyone know what I'm doing wrong?

       
    • Joel Uckelman

      Joel Uckelman - 2005-04-18

      Check your setting for ENCRYPTED_PASSWD.

      I suspect that you have it set to 'true' (which is the recommended setting), but you're still setting ADMIN_PASSWORD to something unencrypted.

      The comment above ENCRYPTED_PASSWD (in the config.ini) describes how to encrypt your password.

       
    • Joel Uckelman

      Joel Uckelman - 2005-04-18

      Oh. Hold on. You said that you're changing the settings in config-dist.ini? That might also be contributing to your problem. You should copy config-dist.ini to config.ini, and make your changes there.

       
    • feebleoreo

      feebleoreo - 2005-04-18

      Hm. Yeah, you were right. I had thought that, too, but chainging ENCRYPTED_PASSWD to false didn't work, for some reason.

      At any rate, using an encrypted password seems to have gotten me a bit closer. However, now I see the following at the bottom of my configurator screen:

      Fatal Error:

      lib/IniConfig.php:584: Error: ADMIN_USER may not be empty. Please update your configuration.

      lib/IniConfig.php:189: Warning: Invalid argument supplied for foreach() (...repeated 2 times)

      lib/IniConfig.php:285: Warning: array_key_exists(): The second argument should be either an array or an object

      lib/IniConfig.php:447: Warning: array_key_exists(): The second argument should be either an array or an object

      lib/IniConfig.php:331: Warning: array_key_exists(): The second argument should be either an array or an object

      lib/IniConfig.php:331: Warning: array_key_exists(): The second argument should be either an array or an object

      lib/IniConfig.php:331: Warning: array_key_exists(): The second argument should be either an array or an object

      lib/IniConfig.php:331: Warning: array_key_exists(): The second argument should be either an array or an object

      lib/IniConfig.php:447: Warning: array_key_exists(): The second argument should be either an array or an object

      lib/IniConfig.php:584: Error: ADMIN_USER may not be empty. Please update your configuration.

      What could be going wrong now?

       
    • Joel Uckelman

      Joel Uckelman - 2005-04-18

      It seems to think that ADMIN_USER is empty. What do you have ADMIN_USER set to right now?

       
      • Reini Urban

        Reini Urban - 2005-04-19

        If the configurator fails (it's just a stupid experimental tool),
        please copy config-dist.ini manually to config.ini and edit it manually.

         
    • feebleoreo

      feebleoreo - 2005-04-22

      Hm. Okay, I dropped trying to use the configurator. I manually set everything, created my MySQL DB, and tried to run it. Now I'm getting the "Virgin wiki" screen, but with these fatal errors:

      lib/FileFinder.php:191: Error: WIKI_PGSRC: file not found

      lib/IniConfig.php:331: Warning: array_key_exists(): The second argument should be either an array or an object

      lib/IniConfig.php:431: Warning: constant(): Couldn't find constant WIKI_NAME_REGEXP

      lib/IniConfig.php:447: Warning: array_key_exists(): The second argument should be either an array or an object

      Any advice?

       

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.