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 ?
and i use smf 2.0 rc 4
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.
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 ::)
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 :)
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 ????....
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');
Yes, you should do the edits backwards.
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
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.
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
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.
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']),
),
),
Here, I've done all things posted.
It seems something with "pretty" was in the way on the second error. Probably PrettyURLs.
yoshi bro now my admin panel is not opening everytime i click on admin tab i get a white screen...
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?
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 ??
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.
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...
What is the other error you are facing?
@FLAMER bro see the first post i have attached the screenshot
Click on the image
, it should instruct you what to do.
i cant understand what to do , so i asked for help ??
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.
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. :)
Thank solved ....
Special thanks to (F.L.A.M.E.R ) and (cicka)
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...
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 :)