Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Install and Upgrade Help => Aiheen aloitti: De^^on - helmikuu 23, 2011, 03:31:13 AP

Otsikko: error on installing SMF 2.0 RC4 Security Patch 1.0
Kirjoitti: De^^on - helmikuu 23, 2011, 03:31:13 AP
LainaaError in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

1. Execute Modification ./SSI.php Test failed
  1. Replace ./SSI.php Test failed
  2. Replace ./SSI.php Test successful

What do i do next?

Otsikko: Re: error on installing SMF 2.0 RC4 Security Patch 1.0
Kirjoitti: Illori - helmikuu 23, 2011, 05:43:34 AP
you will have to manually edit that file to apply the patch to it.
Otsikko: Re: error on installing SMF 2.0 RC4 Security Patch 1.0
Kirjoitti: kat - helmikuu 23, 2011, 06:01:06 AP
I got that error, when I upgraded mine.

I just ignored it and everything went fine. As long as you backup, first, just in case, you should be OK. :)

Then, you can do the manual edit, if you want.

I didn't bother. ;)

Just to save you looking for the edits, these are they, as it were:

Find:
// Load the stuff like the menu bar, etc.
if (isset($ssi_layers))

Replace with:
// Do we allow guests in here?
if (empty($ssi_guest_access) && empty($modSettings['allow_guestAccess']) && $user_info['is_guest'] && basename($_SERVER['PHP_SELF']) != 'SSI.php')
{
require_once($sourcedir . '/Subs-Auth.php');
KickGuest();
obExit(null, true);
}

// Load the stuff like the menu bar, etc.
if (isset($ssi_layers))


Find:
if (isset($_GET['ssi_function']) && function_exists('ssi_' . $_GET['ssi_function']))

Replace with:
if (isset($_GET['ssi_function']) && function_exists('ssi_' . $_GET['ssi_function']) && (!empty($modSettings['allow_guestAccess']) || !$user_info['is_guest']))

It's so easy, that even I can do it! ;)
Otsikko: Re: error on installing SMF 2.0 RC4 Security Patch 1.0
Kirjoitti: Illori - helmikuu 23, 2011, 06:12:10 AP
Lainaus käyttäjältä: K@ - helmikuu 23, 2011, 06:01:06 AP
Find:
* =============================================================================== *
* Software Version:           SMF 1.1.7                                           *

Replace with:
* =============================================================================== *
* Software Version:           SMF 1.1.13                                          *


I thought this was posted in 2.0 support??
Otsikko: Re: error on installing SMF 2.0 RC4 Security Patch 1.0
Kirjoitti: kat - helmikuu 23, 2011, 06:16:22 AP
OOPS!

I'll edit that.

Ta, Illori!
Otsikko: Re: error on installing SMF 2.0 RC4 Security Patch 1.0
Kirjoitti: kat - helmikuu 23, 2011, 06:20:16 AP
Ha!

Even easier, that. :)
Otsikko: Re: error on installing SMF 2.0 RC4 Security Patch 1.0
Kirjoitti: De^^on - helmikuu 24, 2011, 04:43:27 AP
Thank you for the support  ::)
Otsikko: Re: error on installing SMF 2.0 RC4 Security Patch 1.0
Kirjoitti: Masterd - helmikuu 24, 2011, 05:14:57 AP
Is your problem solved? If it is then just click on the green button in the left corner. :)
Otsikko: Re: error on installing SMF 2.0 RC4 Security Patch 1.0
Kirjoitti: JimM - maaliskuu 01, 2011, 08:47:15 IP
If this is solved, please mark it solved by clicking the Mark Topic Solved link at the bottom left.