Anyone have any suggestions as to what the problem may be?
I have a suspicion that it may have something to do with my PHP4 installation...since it was giving me troubles earlier.

"Register" points to module.php which contains:

// $Id: module.php,v 1.13 2002/03/05 22:53:51 kjartan Exp $

include_once "includes/common.inc";

if (module_hook($mod, "page")) {
  page_header();
  module_invoke($mod, "page");
  page_footer();
}
else {
  header("Location: index.php");
}

So it looks like common.inc isn't working or something...?

Kane

Comments

marco’s picture

you probably have register globals off. add this to your conf.php:

  if (!empty($_GET)) {
    extract($_GET);
  } else if (!empty($HTTP_GET_VARS)) {
    extract($HTTP_GET_VARS);
  }

  if (!empty($_POST)) {
    extract($_POST);
  } else if (!empty($HTTP_POST_VARS)) {
    extract($HTTP_POST_VARS);
  }

  if (!empty($_SERVER)) {
    extract($_SERVER);
  } else if (!empty($HTTP_SERVER_VARS)) {
    extract($HTTP_SERVER_VARS);
  }

--
Marco

--
Marco

duncanshannon’s picture

Awesome. I was having the same problems, and all i did was copy/paste that into my conf.php file and i was running.

Anonymous’s picture

WOW

Took me about two hours of searching... After the initial install I kept bumping back into the index.php-page.
I copied and pasted this (whatever it is Only local images are allowed. and now it WORKS

You made someone happy today
Thanks.

ax’s picture

(which should be "1") before using this workaround. latter is only needed if you cannot set register_globals from your php.ini or drupal's .htaccess.

Anonymous’s picture

Thank you for posting this information...

Anonymous’s picture

Thaks for that bit of code - it solved my problems as well!

JC

guillemp’s picture

I tried both options and neither worked (i have a fresh install, but can't register the main user to follow on).
From what i seem to understand, the above code is passing environment variables to all URL GET or POST methods (please correct me). I think this problem might also have something to do with this, as my apache (2.2.23) and php (5.1.6) and all libraries (gd 2.0.33 for instance) are compiled into /usr/software (non standard place), although i resolved all dependencies for php using necessary configure options.

I used both solutions (register_globals = 1 and the code given above) with my php.ini file, but i still see nothing but a default Apache message ("Seeing this instead of the website you expected? ...) when i try to register main user.

First i thought this might be happening because i ran httpd 2.2.3 as daemon user (using User and Group in httpd.conf) which has no HOME folder and is set as nologin (and thus, i can't give him the PATH and other Environment Variables which might need by using a .bashrc file). So i did SetEnv PATH variable to php bin folder in httpd.conf, but it didn't work. I also created a user with a physical home folder and gave him all PATHs to non-standard /usr/software/programs, as well a LD_LIBRARY_PATH (inside his .bashrc), but it neither works. Finally, i did the same with root user (which is the user i run apachectl from), including all the PATH and LD_LIBRARY_PATH in its .bashrc file, but it didn't work neither.

Now i ran out of ideas, any other explanation/solution to this problem?

Thank you very much !!

Guillem.

guillemp’s picture

Just for the archive, these problems only happened while i was trying to access the website from a web browser in the same computer as the web server. I tried to register the first user from a different computer (after restarting web server using a user account created adhoc) and worked fine.

Guillem.