Can't Logon

Help
2007-06-12
2013-04-17
  • I cant logon , it always return me to the login page, evry time I write mi user and my password.

     
    • hpfn
      hpfn
      2007-06-12

      Thank you for your feedback.

      Can you be more specific about the version of myphpmoney
      and provide some details like the platform, OS, web server php and
      mysql, names and versions.

      It is an upgrade?

      And could you see if have any message in public_html/Error_MyPhpMoney.log,
      apache logfile or mysql logfile?

      Regards,
      hpfn

       
    • i tried on a window box and a linux box version 2 (the new one) with php 5.0

      I looks like this variables are not assigned

      GLOBALS["GLOBALS"]["sess_pid"] = $GLOBALS["GLOBALS"]["sess_user"] = $GLOBALS["GLOBALS"]["sess_pwd"] = $GLOBALS["GLOBALS"]["sess_time"] = $GLOBALS["GLOBALS"]["_below"] =

      Thanks

       
      • hpfn
        hpfn
        2007-06-14

        I use myphpmoney_2.0 without problems on debian etch,
        php5.

        Class debug is needing some fix. I'm working on it.

        BTW did you check how is myphpmoney's database on mysql?
        Can you login on mysql with

           mysql -u $_MPM['User'] -p $_MPM['Password'] -h $_MPM['Host'] ?
         

        The account you created exists on myphpmoney's database
        (MPM_user table)?

        select * from MPM_user where LOGIN_NAME=''use_you_created'

        The password is encrypted?

        Regards,
        hpfn

         
    • Yes I can logon to the database and the login was created with the password encrypted.
      I enabled the debug and i see that some variables are not assigned.
      Do I need a parameter enabled on my php.ini?

       
      • hpfn
        hpfn
        2007-06-14

        Hmm... Nothing special i think. No necessary modifications on /etc/php5/apache2/php.ini
        default file on debian (sid). Just the date.timezone to stop alerts.

        Here is the file if you want to make a 'diff -u' with the file you are
        using

        wget http://www.txtbox.xpg.com.br/myphpmoney/php.ini.sid.gz

         
    • hpfn
      hpfn
      2007-06-15

      I turned off "register_long_arrays" this morning, because
      of debug.class error. Got  a lot of errors and no login.  I
      believe that's it.

      Hehehe, HTTP_GET_VARS, a jussaric part of myphpmoney.

      You said had enabled debug. Did you fix the debug.class?
      Can i see?

      First I divided the lines and then added a 'is_string' to '$value'.
      First thought.

      ----------------------------------> cut <---------------------------------------------

      while(list($key,$value)=each($globals)) {

                     
                      if ($str)
                              $var = $str . "[\&quot;$key\&quot;]";
                      else
                              $var = $key;

                      if ($str) {
                              $ouput .= "<span class=\&quot;menubleu\&quot;>$var</span>";
                              if (is_string($value))
                                      $ouput .= " = $value<br />\n";
                      }
                      else {
                              $ouput .= "<span class=\&quot;menubleu\&quot;>\$$var</span>";
                              if (is_string($value))
                                      $ouput .= " = $value<br />\n";
                      }

         
             
               if (is_array($value) && sizeof($value)>0) {
                    $ouput .= "<span class=\&quot;menubleu\&quot;>".strip_tags($this->Debug_Globals($value
      ,$var))."</span><br />\n";

      ----------------------------------> cut <---------------------------------------------

       
    • hpfn
      hpfn
      2007-06-15

      In my firsts tests, you can disable "register_long_arrays"
      if you alter "$GLOBALS['_REQUEST']" to $_REQUEST.

      Line public_html/inc/pictures.inc:1144 looks like this:

            if (array_key_exists('flag',$_REQUEST) && $_REQUEST['flag'] == $img) {

      I also commented  public_html/config/setup.inc.php:

      /*
         if (isset($_SERVER) === TRUE) {
            $HTTP_SERVER_VARS  = $_SERVER;
            $HTTP_GET_VARS     = $_GET;
            $HTTP_POST_VARS    = $_POST;
            $HTTP_COOKIE_VARS  = $_COOKIE;
            $HTTP_POST_FILES   = $_FILES;
            $HTTP_ENV_VARS     = $_ENV;
         } else {
            $_SERVER           = $HTTP_SERVER_VARS;
            $_GET              = $HTTP_GET_VARS;
            $_POST             = $HTTP_POST_VARS;
            $_COOKIE           = $HTTP_COOKIE_VARS;
            $_FILES            = $HTTP_POST_FILES;
            $_ENV              = $HTTP_ENV_VARS;
         }
         ## Remove $_SESSION (no usage -> phplib)
         ## Becareful $_SESSION return notice with IIS
         $mpm = array($_SERVER,$_GET,$_POST,$_COOKIE,$_FILES,$_ENV);
         $num = count($mpm);
         for ($i = 0; $i < $num; $i++) {
            if (isset($mpm[$i]) && is_array($mpm[$i]) === TRUE) {
               reset($mpm[$i]);
               ## the ; is important (before - after)
               for (;list($key,$value) = each($mpm[$i]);) {
                  $$key = $value;
               }
            }
         }
      */

       
    • hpfn
      hpfn
      2007-06-16

      Is the problem solved ? You finally logon ?
      I would like to known.

      Regards,
      hpfn

       
    • excuse me I will try that tonight and I will give you the results.

      Marco

       
    • I tried this but i cant logon, where do I need to change this "register_long_arrays" .

      Line public_html/inc/pictures.inc:1144 looks like this:

      if (array_key_exists('flag',$_REQUEST) && $_REQUEST['flag'] == $img) {

      I also commented public_html/config/setup.inc.php:

      /*
      if (isset($_SERVER) === TRUE) {
      $HTTP_SERVER_VARS = $_SERVER;
      $HTTP_GET_VARS = $_GET;
      $HTTP_POST_VARS = $_POST;
      $HTTP_COOKIE_VARS = $_COOKIE;
      $HTTP_POST_FILES = $_FILES;
      $HTTP_ENV_VARS = $_ENV;
      } else {
      $_SERVER = $HTTP_SERVER_VARS;
      $_GET = $HTTP_GET_VARS;
      $_POST = $HTTP_POST_VARS;
      $_COOKIE = $HTTP_COOKIE_VARS;
      $_FILES = $HTTP_POST_FILES;
      $_ENV = $HTTP_ENV_VARS;
      }
      ## Remove $_SESSION (no usage -> phplib)
      ## Becareful $_SESSION return notice with IIS
      $mpm = array($_SERVER,$_GET,$_POST,$_COOKIE,$_FILES,$_ENV);
      $num = count($mpm);
      for ($i = 0; $i < $num; $i++) {
      if (isset($mpm[$i]) && is_array($mpm[$i]) === TRUE) {
      reset($mpm[$i]);
      ## the ; is important (before - after)
      for (;list($key,$value) = each($mpm[$i]);) {
      $$key = $value;
      }
      }
      }
      */

       
      • hpfn
        hpfn
        2007-06-20

        php.ini lines:

        422 ; Whether or not to register the old-style input arrays, HTTP_GET_VARS
        423 ; and friends.  If you're not using them, it's recommended to turn them off,
        424 ; for performance reasons.
        425 register_long_arrays = Off
        426

         
    • I did the change on my php.ini and doesn't work. I cant logon.

       
    • hpfn
      hpfn
      2007-06-22

      Without error messages is difficult. Did you try with the php.ini file
      i provided earlier, with 'register_long_arrays = On'?

       
    • hpfn
      hpfn
      2007-06-22

      If is possible, give a try for the files from svn ./trunk.
      Myphpmoney is starting to stop using GLOBALS.
      ($GLOBALS["GLOBALS"]["sess_xxx"]

      But not before sunday.

       
    • Hi me again.

      I still with the same problem.  Iinstalled on a new Box "Fedora" and the same problem.

      Any idea?

       
    • Is there a way I can disable security. And just leave one user account. So I just point to my webpage and access by default to my account?

       
    • hpfn
      hpfn
      2007-07-10

      This is really strange. And i think you should re-check your configuration.

      You can disable the login editting inc/sql.inc:1024. Get the values in
      myphpmoney's database:

      - table MPM_user:

                   $sess_pid  =
                   $sess_user =
                   $sess_pwd  =

      Regards
      hpfn

       
    • Yes is very strange, the only way I can get in, is just when I register a user. After y log off and try to get in again, I can´t get in to the session.

      Maybe you know why is only works that way.

      Thanks for your help.

       
    • One more question I have php 5

      this work with that version?

       
      • hpfn
        hpfn
        2007-07-10

        It must work. The globals  variables are being defined.

        Regards
        hpfn