• Welcome to Simple Machines Community Forum. Please login or sign up.
October 18, 2021, 02:06:50 PM

News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord


[very urgent]unable to uninstall package

Started by smtek, December 18, 2010, 06:18:44 AM

Previous topic - Next topic

smtek

December 18, 2010, 06:18:44 AM Last Edit: December 19, 2010, 12:54:50 PM by smtek
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 ?

http://thetekwar.com

^ Your entry to the best tech community

smtek

http://thetekwar.com

^ Your entry to the best tech community

cicka

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.

NanoSector

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 ::)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

cicka

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 :)

smtek

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 ????....
http://thetekwar.com

^ Your entry to the best tech community

Paul_Pauline

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');
"In every life, no matter how full or empty one's purse, there is tragedy. It is the one promise life always fulfills.
Happiness is a gift and the trick is not to expect it, but to delight in it when it comes and to add to other people's store of it."
Pauline was one of those rare people who increased the store of happiness in the world.

cicka

Yes, you should do the edits backwards.

Dean313

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

cicka

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.

smtek

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
http://thetekwar.com

^ Your entry to the best tech community

Drunken Clam

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.

smtek

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']),
),
),
http://thetekwar.com

^ Your entry to the best tech community

NanoSector

Here, I've done all things posted.

It seems something with "pretty" was in the way on the second error. Probably PrettyURLs.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

smtek

yoshi bro now my admin panel is not opening  everytime i click on admin tab i get a white screen...

http://thetekwar.com

^ Your entry to the best tech community

NanoSector

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?
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

smtek

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 ??
http://thetekwar.com

^ Your entry to the best tech community

NanoSector

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.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

smtek

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

http://thetekwar.com

^ Your entry to the best tech community

Adish - (F.L.A.M.E.R)


Advertisement: