Menu

#2 Multiple PHP errors and catastrophic failure

open-accepted
KeyStorm
None
5
2004-09-22
2004-09-17
No

These show up under Apache 2.0.50/Win32 and PHP
5.0.1 when error_reporting = E_ALL and
register_long_arrays = On.

Step 1:

Notice: Undefined variable: pw1 in
C:\Data\webroot\ksmas\setup.php on line 2423

Notice: A session had already been started - ignoring
session_start() in C:\Data\webroot\ksmas\setup.php on
line 3026

Step 2:

Notice: Undefined variable: pw1 in
C:\Data\webroot\ksmas\setup.php on line 2423

Notice: A session had already been started - ignoring
session_start() in C:\Data\webroot\ksmas\setup.php on
line 3026

Notice: Use of undefined constant wrong_pass -
assumed 'wrong_pass' in
C:\Data\webroot\ksmas\setup.php(3101) : eval()'d code
on line 136

Notice: Undefined variable: step_cnts in
C:\Data\webroot\ksmas\setup.php(3101) : eval()'d code
on line 136

Step 2 on password failure:

Notice: Undefined variable: pw1 in
C:\Data\webroot\ksmas\setup.php on line 2423

Notice: A session had already been started - ignoring
session_start() in C:\Data\webroot\ksmas\setup.php on
line 3026

Notice: Undefined variable: pw1 in
C:\Data\webroot\ksmas\setup.php on line 3106

Notice: Undefined variable: pw2 in
C:\Data\webroot\ksmas\setup.php on line 3106

Notice: Undefined variable: pw1 in
C:\Data\webroot\ksmas\setup.php on line 3106

Notice: Use of undefined constant wrong_pass -
assumed 'wrong_pass' in
C:\Data\webroot\ksmas\setup.php on line 3140

Notice: Use of undefined constant wrong_pass -
assumed 'wrong_pass' in
C:\Data\webroot\ksmas\setup.php(3143) : eval()'d code
on line 136

And in fact I was unable to _ever_ get it to accept my
passwords.

Discussion

  • KeyStorm

    KeyStorm - 2004-09-22

    Logged In: YES
    user_id=950217

    I must reckon thi is weird, but after taking a look at the
    (well, rather old) code of mine, I noticed that I noobishly
    assumed in the first versions register_globals was
    activated. It should be _POST['pw1'] and _POST['pw2'].
    Just fixed it.
    It's not that catastrophic after all, I think.

    Gracias por infromarlo. :-)
    (Thanks for your report)

    PS: setup.php creates a folder called 'KSMAS', so you
    actually don't need to create a separated one.

     
  • KeyStorm

    KeyStorm - 2004-09-22
    • assigned_to: nobody --> keystorm
    • status: open --> pending-fixed
     
  • Ignacio Vazquez-Abrams

    Logged In: YES
    user_id=36814

    Okay, after putting "_POST['...']" everywhere I get a new set
    of error messages:

    Step 1:
    Notice: Undefined index: pw1 in
    C:\Data\webroot\KSMAS\setup.php on line 2423
    Notice: A session had already been started - ignoring
    session_start() in C:\Data\webroot\KSMAS\setup.php on line
    3026

    Step 2:
    Notice: Undefined index: pw1 in
    C:\Data\webroot\KSMAS\setup.php on line 2423
    Notice: A session had already been started - ignoring
    session_start() in C:\Data\webroot\KSMAS\setup.php on line
    3026
    Notice: Use of undefined constant wrong_pass -
    assumed 'wrong_pass' in C:\Data\webroot\KSMAS\setup.php
    (3101) : eval()'d code on line 136
    Notice: Undefined variable: step_cnts in
    C:\Data\webroot\KSMAS\setup.php(3101) : eval()'d code on
    line 136

    Post-install:
    Notice: Undefined index: mode in
    C:\Data\webroot\KSMAS\KSMAS\index.php on line 63
    Notice: Undefined index: mode in
    C:\Data\webroot\KSMAS\KSMAS\index.php on line 69
    Notice: Undefined index: mode in
    C:\Data\webroot\KSMAS\KSMAS\index.php on line 85
    Notice: Undefined index: free_slots in
    C:\Data\webroot\KSMAS\KSMAS\include\settings.inc.php on
    line 22
    Notice: Undefined index: close_gaps in
    C:\Data\webroot\KSMAS\KSMAS\include\settings.inc.php on
    line 33
    Notice: Undefined index: free_slots_limit in
    C:\Data\webroot\KSMAS\KSMAS\include\settings.inc.php on
    line 49
    Notice: Undefined index: free_slots_default in
    C:\Data\webroot\KSMAS\KSMAS\include\settings.inc.php on
    line 53
    Notice: Undefined index: activation_time_factor in
    C:\Data\webroot\KSMAS\KSMAS\include\settings.inc.php on
    line 57
    Notice: Undefined index: activation_time_multiplier in
    C:\Data\webroot\KSMAS\KSMAS\include\settings.inc.php on
    line 61
    Notice: Undefined index: chtype in
    C:\Data\webroot\KSMAS\KSMAS\include\settings.inc.php on
    line 71
    Notice: Undefined index: user in
    C:\Data\webroot\KSMAS\KSMAS\include\manager.inc.php on
    line 83
    Notice: Undefined index: user in
    C:\Data\webroot\KSMAS\KSMAS\include\manager.inc.php on
    line 92
    Notice: Undefined index: in
    C:\Data\webroot\KSMAS\KSMAS\include\manager.inc.php on
    line 92
    Notice: Undefined variable: msg in
    C:\Data\webroot\KSMAS\KSMAS\include\settings.inc.php on
    line 94

    Trying to view index.php/show.png:
    Notice: Undefined index: mode in
    C:\Data\webroot\KSMAS\KSMAS\index.php on line 63
    Notice: Undefined index: mode in
    C:\Data\webroot\KSMAS\KSMAS\index.php on line 69
    Notice: Undefined index: mode in
    C:\Data\webroot\KSMAS\KSMAS\index.php on line 85

    I put ini_set('display_errors', '0') in index.php to get around
    these but this is _not_ a long-term solution.

    Maybe "catastrophic" was a bit harsh, but it was a failure to
    operate properly. Oh well, mostly working now.

    I tried running setup.php from the root directory of my server
    but it absolutely refused to move on to step 2.

    I have other issues/concerns but I'll mention them in the
    forums.

     
  • Ignacio Vazquez-Abrams

    • status: pending-fixed --> open-fixed
     
  • KeyStorm

    KeyStorm - 2004-09-22

    Logged In: YES
    user_id=950217

    Well, your PHP configuration doesn't seem to register
    autoglobals, which is supposed to be ON.

    You probably have the directive track_vars se to Off, while
    it's recquired (implicitly) to be on (it's on in PHP5.0.1
    by default afaik)

    Turning error_reporting off is not a solution at all,
    because errors and notices are there for a reason.

    You're right, lets go on in the forums.

     
  • KeyStorm

    KeyStorm - 2004-09-22

    Logged In: YES
    user_id=950217

    I'm currently having some general problems with the setup. I
    have been fixing some minor issues there, but some seem to
    persist, all the reports you can give from the setup will be
    very welcome.

     
  • KeyStorm

    KeyStorm - 2004-09-22
    • status: open-fixed --> open-accepted
     
  • Nobody/Anonymous

    Logged In: NO

    Say I have wrong password. :(

     
  • KeyStorm

    KeyStorm - 2005-03-04

    Logged In: YES
    user_id=950217

    Actually many people have had problems qith the passwordsa
    and I can say the problem may be caused by charset issues
    between the server and the client.

    However, I'm slowly rewriting the code to use mySQL, because
    it has proved to be more stable and reliable and most PHP
    enabled hosts do include mySQL.

     

Log in to post a comment.