Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: smtek on December 18, 2010, 06:18:44 AM

Title: [very urgent]unable to uninstall package
Post by: smtek on December 18, 2010, 06:18:44 AM
I recently installed the ad-management package, it was working fine but i thought to uninstall it and use other package

BUt when i try to uninstall i get error :

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

the error comes in :

*     2.     Execute Modification  ./Sources/Admin.php     Test failed
      1.    Replace    ./Sources/Admin.php                    Test successful
      2.    Replace    ./Sources/Admin.php                    Test failed

I have uploaded  a screenshot of the error page.. see it in the attachment

Please tell me how to uninstall it ?

Title: Re: unable to uninstall package
Post by: smtek on December 18, 2010, 06:21:30 AM
and i use smf 2.0 rc 4
Title: Re: unable to uninstall package
Post by: cicka on December 18, 2010, 08:48:55 AM
I think that that file it might be modified by another add on and when you uninstall the ad-management then it can not find the code it added. I would advice that you go ahead with the uninstallation and then use the Mod Parser to remove the ad code manually from that file.
Title: Re: unable to uninstall package
Post by: NanoSector on December 18, 2010, 08:51:15 AM
Quote from: cicka on December 18, 2010, 08:48:55 AM
I think that that file it might be modified by another add on and when you uninstall the ad-management then it can not find the code it added. I would advice that you go ahead with the uninstallation and then use the Mod Parser to remove the ad code manually from that file.
Or just click the little edit icon before the error ::)
Title: Re: unable to uninstall package
Post by: cicka on December 18, 2010, 09:10:50 AM
Quote from: Yoshi2889 on December 18, 2010, 08:51:15 AM
Quote from: cicka on December 18, 2010, 08:48:55 AM
I think that that file it might be modified by another add on and when you uninstall the ad-management then it can not find the code it added. I would advice that you go ahead with the uninstallation and then use the Mod Parser to remove the ad code manually from that file.
Or just click the little edit icon before the error ::)

That would be even better. Thank you for the reminder :)
Title: Re: unable to uninstall package
Post by: smtek on December 18, 2010, 09:52:29 AM
I clicked on the error icon it says : 

FIND :
  loadlanguage('Admin');  loadlanguage('Ads'); 
REPLACE:  loadlanguage('Admin');   



I found the admin.php and ads.php file in Sources folder..  But what to do im confused ????....
Title: Re: unable to uninstall package
Post by: Paul_Pauline on December 18, 2010, 11:18:48 AM
It means  find the first line of code, and replace it with the second.

In other words delete the section of code in red  ;)

loadlanguage('Ads');
Title: Re: unable to uninstall package
Post by: cicka on December 18, 2010, 02:02:17 PM
Yes, you should do the edits backwards.
Title: Re: unable to uninstall package
Post by: Dean313 on December 18, 2010, 02:04:36 PM
Same here, but sorry for being thread hi-jacker if that's what you want to call it.

I tried to remove the footer once I removed the mod (and it didn't even remove...) and now my whole forums crashed...

Please help by clicking the thread "Hi." under the same board.

Thanks, and again, sorry for being a thread hi-jacker. :o
Title: Re: unable to uninstall package
Post by: cicka on December 18, 2010, 02:12:27 PM
Quote from: Dean313 on December 18, 2010, 02:04:36 PM
Same here, but sorry for being thread hi-jacker if that's what you want to call it.

I tried to remove the footer once I removed the mod (and it didn't even remove...) and now my whole forums crashed...

Please help by clicking the thread "Hi." under the same board.

Thanks, and again, sorry for being a thread hi-jacker. :o

You were already getting help there. Anywayz I responed it at your threa too.
Title: Re: unable to uninstall package
Post by: smtek on December 18, 2010, 11:15:51 PM
Tell me in which file i have to make changes in admin.php or ads.php ... And what changes ... I am new to php...


or can anyone make the changes in the file and upload here... I will overwrite it...
or please tell step by step ... You all are experts and i get confused in your coversation
Title: Re: unable to uninstall package
Post by: Drunken Clam on December 19, 2010, 05:39:18 AM
Quote from: smtek on December 18, 2010, 11:15:51 PM
Tell me in which file i have to make changes in admin.php or ads.php ... And what changes ... I am new to php...


or can anyone make the changes in the file and upload here... I will overwrite it...
or please tell step by step ... You all are experts and i get confused in your coversation
You need to attach your /Sources/Admin.php file here.
Title: Re: unable to uninstall package
Post by: smtek on December 19, 2010, 07:17:21 AM
There are 2 error icons , when i click on 1 it shows
FIND :
loadlanguage('Admin');
loadlanguage('Ads');

REPLACE:  loadlanguage('Admin');   


And in second it shows

FIND

'theme' => array(
'label' => $txt['theme_admin'],
'file' => 'Themes.php',
'function' => 'ThemesMain',
'custom_url' => $scripturl . '?action=admin;area=theme;sa=admin',
'icon' => 'themes.gif',
'subsections' => array(
       'admin' => array($txt['themeadmin_admin_title']),
        'list' => array($txt['themeadmin_list_title']),
        'reset' => array($txt['themeadmin_reset_title']),
        'edit' => array($txt['themeadmin_edit_title']),
                        ),
              ),
                             'ads' => array( 'label' => $txt['ad_management'],
                             'file' => 'Ads.php', 'function' => 'Ads',
                             'custom_url' => $scripturl . '?action=admin;area=ads;sa=main',
                             'icon' => 'themes.gif',
                             'subsections' => array(
                                               'main' => array($txt['ad_management_main']),
                                               'add' => array($txt['ad_management_add']),
                                               'reports' => array($txt['ad_management_reports']),
                                               'settings' => array($txt['ad_management_settings']),
                                               'credits' => array($txt['ad_management_credits']),
                              ),
               ),


REPLACE
'theme' => array(
'label' => $txt['theme_admin'],
'file' => 'Themes.php',
'function' => 'ThemesMain',
'custom_url' => $scripturl . '?action=admin;area=theme;sa=admin',
'icon' => 'themes.gif',
'subsections' => array(
'admin' => array($txt['themeadmin_admin_title']),
'list' => array($txt['themeadmin_list_title']),
'reset' => array($txt['themeadmin_reset_title']),
'edit' => array($txt['themeadmin_edit_title']),
),
),
Title: Re: unable to uninstall package
Post by: NanoSector on December 19, 2010, 07:47:30 AM
Here, I've done all things posted.

It seems something with "pretty" was in the way on the second error. Probably PrettyURLs.
Title: Re: unable to uninstall package
Post by: smtek on December 19, 2010, 12:52:55 PM
yoshi bro now my admin panel is not opening  everytime i click on admin tab i get a white screen...

Title: Re: unable to uninstall package
Post by: NanoSector on December 19, 2010, 12:57:12 PM
Quote from: smtek on December 19, 2010, 12:52:55 PM
yoshi bro now my admin panel is not opening  everytime i click on admin tab i get a white screen...
Works fine here. Can you do CTRL + F5 when clicking on the Admin tab?
Title: Re: [very urgent]unable to uninstall package
Post by: smtek on December 19, 2010, 01:07:48 PM
See i overwritted the file... Before that everything was fine...

wat do you mean by working fine here ??

and what will happen if i press ctrl + f5 ??
Title: Re: [very urgent]unable to uninstall package
Post by: NanoSector on December 19, 2010, 01:34:30 PM
Quote from: smtek on December 19, 2010, 01:07:48 PM
See i overwritted the file... Before that everything was fine...

wat do you mean by working fine here ??

and what will happen if i press ctrl + f5 ??
It works fine on my test forum.

CTRL + F5 clears the cache for that page (on your local computer), so it completely reloads.
Title: Re: [very urgent]unable to uninstall package
Post by: smtek on December 19, 2010, 10:21:33 PM
hey yoshi bro i uploaded it again , now i can access the admin panel

But still the ad management mod cannot be uninstalled , now another error is showing in the uninstall page...

Title: Re: [very urgent]unable to uninstall package
Post by: Adish - (F.L.A.M.E.R) on December 19, 2010, 10:36:25 PM
What is the other error you are facing?
Title: Re: [very urgent]unable to uninstall package
Post by: smtek on December 19, 2010, 11:23:20 PM
@FLAMER bro see the first post i have attached the screenshot
Title: Re: [very urgent]unable to uninstall package
Post by: Adish - (F.L.A.M.E.R) on December 19, 2010, 11:36:52 PM
Click on the image (http://simplemachines.org/community/Themes/default/images/admin/package_ops.gif), it should instruct you what to do.
Title: Re: [very urgent]unable to uninstall package
Post by: smtek on December 20, 2010, 12:06:24 AM
i cant understand what to do , so i asked for help ??
Title: Re: [very urgent]unable to uninstall package
Post by: cicka on December 20, 2010, 10:47:21 AM
Quote from: smtek on December 20, 2010, 12:06:24 AM
i cant understand what to do , so i asked for help ??

As (F.L.A.M.E.R) said, if you click that icon it will show you the codes where it is failing to install.
Title: Re: [very urgent]unable to uninstall package
Post by: Adish - (F.L.A.M.E.R) on December 21, 2010, 11:20:25 AM
Just explaining a bit more to what cicka did, you'll find the icon I have mentioned in the previous post in your Package Manager (Admin --> Package Manager --> Click on Uninstall besides the modification) when uninstalling the modification. It will open up in a new window and tell you what to do. If the code is not present, then you can go ahead and hit the "uninstall" button and it should be fine.

I hope that helps. :)
Title: Re: [very urgent]unable to uninstall package
Post by: smtek on December 21, 2010, 12:16:26 PM
Thank solved ....

Special  thanks to (F.L.A.M.E.R ) and  (cicka)
Title: Re: [very urgent]unable to uninstall package
Post by: NanoSector on December 21, 2010, 01:41:39 PM
Quote from: smtek on December 21, 2010, 12:16:26 PM
Thank solved ....

Special  thanks to (F.L.A.M.E.R ) and  (cicka)
:(

Anyway, good you got it solved, I think...
Title: Re: [very urgent]unable to uninstall package
Post by: cicka on December 21, 2010, 02:05:21 PM
Quote from: smtek on December 21, 2010, 12:16:26 PM
Thank solved ....

Special  thanks to (F.L.A.M.E.R ) and  (cicka)

Happy to hear that you solved it :)