Sometimes on some server setups these things do just happen without clear cause, but if any errors in uninstallation come up, it can many times be solved by following the original installation order in reverse until the right package comes up.
Thanks for your reply Aleksi, however I can't follow that process in this case as there have been 4 versions of BetterMessagesMenu installed the latest version is suddenly throwing up uninstall errors. All the previous versions were uninstalled as soon as it was evident they didn't work, none of those threw out errors on uninstallation, but I can't install any of those previous versions as having the latest version installed prevents this. So I'm presently stuck with bits of code I can't get rid of and don't know if they will eventually cause problems somewhere. Not sure what to do?
You can check the mod xml file and undo the edits manually. Or you can overwrite your forum files with files from a freshly downloaded smf. Note to download the version that you are using and do not leave any install and/or upgrade files as they seem to pose a security issue. You must also note that doeing this will uninstall all mods. You can re install them again though.
Hi doug
Thanks for your suggestion, I'm learning a lot about SMF in a short time, it's all good : )
Checked, and there are three xml files. One is the package-info.xml which doesn't write any changes. The other two are "language_english.xml" which writes to Profile.English.php. Easy to just remove that txt.
Dougiefresh Please Note: The text has been written twice at the bottom of this file, so could be a previous uninstall from an earlier version left it behind.
and ... "install_20x.xml" which writes the following to Loap.php, Profile-Modify.php and PersonalMessage.php:
<file name="$sourcedir/Load.php">
<!-- loadUserSettings function -->
<operation>
<search position="before"><![CDATA['permissions' => array(),]]></search>
<add><![CDATA[
'bmm_mode' => isset($user_settings['bmm_mode']) ? $user_settings['bmm_mode'] : 0,]]></add>
</operation>
</file>
<file name="$sourcedir/Profile-Modify.php">
<operation>
<search position="after"><![CDATA[
$disabled_fields = !empty($modSettings['disabled_profile_fields'])]]></search>
<add><![CDATA[
BetterMessages_Profile($profile_fields);]]></add>
</operation>
<operation>
<search position="after"><![CDATA[ 'theme_settings',]]></search>
<add><![CDATA[ 'bmm_mode', 'hr',
]]></add>
</operation>
<operation>
<search position="before"><![CDATA[ 'ignore_boards',]]></search>
<add><![CDATA[
'bmm_mode',]]></add>
</operation>
</file>
<file name="$sourcedir/PersonalMessage.php">
<!-- MessageMain function -->
<operation>
<search position="before"><![CDATA['settings' => 'MessageSettings',]]></search>
<add><![CDATA[
'BetterMessages_ucp' => 'BetterMessages_Hook',]]></add>
</operation>
<!-- messageIndexBar function -->
<operation>
<search position="after"><![CDATA[// Do we have a limit on the amount of messages we can keep?]]></search>
<add><![CDATA[// If we are being called by the Better Messages mod, return with the array:
if (isset($_GET['sa']) && $_GET['sa'] == 'BetterMessages_ucp')
{
$context['pm_areas'] = $pm_areas;
return;
}
]]></add>
</operation>
</file>
</modification>
So if I remove those edits ...
all will be OK?