The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(257) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/printthread.php(257) : eval()'d code 2 errorHandler->error
/printthread.php 257 eval
/printthread.php 117 printthread_multipage
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
Placeholders - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5)
+--- Thread: Placeholders (/showthread.php?tid=23)

Pages: 1 2


RE: Placeholders - Kimberly - Apr 13th, 2009

(Apr 9th, 2009, 6:06 PM)Ben Wrote: Ahh... now I get it. Smile

I've turned up error reporting to a very high setting for the FT2 beta - just so that little errors like these get reported. They shouldn't occur, and often they can explain bigger bugs. So once FT2 is finally released as a main build, the error reporting option will be turned down to errors only and you won't see these warnings.

But to fix it in the meantime, add a "@" character before outputting each variable. For example:

PHP Code:
<?php 
$a1 
= @$_GET['Guest_1_Given_Name'];
if (!empty(
$a1)) { ?>
  <tr>
    <td style='font-weight: bold'>Guest 1 : </td>
    <td><?=@$_GET['Guest_1_Given_Name']?> <?=@$_GET['Guest_1_Surname']?> </td>
    </tr>
  <tr>
          <td style='font-weight: bold'>Guest 1 Status : </td>
          <td><?=@$_GET['Guest_1_Status']?> </td>
      </tr>
      <tr>
          <td style='font-weight: bold'>Guest 1 Meal : </td>
          <td><?=@$_GET['Guest_1_Meal']?> </td>
      </tr>
<?php ?>

The "@" symbol suppresses warnings for non-defined variables like these.

Hope this helps!

- Ben

OH, OK, thanks a lot Ben. In case we don't say it often enough, we really appreciate what you do.