?
avatar ercanozkaya
ercanozkaya
2 Feb 2015

Steps to reproduce the issue

Run the following code:

$installer = new JInstaller();
$installer->loadAllAdapters();

$result = $installer->discover_install($EXTENSION_ID_TO_BE_INSTALLED);

Expected result

Extension should be installed

Actual result

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.

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
5.00

avatar ercanozkaya ercanozkaya - open - 2 Feb 2015
avatar roland-d
roland-d - comment - 3 Feb 2015

@mbabker Is this related to or are you handling this in your refactoring?

avatar brianteeman brianteeman - change - 4 Feb 2015
Labels Added: ?
avatar mbabker
mbabker - comment - 5 Feb 2015

I'll dig in to it over the next couple of days.

avatar mbabker
mbabker - comment - 9 Feb 2015

See #6024

avatar zero-24 zero-24 - change - 9 Feb 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-02-09 16:46:10
Closed_By zero-24
avatar joomla-cms-bot joomla-cms-bot - change - 9 Feb 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-02-09 16:46:09
avatar joomla-cms-bot joomla-cms-bot - close - 9 Feb 2015
avatar joomla-cms-bot joomla-cms-bot - close - 9 Feb 2015
avatar joomla-cms-bot
joomla-cms-bot - comment - 9 Feb 2015

Set to "closed" on behalf of @zero-24 by The JTracker Application at issues.joomla.org/joomla-cms/5945

avatar zero-24
zero-24 - comment - 9 Feb 2015

Closing as we have a RTC PR #6024 Thanks!


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5945.

Add a Comment

Login with GitHub to post a comment