Author |
Message |
hamster
Hangin' Around
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Mar 19, 2009
Posts: 42
|
Posted:
Thu Mar 19, 2009 1:44 pm |
|
I hope this is the correct forum...
I inherited a website and it's time to freshen things up. The 'Version Number add on' says the current Nuke version is 7.8.
The current phpbb is 2.0.15.
Plan is to perform downgrade/switches locally.
I'm missing a step in getting this site to run locally though. Here's what the error logs say.
apache_error_log (last line)
Thu Mar 19 11:41:59 2009] [notice] caught SIGTERM, shutting down
mysql_error_log
empty
php_error.log (last line)
[19-Mar-2009 11:41:54] PHP Notice: import_request_variables() [<a href='function.import-request-variables'>function.import-request-variables</a>]: No prefix specified - possible security hazard in /Users/*/*/*/html/mainfile.php on line 64
mainfile.php
Code:$phpver = explode(".", $phpver);
$phpver = "$phpver[0]$phpver[1]";
if ($phpver >= 41) {
$PHP_SELF = $_SERVER['PHP_SELF'];
}
if (!ini_get("register_globals")) {
import_request_variables('GPC');
}
if(isset($admin))
{
$admin = base64_decode($admin);
$admin = addslashes($admin);
$admin = base64_encode($admin);
}
if(isset($user))
{
$user = base64_decode($user);
$user = addslashes($user);
$user = base64_encode($user);
}
function makePass() {
$cons = "bcdfghjklmnpqrstvwxyz";
$vocs = "aeiou";
for ($x=0; $x < 6; $x++) {
mt_srand ((double) microtime() * 1000000);
$con[$x] = substr($cons, mt_rand(0, strlen($cons)-1), 1);
$voc[$x] = substr($vocs, mt_rand(0, strlen($vocs)-1), 1);
}
mt_srand((double)microtime()*1000000);
$num1 = mt_rand(0, 9);
$num2 = mt_rand(0, 9);
$makepass = $con[0] . $voc[0] .$con[2] . $num1 . $num2 . $con[3] . $voc[3] . $con[4];
return($makepass);
|
Other questions...
Does the phpbb have to upgraded prior to downgrading phpnuke?
Do I downgrade to 76.phpnuke THEN switch to Raven? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
fkelly
Former Moderator in Good Standing
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY
|
Posted:
Thu Mar 19, 2009 2:31 pm |
|
There is a section in the HowToInstall manual that comes with the latest RN 2.3.01 distribution and discusses upgrading from other Nuke version. Take a look. In addition use the search feature here to find the many threads that have discussed these issues.
RN2.3.01 will upgrade you to the latest PHPBB 2.x. You will need to be "downgraded" to 7.6 before switching over to RN ... unless you can trash the contents of the site and just start over (which would be much simpler).
I'm not sure what's happening with your Import_request_variables unless you have a new version of PHP that is objecting. Import request variables is not a recommended technique but we have to use it within mainfile because so much of the legacy *nuke code is dependent on it ... including many third party modules that we have no control over. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hamster
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Mar 19, 2009 3:06 pm |
|
Thank you.
I've read a few very informative threads as well as the how to.
The how to makes it sound like the phpbb has to be upgraded.
"You will have to execute each in succession starting from your current version up to 2.0.22." I was unclear if that was before, during or after.
The site is currently running php4.3
Locally php4.4
Seems like the local site should be functioning in order to run the downgrade78-76.php, no?
The site has been around for many years so there's quite a bit of forum data I'd like to retain, if at all possible. That's why the downgrade switch. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
Site Admin
![](modules/Forums/images/avatars/0c0adf824792d6d341ef4.gif)
Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Sat Mar 21, 2009 8:34 am |
|
I would think that 4.4 is perfectly fine, although I wish folks would push on their hosts to move to 5.2.x. At least that is our direction for RN.
Unfortunately I am not an Apache expert or PHP setup expert, but am wondering if you have PHP in Safe mode in our local setup? If so, you might try turning that off in the php.ini.
With regards to the forums, the needed upgrade scripts should be in the following zip file within the distro:
UtilityFiles/bbtonuke_upgrades.zip
If you are at 2.0.15, you will needed to put each script into your root directory and run it, starting with upgrade15-16.php. However, stop SHORT of running upgrade22-23.php as the INSTALLATION/rndb_upgrade.php script will take care of upgrading everything else. |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hamster
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Mar 21, 2009 12:07 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hamster
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Mar 21, 2009 4:06 pm |
|
sorry |
Last edited by hamster on Sun Mar 22, 2009 9:15 pm; edited 1 time in total |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hamster
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Mar 22, 2009 9:19 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Mar 25, 2009 8:29 am |
|
Was there another there? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hamster
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Mar 25, 2009 12:10 pm |
|
Ok. Making headway. Thanks for the help. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|