Run the following code:
$installer = new JInstaller();
$installer->loadAllAdapters();
$result = $installer->discover_install($EXTENSION_ID_TO_BE_INSTALLED);
Extension should be installed
Installation failure + PHP Notice (+ a PHP warning down the road) following this execution path:
A notice is generated and the object is in an undetermined state.
I think a proper fix here would be abstracting the code in JInstaller in a getAdapter method. This method would set the parameters in the returned object whether it was just constructed or not.
Labels |
Added:
?
|
I'll dig in to it over the next couple of days.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-02-09 16:46:10 |
Closed_By | ⇒ | zero-24 |
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-02-09 16:46:09 |
Set to "closed" on behalf of @zero-24 by The JTracker Application at issues.joomla.org/joomla-cms/5945
Closing as we have a RTC PR #6024 Thanks!
@mbabker Is this related to or are you handling this in your refactoring?