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 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
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
unexpected T_STRING - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: Installation (https://forums.formtools.org/forumdisplay.php?fid=4)
+--- Thread: unexpected T_STRING (/showthread.php?tid=1547)



unexpected T_STRING - hammour - Aug 18th, 2011

i installed the application and gives me this error:

Parse error: syntax error, unexpected T_STRING in D:\Hosting\3126654\html\formtools\global\config.php on line 8


the URL: http://www.slicksolutionslubrication.com/formtools/install/

plz advice?
this is the config info
<?php

// main program paths - no trailing slashes!
$g_root_url = "http://artdell.com/formtools/";
$g_root_dir = "D:\Hosting\3126654\html\formtools\";

// database settings
$g_db_hostname = "slicksolutions.db.3126654.hostedresource.com";
$g_db_name = "slicksolutions";
$g_db_username = "slicksolutions";
$g_db_password = "****";
$g_table_prefix = "ft_";

?>


RE: unexpected T_STRING - Ben - Aug 19th, 2011

Hi Hammour,

Sorry you're having trouble! Did the installation script create the config.php itself, or did you manually create it? I just noticed that the $g_root_url and $g_root_dir vars both have trailing slashes (they shouldn't!)

Also, on Windows systems, the backslashes are escaped - the installation script should have generated file contents with those already escaped. So try changing the first lines to this:

PHP Code:
// main program paths - no trailing slashes!
$g_root_url "http://artdell.com/formtools";
$g_root_dir "D:\\Hosting\\3126654\\html\\formtools"

Let me know if you still have problems!

- Ben