SimplePortal

Support => Install and Upgrade => Topic started by: mannyz on November 25, 2011, 08:51:59 PM

Title: Uninstalling Simpleportal 2.3.3 Crashed Site
Post by: mannyz on November 25, 2011, 08:51:59 PM
Ok I did my backup from inside the SMF. Uninstalled SimplePortal 2.3.3, and site crashed. This is what I get:

Fatal error: Call to undefined function sportal_init() in /home/xecoflc/public_html/forum/index.php on line 203
Title: Re: Uninstalling Simpleportal 2.3.3 Crashed Site
Post by: Where's Waldo? on November 25, 2011, 10:09:36 PM
First off you should never back up from within Simple. It is unreliable and some say it's broken. You should use server side backup tools.

Did you get any errors listed during the un install process?
Title: Re: Uninstalling Simpleportal 2.3.3 Crashed Site
Post by: mannyz on November 25, 2011, 10:17:55 PM
Well thanks for the warning. I will remember that. I am asking my hosting people to restore a backup from today. but Funny you asked. yes when I was uninstalling it says:

"Error 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."

It was erroring out in the index.php
Title: Re: Uninstalling Simpleportal 2.3.3 Crashed Site
Post by: Where's Waldo? on November 25, 2011, 10:26:38 PM
Have you updated SMF to 2.0.1 ? or are you still running RC5?
Title: Re: Uninstalling Simpleportal 2.3.3 Crashed Site
Post by: mannyz on November 25, 2011, 11:18:05 PM
Have you updated SMF to 2.0.1 ? or are you still running RC5?

No I was on RC4 2.0.1
Title: Re: Uninstalling Simpleportal 2.3.3 Crashed Site
Post by: Chen Zhen on November 25, 2011, 11:39:13 PM

When uninstalling any modifications you should always parse any file edits that flag errors.
Other mods installed after SP that changed some of your SMF files caused SP to loose its placement markers for un-installation.
In other words, you ignored errors during the uninstall process which left code behind in some of your files and is now causing errors.

Next time you uninstall something that shows errors..

- finish the uninstall process (to commence the other reverse file edits that are ok)
- use the back button in your browser to view the screen that displayed the flagged errors
- use FTP to parse the flagged reverse edits
- delete unwanted/outdated mod



At this point unless you can still go back in your browser to that same SP uninstall screen, it will be difficult to pinpoint all the necessary reverse edits.

The undefined function error that is causing your forum to crash is located in the index.php file of your main directory.
Navigate to that file via FTP and remove the following code from it:
Code: [Select]
// Load SimplePortal.
sportal_init();   

Title: Re: Uninstalling Simpleportal 2.3.3 Crashed Site
Post by: mannyz on November 26, 2011, 12:28:57 AM
Well i know it was my fault for now doing a proper backup, normally when I get those errors are not that major and the install or uninstall goes fine, but this time i guess it didnt go well.

Thanks for the location of the file, yes indeed by deleting that section the site is back to normal. And I was able to install the newest version. Thanks for that and sorry for the troubles.

Next time I will watch what I do.
Title: Re: Uninstalling Simpleportal 2.3.3 Crashed Site
Post by: Chen Zhen on November 26, 2011, 01:11:12 AM
Well i know it was my fault for now doing a proper backup, normally when I get those errors are not that major and the install or uninstall goes fine, but this time i guess it didnt go well.

Thanks for the location of the file, yes indeed by deleting that section the site is back to normal. And I was able to install the newest version. Thanks for that and sorry for the troubles.

Next time I will watch what I do.

You're welcome.

If there were more errors you ignored, you may come across other issues and/or errors in your log related to that faulty uninstall process. You can always come back for support and we'll take it from there when/if something occurs.
Title: Re: Uninstalling Simpleportal 2.3.3 Crashed Site
Post by: AngelinaBelle on November 28, 2011, 01:07:41 PM
One nice feature of SMF is that it backs up files before every package installation.
You will find this file backup in your Packages/backups directory.

But it looks like the uninstall did not go perfectly, perhaps because another mod installed after simpleportal confused the package manager, which only knows what the affected lines should have looked like right after SimplePortal was installed.

You can do a manual uninstall for that line.

The next time you need to do this, take careful notes on all the "test failed" lines -- click on the little pencil icon to see which lines are affected, and keep count of how many manual changes you'll have to make.

You can get pretty much the same information from the manual install instructions at simplemachines.org.
Use the "parse" link on the mod's page for your version of SMF and SP.

Then find the lines in your files and undo-the install changes yourself.
In your case, removing the line about sportal_init() will get rid of the error you reported in your first post.
Title: Re: Uninstalling Simpleportal 2.3.3 Crashed Site
Post by: Mike Vail on December 06, 2011, 11:04:50 PM
This was very helpful. Thank you. I had the same problem and also had to delete the below line from my index.php in order to get past the database error:

Code: [Select]
require_once($sourcedir . '/Subs-Portal.php');
The upgrade to 2.3.4 was successful after that. Now to upgrade to SMF 2.0 from my wonderul stable 1.5 version. Very scared.

Thanks again!
SimplePortal 2.3.8 © 2008-2024, SimplePortal