SMF icon indicating copy to clipboard operation
SMF copied to clipboard

[3.0]: Language files are not removed on mods deleting

Open dragomano opened this issue 1 year ago • 5 comments

Basic Information

sshot-7

Steps to reproduce

  1. Install any mod with hooks and language files for SMF 2.1
  2. Try to uninstall it

Expected result

<remove-dir name="$languagedir/modname" />

I think that we need to check both paths on deleting: $boarddir/Languages, and $themedir/languages (if compatibility mode is enabled)

Actual result

No response

Version/Git revision

3.0 Alpha 2

Database Engine

MySQL

Database Version

10.11.6-MariaDB

PHP Version

8.0.30

Logs

No response

Additional Information

No response

dragomano avatar Feb 09 '24 07:02 dragomano

You are correct, I will look into this when I get a chance unless somebody else gets a chance. This may not be the cleanest logic, but would only need to be done when we are running in compatibility mode.

jdarwood007 avatar Feb 09 '24 23:02 jdarwood007

I cannot reproduce this myself.

@dragomano, does the issue still exist for you? Perhaps more recent changes have solved it already, but I don't know.

Sesquipedalian avatar May 14 '24 22:05 Sesquipedalian

What mods did you use for testing?

P. S. I have installed the current version for testing and got an error on the Package manage index area - "Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in PackageManager\PackageManager.php:1639", fix - replace "$items = Utils::jsonDecode($data['data'], true);" with "$items = Utils::jsonDecode($data['data'], true) ?? [];"

dragomano avatar May 18 '24 13:05 dragomano

Several of my own. Can you give me a mod that does produce the error? Then I can figure out what is causing it.

Sesquipedalian avatar May 19 '24 01:05 Sesquipedalian

Try to install the Simillar Topics, in the compatibility mode.

dragomano avatar May 19 '24 03:05 dragomano