User tests: Successful: Unsuccessful:
When trying to uninstall a module, the following error is thrown:
Return value of Joomla\CMS\Installer\Adapter\ModuleAdapter::finaliseUninstall() must be of the type boolean, null returned
This PR addresses that
No PHP errors
Return value of Joomla\CMS\Installer\Adapter\ModuleAdapter::finaliseUninstall() must be of the type boolean, null returned
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
Yes please.
Labels |
Added:
?
|
So do we actually want to ignore the error like the comment says or not? It doesn't seem like a db query we want to ignore :/
It might be worth raising a warning in the UI but it's not worth failing the overall uninstall over.
Cool, I'll do that this evening then
Removing $retval = false;
as we've now defined $retval = true;
at the top of the function.
I can raise a warning if it really is needed (e.g Extension could not be deleted from the #__modules table in the database
), just let me know what the message should say exactly
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-11-14 15:53:31 |
Closed_By | ⇒ | wilsonge |
Hi,
I run into the exact same problem with the finaliseUninstall in the ComponentAdapter (libraries/src/Installer/Adapter/ComponentAdapter.php)
Was this fixed only for the ModuleAdapter or for other Adapters, too?
I installed Joomla! 4 from joomla-cms-4.0.0-alpha1.zip with date form 21.11.2017.
Joomla! 4.0.0-dev Development [ Amani ] 31-March-2017 23:59 GMT
php 7.1.7 on local xampp on windows 7
Regards,
Aicha
@avjoomla
Please test last branch https://github.com/joomla/joomla-cms/archive/4.0-dev.zip
@infograf768
Thanks, that was my question. This version works fine.
Just as some additional information for your:
On November 11th, 2017 JED published a Newsletter "Breaking News: Joomla 4.0 Alpha 1 is here!"
With a download link for Joomla! 4.0 Alpha 1
https://github.com/joomla/joomla-cms/releases/tag/4.0.0-alpha1
This is actually the link, where I downloaded the installation from, that is not working.
Sorry for causing you additional work.
Regards,
Aicha
That's ok :) Lots has changed in the last month obviously :) You can always download the latest nightly builds (which are rebuilt at 1am every morning) from https://developer.joomla.org/nightly-builds.html - I'll make sure I ping JED and ask them to also link to the nightlies page in the future. It's a really good point
I don't think that's the right fix. We aren't initializing
$retval
anywhere to return true, so there's a mix of undefined variable for when everything goes smoothly and the lack of a boolean return.