New Install Issues

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gholsie
    Senior Member
    • Jul 2000
    • 102
    • 4.1.x

    New Install Issues

    I'm having some troubles with a fresh installation of vBulletin 2.0.

    I can get through all of the installation. However, when I open the site, I get these messages before the actual BBS shows.

    Warning: Undefined variable: showqueries in ./global.php on line 23

    Warning: Undefined variable: REQUEST_URI in ./global.php on line 31

    Warning: Undefined variable: sessionhash in ./admin/sessions.php on line 32

    Warning: Undefined variable: s in ./admin/sessions.php on line 34

    Warning: Undefined variable: s in ./admin/sessions.php on line 38

    Warning: Undefined variable: session in ./admin/sessions.php on line 130

    Warning: Undefined variable: session in ./admin/sessions.php on line 134

    Warning: Cannot add header information - headers already sent by (output started at ./global.php:23) in ./admin/functions.php on line 1090

    Warning: Undefined variable: badcookie in ./admin/sessions.php on line 363

    Warning: Use of undefined constant userid - assumed 'userid' in ./global.php on line 201

    Warning: Use of undefined constant pmpopup - assumed 'pmpopup' in ./global.php on line 201

    Warning: Undefined variable: header in ./global.php on line 217

    Warning: Undefined variable: footer in ./global.php on line 223

    Warning: Undefined variable: timediff in ./global.php(256) : eval()'d code on line 1

    Warning: Undefined variable: action in ./global.php on line 277

    Warning: Undefined variable: action in ./global.php on line 277

    Warning: Use of undefined constant userid - assumed 'userid' in ./admin/functions.php on line 1435

    Warning: Undefined index: location in C:\Inetpub\wwwcycle\vb\index.php on line 90

    Warning: Undefined variable: forumsperms in C:\Inetpub\wwwcycle\vb\index.php on line 134

    Warning: Undefined variable: unregwelcomemessage in C:\Inetpub\wwwcycle\vb\index.php(281) : eval()'d code on line 29
  • JamesUS
    Senior Member
    • Aug 2000
    • 4622

    #2
    If you search these forums for "undefined variable" you will find the line you need to change in php.ini

    Comment

    • Gholsie
      Senior Member
      • Jul 2000
      • 102
      • 4.1.x

      #3
      Answer to this issue

      This reply is for others seeing the same thing.

      I did some searching and determined that my problem was due to error logging. By default, all PHP errors are sent to the screen and this is not necessary.

      I found out that you can change this by editing my PHP.INI file located in /WINNT directory. Scroll down to error logging area and modify to look like this:

      ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
      ; Error handling and logging ;
      ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
      ; error_reporting is a bit-field. Or each number up to get desired error reporting level
      ; E_ALL - All errors and warnings
      ; E_ERROR - fatal run-time errors
      ; E_WARNING - run-time warnings (non fatal errors)
      ; E_PARSE - compile-time parse errors
      ; E_NOTICE - run-time notices (these are warnings which often result from a bug in
      ; your code, but it's possible that it was intentional (e.g., using an
      ; uninitialized variable and relying on the fact it's automatically
      ; initialized to an empty string)
      ; E_CORE_ERROR - fatal errors that occur during PHP's initial startup
      ; E_CORE_WARNING - warnings (non fatal errors) that occur during PHP's initial startup
      ; E_COMPILE_ERROR - fatal compile-time errors
      ; E_COMPILE_WARNING - compile-time warnings (non fatal errors)
      ; E_USER_ERROR - user-generated error message
      ; E_USER_WARNING - user-generated warning message
      ; E_USER_NOTICE - user-generated notice message
      ; Examples:
      ; error_reporting = E_ALL & ~E_NOTICE ; show all errors, except for notices
      error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR ; show only errors
      ; error_reporting = E_ALL; display all errors, warnings and notices
      display_errors = On ; Print out errors (as a part of the output)



      If you can't see the change.. Just rem out the "error_reporting=E_ALL;".... Then, remove the rem statement for "error_reporting=E_COMPILE_ERROR|E_ERROR|E_CORE|ERROR;"

      This will change your error reporting to only show compile and core program errors.

      -- Mike

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...