From: <jg...@fl...> - 2002-01-07 18:33:57
|
I've recently inherited a really old site which runs php-nuke 3.5. At least I think it's 3.5. I applied the upgrade scripts from php-nuke to get it up to 4.4. This took a little hacking because they had syntax errors but I believe I got it to work. I then did the post-nuke install and used the upgrade option for php-nuke 4.4. Here's the ouput from my upgrade: Table faqaategories is already as it should be. No need to rename itTable faqcategories is already as it should be. No need to rename itConverting old-style button blocks...Done converting old-style button blocks * Updating table: autonews... Skipped! * Updating table: blocks... Skipped! * Updating table: ephem... Skipped! * Updating table: faqcategories... Skipped! * Updating table: message... Skipped! * Updating table: poll_desc... Skipped! * Updating table: queue... Skipped! * Updating table: reviews... Skipped! * Updating table: reviews_add... Skipped! * Updating table: seccont... Skipped! * Updating table: stories... Skipped! Stories Authors Updated Migrated Admins to User Table * Write error* unable to update your "config.php" file You will have to modify this file yourself using a text editor. Here are the changes required: $pnconfig['dbtype'] = 'mysql'; $pnconfig['dbhost'] = 'localhost'; $pnconfig['dbuname'] = 'my_user'; $pnconfig['dbpass'] = 'xxxxxxxxxx' $pnconfig['dbname'] = 'nuke'; $pnconfig['prefix'] = 'my_prefix'; Finished -- Your upgrade to the latest version of PostNuke is finished. Remember to change your config.php settings before using for the first time. The above error I was believe due to file ownership issues. I hand edited the files with the appropiate information. When I went to my site I recieved the following errors: *Warning*: Invalid argument supplied for foreach() in */var/www/Rogue_Seven_Oh_Two/html/includes/security.php* on line * 359* *Warning*: Invalid argument supplied for foreach() in */var/www/Rogue_Seven_Oh_Two/html/includes/security.php* on line *359* *Warning*: Cannot add header information - headers already sent by (output started at /var/www/Rogue_Seven_Oh_Two/html/includes/security.php:359) in */var/www/Rogue_Seven_Oh_Two/html/mainfile2.php* on line *164 ** This error is a result of the above I believe: Fatal error*: Call to a member function on a non-object in */var/www/Rogue_Seven_Oh_Two/html/mainfile2.php* on line *264* Line 359 of security.php puts me in this function: function getLevel($perms, $testrealm, $testcomponent, $testinstance) { $level = ACCESS_INVALID; // If we get a test component or instance purely consisting of ':' signs // then it counts as blank $testcomponent = preg_replace('/^:*$/', '', $testcomponent); $testinstance = preg_replace('/^:*$/', '', $testinstance); foreach ($perms as $perm) { // <-- Line 359 I'm posting this to see if this has happened to anyone else or if anyone knows of a quick fix. I'm still trying to track down the source of the error. BTW, great work on postnuke, especially the theme management! TIA, Jesse * * |