PHP Upgrade Issues
PHP 5.3
GOTO
GOTO is a reserved word in PHP 5.3. Users still running TNG v.6.2.0 b will receive the following error
Parse error: syntax error, unexpected T_GOTO, expecting ']' in /home/sorenson/public_html/English/text.php on line 649
Update the $text variables to use single quotes around the goto
649$text['goto'] = "Select a page";
PHP 5.4
session_register
PHP 5.4 which no longer has session_register. Users still running any TNG version less than TNG 9.0.4 will receive the following error
Fatal error: Call to undefined function session_register () in G: \ xampp \ htdocs \ genhcn \ session_register.php on line 2
TNG 9.0.2 or later is required to fix this issue if your hosting service or your local computer WAMP or XAMPP environment is at PHP 5.4
PHP 5.4.3
$_POST
Apparently before 5.4.3 PHP did not care that $_POST could be defined in a function, but now in 5.4.3 it complains loudly. Since a syntax error is being returned and error processing is suppressing the error, the Mod Manager status screen is returned as blank. The fix is to make the following changes:
line (835) in managemods.class.php change:
835function mod_edit_action($config_name, $_POST) {
to:
835function mod_edit_action($config_name) {
Then in admin_modmanager.php" change where the function is called on line 218 from:
218$mod_status = $modmgr->mod_edit_action($edit_mod_confirmed, $_POST);
to read:
218$mod_status = $modmgr->mod_edit_action($edit_mod_confirmed);
TNG 9.0.4 or later is required to fix this issue if your hosting service or your local computer WAMP or XAMPP environment is at PHP 5.4.3
PHP 5.5
Requires a minimum of TNG 9.2.2 according to reply posted by Darrin on the tnguser2 list.
PHP 7.0
Will require TNG 11 since ereg_replace which has been deprecated since PHP 5.3.0 has been removed in PHP 7.0 See ereg-replace.php
The readme.html full install results in a fatal error
PHP Fatal error: Uncaught Error: Call to undefined function eregi() in /home/account/public_html/ajx_tnginstall.php:215
Related Links
See PHP 5.4 Migration Incompatibilities
See PHP 5.5 Migration Incompatibilities