Zen Cart Logo
Forums / All Other Contributions/Addons / How to Remove a half-installed broken add-on?

How to Remove a half-installed broken add-on?

Views: 756

Results 1 to 5 of 5
6 Nov 2011, 10:09 PM
#1
joejoejoe avatar

joejoejoe

Zen Follower

Join Date:
Oct 2011
Location:
AZ
Posts:
383
Plugin Contributions:
0

How to Remove a half-installed broken add-on?

I'm in a ZC cleaning mode. Next item to be cleaned is to finish removing a broken add-on module: Google Froogle. I started to install it about 9 months ago. I never got it working - i got it to show on the admin panel under tools but that was as far as I ever got. Then when I moved my store over to a new server I left a few things that might have said google froogle behind. (I don't remember if they were files, or a folder.) Today while surfing around the control panel I noticed the tools menu still said "Google Froogle". Just looking at it gave me an error log:
PHP Warning: opendir(/home/myname/public_html/GOOGLE_FROOGLE_DIRECTORY) [<a href='function.opendir'>function.opendir</a>]: failed to open dir: No such file or directory in /home/myname/public_html/certainunmamedadminfolder/googlefroogle.php on line 185

How do I finish the uninstall since I no longer have the file(s) or access to any uninstall script, which probably wouldn't run if parts were missing?

1.3.9h on a Linux server.

6 Nov 2011, 10:20 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: How to Remove a half-installed broken add-on?

If you can get a copy of the same version that you installed, then you can unpack the module and see what folders and files are involved.

If core file OVERWRITES were neccesary, then you need to "protect" those files by comparing them (winmerge) with their core originals, and backing them up somewhere. Then you need to assess what parts of the code can be removed safely, before sending the file(s) back to the server.

Then, it should be safe to remove all other files.

The mod will have a install SQL, and might have an Uninstall counterpart.

BACK UP YOUR DATABASE before running any uninstall SqL/

20 years a Zencart User

6 Nov 2011, 10:25 PM
#3
joejoejoe avatar

joejoejoe

Zen Follower

Join Date:
Oct 2011
Location:
AZ
Posts:
383
Plugin Contributions:
0

Re: How to Remove a half-installed broken add-on?

Oh this sounds like work. I might slide this one a bit farther down on the to-do list.......

6 Nov 2011, 10:27 PM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: How to Remove a half-installed broken add-on?

joejoejoe:

Oh this sounds like work. .......

Not really... probably no more than 20 minutes.

20 years a Zencart User

6 Nov 2011, 11:09 PM
#5
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,875
Plugin Contributions:
7

Re: How to Remove a half-installed broken add-on?

On this particular add-on the sql uninstall should work fine to remove the configuration options.

For the files just compare the file and folder structure of the mod with your shop (with Beyond Compare for example) and it should be easy to see what files have been left behind.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...