New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.0] uninstalling a file extension does not trigger manifest script #19085
Labels
Comments
joomla-cms-bot
changed the title
Joomla! 4 uninstalling a file extension does not trigger manifest script
[4.0] uninstalling a file extension does not trigger manifest script
Dec 16, 2017
Just to confirm that this works on J3 ?? |
Yes, tested with Joomla! 3.8.3 |
@avjoomla can you please test if this Issue is resolved? |
Hi, |
4 tasks
#39180 should fix this. Please test that PR. Closing this issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce the issue
Install a file extension that includes a script file with in manifest xml. Scriptfile should have a postflight, preflight or unistall method with some custom code. Unistall the extension.
I necessary, I could create a very small test installation zip for you.
Expected result
preflight, uninstall and postflight methods in manifest script (script.php) are executed
Actual result
Non of the methods is executed but script file is deleted properly
System information (as much as possible)
Joomla! 4.0.0-dev Development [ Amani ] 19-November-2017 16:34 GMT
Local XAMPP Apache/2.4.26 (Win32) OpenSSL/1.0.2l PHP/7.1.7 on Windows 7
Additional comments
This ussue only happens on uninstall. Install works fine.
I think basically the problem is, that the getElement() function in the FileAdapter class tries to locate the script file with
$manifestPath = \JPath::clean($this->parent->getPath('manifest'));
but this path is not set at any time for the FileAdapter
On other adpaters (like PackageAdapter, PluginAdapter this issue does not happen, too).
The text was updated successfully, but these errors were encountered: