Results 1 to 5 of 5

Thread: Notice: Use of undefined constant - SOLVED

  1. #1
    Join Date
    Dec 2002
    Posts
    1,883

    Default

    Notice: Use of undefined constant visitor_alert_phrase - assumed 'visitor_alert_phrase' in C:\Program Files\Apache Group\Apache\htdocs\open-realty\include\language\english.php on line 111

    Notice: Undefined variable: sender in C:\Program Files\Apache Group\Apache\htdocs\open-realty\include\language\english.php on line 265

    Notice: Undefined variable: sender in C:\Program Files\Apache Group\Apache\htdocs\open-realty\include\language\english.php on line 266

    Notice: Undefined variable: listingID in C:\Program Files\Apache Group\Apache\htdocs\open-realty\include\language\english.php on line 266

    Notice: Undefined variable: comment in C:\Program Files\Apache Group\Apache\htdocs\open-realty\include\language\english.php on line 266

    Notice: Undefined variable: listing in C:\Program Files\Apache Group\Apache\htdocs\open-realty\include\language\english.php on line 268

    Notice: Undefined variable: sender in C:\Program Files\Apache Group\Apache\htdocs\open-realty\include\language\english.php on line 276

    Notice: Undefined variable: sender in C:\Program Files\Apache Group\Apache\htdocs\open-realty\include\language\english.php on line 277

    Notice: Undefined variable: sender_email in C:\Program Files\Apache Group\Apache\htdocs\open-realty\include\language\english.php on line 277

    Notice: Undefined variable: sender_password in C:\Program Files\Apache Group\Apache\htdocs\open-realty\include\language\english.php on line 277

    Notice: Undefined variable: comment in C:\Program Files\Apache Group\Apache\htdocs\open-realty\include\language\english.php on line 277

    Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\Program Files\Apache Group\Apache\htdocs\open-realty\include\language\english.php:111) in C:\Program Files\Apache Group\Apache\htdocs\open-realty\include\main.php on line 4

    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\Program Files\Apache Group\Apache\htdocs\open-realty\include\language\english.php:111) in C:\Program Files\Apache Group\Apache\htdocs\open-realty\include\main.php on line 4

    Notice: Undefined variable: printer_friendly in C:\Program Files\Apache Group\Apache\htdocs\open-realty\template\vertical-menu\user_top.html on line 38
    :roll:

  2. #2
    Join Date
    Jan 2004
    Location
    Minnesota
    Age
    29
    Posts
    166

    Default

    first thing to check is to see if register_globals are ON.

    next if they are... add error_reporting(0) to the top of the problem file.

  3. #3
    Join Date
    Apr 2003
    Location
    Charleville / Australia
    Posts
    1,421

    Default

    As Above with a minor change

    In common.php after <?php
    add
    Code:
     error_reporting&#40;0&#41;
    The errors you are seeing begin in the language file and could end anywhere by putting the error_reporting to 0 in the common file no page will show the errors this is a little simpler than placeing to each file.

  4. #4
    Join Date
    Feb 2004
    Posts
    10

    Default

    I read on here somewhere on how to fix this.

    Put this line of code as the SECOND line in your english.php file

    global $sender, $listing, $listingID, $comment, $sender_email, $sender_password;

  5. #5
    Join Date
    Apr 2003
    Location
    Charleville / Australia
    Posts
    1,421

    Default

    The above fix will work. BUT: it only fixes the lanuage file all other errors will still be there error_reporting(0); is the best fix

Similar Threads

  1. undefined variable[SOLVED]
    By chasferr in forum HELP (CLOSED)
    Replies: 3
    Last Post: 12-03-2007, 06:01 AM
  2. HELP errors - SOLVED
    By phoenix in forum HELP (CLOSED)
    Replies: 2
    Last Post: 03-08-2004, 12:35 PM
  3. Replies: 1
    Last Post: 03-02-2004, 01:56 AM
  4. errors when run configurator.php
    By ccworks in forum HELP (CLOSED)
    Replies: 1
    Last Post: 11-01-2003, 05:56 PM
  5. Errors with Setup
    By Anonymous in forum HELP (CLOSED)
    Replies: 11
    Last Post: 09-09-2003, 02:25 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts