FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Installation Issues » trying to upgrade my fudforum
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
trying to upgrade my fudforum [message #162711] Tue, 06 July 2010 20:15 Go to previous message
wittrs is currently offline  wittrs   United States
Messages: 134
Registered: August 2009
Karma:
Senior Member
Greetings.

I'm trying to upgrade my fudforum without experiencing message loss. I have uploaded the upgrade script, but it appears that my fudforum is too old. Do you have any advice for me?

This is the error message that appears when you access the php upgrade script. I hasten to say that, to me, it seems like the thing has some real issues!
========================

FUDforum $val) { if (!is_array($val)) { $in[$k][$key] = stripslashes($val); continue; } $in[] =& $in[$k][$key]; } } unset($in); if (!empty($_FILES)) { foreach ($_FILES as $k => $v) { $_FILES[$k]['name'] = stripslashes((string)$v['name']); } } } $GLOBALS['PAGE_TIME'] = gettimeofday(); define('__request_timestamp__', $GLOBALS['PAGE_TIME']['sec']); mt_srand($GLOBALS['PAGE_TIME']['usec']); // Load and initialize the plugin handler if ($GLOBALS['FUD_OPT_3'] & 4194304) { // Plugins enabled include_once $GLOBALS['INCLUDE'] . 'plugins.inc'; plugin_activate_enbled(); } function fud_use($file, $static=0) { if ($static) { include_once $GLOBALS['INCLUDE'] . $file; return; } if (!defined('fud_theme')) { define('fud_theme', 'theme/default/'); } include_once $GLOBALS['INCLUDE'] . fud_theme . $file; } function get_random_value($bitlength=32) { $n = round($bitlength/32); $v=''; while (--$n > -1) { $v .= mt_rand(); } return $v; } function get_ip() { if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { $ip = strtok($_SERVER['HTTP_X_FORWARDED_FOR'], ','); do { if (($lip = ip2long($ip)) === -1) { continue; } /* some disallowed ip ranges, that are normally used for private networks * 10.0.0.0 - 10.255.255.255 * 172.16.0.0 - 172.31.255.255 * 192.168.0.0 - 192.168.255.255 * 127.0.0.1, 255.255.255.255, 0.0.0.0 */ if (!$lip || (($lip >= 167772160) && ($lip <= 184549375)) || (($lip >= -1408237568) && ($lip <= -1407188993)) || (($lip >= -1062731776) && ($lip <= -1062666241)) || ($lip == 2130706433)) { continue; } return long2ip($lip); } while (($ip = strtok(','))); } return (isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : '0.0.0.0'); } function ssn($str) { if ($str === null || $str === '') { return 'NULL'; } return _esc($str); } function char_fix($str) { if (strpos($str, '&#') === false) { return $str; } return preg_replace('!&#([0-9]+);!', '&#\1;', $str); } function __ffilesize($fp) { $st = fstat($fp); return (isset($st['size']) ? $st['size'] : $st[7]); } function __fud_cache($t) { if ($GLOBALS['FUD_OPT_3'] & 65536 || $GLOBALS['is_aol']) { return 0; } $mod = gmdate('D, d M Y H:i:s', $t) . ' GMT'; /* send caching headers */ header('Last-Modified: ' . $mod); if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) && !isset($_SERVER['HTTP_RANGE']) && $_SERVER['HTTP_IF_MODIFIED_SINCE'] == $mod) { header('HTTP/1.1 304 Not Modified'); header('Status: 304 Not Modified'); return 1; } return 0; } function fud_sql_error_handler($query, $error_string, $error_number, $server_version) { if (db_locked() && !in_array($query, array('COMMIT','COMMIT WORK','UNLOCK TABLES'))) { db_unlock(); } $_SERVER['PATH_TRANSLATED'] = ''; foreach (debug_backtrace() as $v) { $_SERVER['PATH_TRANSLATED'] .= "{$v['file']}:{$v['line']}
\n"; } $error_msg = "(".$_SERVER['PATH_TRANSLATED'].") ".$error_number.": ".$error_string."
\n"; $error_msg .= "Query: ".htmlspecialchars($query)."
\n"; if (!empty($_GET)) { $error_msg .= "_GET: "; if (count($_GET, 1) < 100) { $error_msg .= htmlspecialchars(var_export($_GET, 1)); } else { $error_msg .= "Too many vars: ".count($_GET, 1); } $error_msg .= "
\n"; } if (!empty($_POST)) { $error_msg .= "_POST: "; if (count($_POST, 1) < 100) { $error_msg .= htmlspecialchars(var_export($_POST, 1)); } else { $error_msg .= "Too many vars: ".count($_POST, 1); } $error_msg .= "
\n"; } $error_msg .= "Server Version: ".$server_version."
\n"; if (isset($_SERVER['HTTP_REFERER'])) { $error_msg .= "[Referring Page] ".htmlspecialchars($_SERVER['HTTP_REFERER'])."
\n"; } $pfx = sprintf("?%-10d?%-10d?", strlen($error_msg) + 1, __request_timestamp__); ini_set('log_errors_max_len', 0); if (!error_log($pfx.$error_msg."\n", 3, $GLOBALS['ERROR_PATH'].'sql_errors')) { echo "UNABLE TO WRITE TO SQL LOG FILE
\n"; echo $error_msg; } else { if (defined('forum_debug') || (isset($GLOBALS['usr']->users_opt) && $GLOBALS['usr']->users_opt & 1048576)) { echo $error_msg; } else { trigger_error('SQL Error has occurred, please contact the administrator of the forum and have them review the forum's SQL query log', E_USER_ERROR); if (ini_get('display_errors') !== 1) { exit('SQL Error has occurred, please contact the administrator of the forum and have them review the forum's SQL query log'); } } } exit; } ?> must be upgraded to FUDforum version 3.0.0 before it can be upgraded to later release.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Call to undefined function mb_substr()
Next Topic: Trying to upgrade from2.7.7 to 3.0.1
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Jun 26 08:07:08 GMT 2024

Total time taken to generate the page: 0.05445 seconds