SimplePortal

Support => Install and Upgrade => Topic started by: Ang on February 10, 2010, 04:32:34 PM

Title: SP 2.3.1 on SMF 1.1.11 -- BoardIndex.php test failed
Post by: Ang on February 10, 2010, 04:32:34 PM
Let me start by saying 1) thank you for creating an awesome-looking portal for use with SMF, 2) I know absolutely nothing about PHP and I inherited the forum I'm running from someone who lost interest. So I may need some really basic assistance with this stuff.

When I try to install SimplePortal 2.3.1 on my board running SMF 1.1.11, it says:

4.     Execute Modification     ./Sources/BoardIndex.php     Test failed

(all of the other lines are successful)


These are the packages I have installed:
    Mod Name     Version     
1.    SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update    1.0    [ Uninstall ]
2.    Single Category    1.0    [ Uninstall ]
3.    SMF 1.0.14 / 1.1.6 Update    1.0    [ Uninstall ]
4.    SMF 1.0.15 / 1.1.7 Update    1.0    [ Uninstall ]
5.    SMF 1.0.16 / 1.1.8 Update    1.0    [ Uninstall ]
6.    reCAPTCHA for SMF    0.9.5.4a    [ Uninstall ]
7.    Stop Spammer    2.2    [ Uninstall ]
8.    SMF 1.0.17 / 1.1.9 / 2.0 RC1 Update    1.0    [ Uninstall ]
9.    SMF 1.0.18 / 1.1.10 / 2.0 RC1-2 Update    1.1    [ Uninstall ]
10.    SMF 1.0.19 / 1.1.11 Update    1.0    [ Uninstall ]

I installed the 1.1.9 -> 1.1.10 and 1.1.10 -> 1.1.11 patches, but everything else was already installed when I inherited the forum. I can't figure out what #2, "Single Category" is even for, and it won't let me uninstall it (it says there isn't an uninstaller -- I tried just to see if the files it listed would make it any clearer as to what that mod is actually for.)

I saw in another topic that it was recommended to just go ahead with the install and then find/replace code in the file as detailed here (http://custom.simplemachines.org/mods/index.php?action=parse;mod=1104;attach=120231;smf_version=1.1.10). I have not done that yet, but I tried opening up the boardindex.php file in notepad as it is now and searching for the "'href' => $scripturl . '#' . $row_board['ID_CAT']," line, and it was not there. Is that line only there after SP has been installed? Could another mod have changed it so that that line isn't there, in which case I won't be able to find/replace properly?

I'm just really afraid I'm going to mess the whole site up and not be able to fix it because I don't know anything about PHP, or anything more complicated than Geocities-level HTML. Thank you so much for your assistance. If it matters, the site is located at http://forum.beat-wings.com.
Title: Re: SP 2.3.1 on SMF 1.1.11 -- BoardIndex.php test failed
Post by: Nathaniel on February 10, 2010, 05:51:03 PM
Its quite possible that another mod has changed that file so that SimplePortal cannot install.

Firstly, never ever use notepad as a code editor. Use a decent code editor like Notepad++ (http://notepad-plus.sourceforge.net/uk/site.htm).

If you can attach that file (preferably a copy of it before you tried to edit it with notepad - that is only an issue if you actually made an edit) then I would be happy to have a look at the issue.
Title: Re: SP 2.3.1 on SMF 1.1.11 -- BoardIndex.php test failed
Post by: Ang on February 10, 2010, 06:06:59 PM
Thanks for being so quick!

I've attached the boardindex.php file. I did not actually make any edits to it -- when I couldn't find the right string of code, I left it alone.
Title: Re: SP 2.3.1 on SMF 1.1.11 -- BoardIndex.php test failed
Post by: Nathaniel on February 10, 2010, 06:20:54 PM
I have made the relevant edit, there was a piece of Tinyportal code that was stopping that edit from working.

Seeing as you don't have tinyportal in your mod list, I am guessing that you had it previously? Its not a good idea to have TP and SP installed at the same time, partly because of errors like this.

With the attached file you should be able to install SimplePortal. Upload the attached file then continue with the install process.
Title: Re: SP 2.3.1 on SMF 1.1.11 -- BoardIndex.php test failed
Post by: Ang on February 10, 2010, 06:28:45 PM
Hmm -- that is very strange. As far as I know tinyportal has never been used in conjunction with our forum... before I became the maintainer, our site was always just the forum by itself with a few separate pages. Maybe the original maintainer tried it out very briefly or something.

Either way, it seems to have worked. Thank you so much for your help!
SimplePortal 2.3.8 © 2008-2024, SimplePortal