?
avatar shandak
shandak
28 Jan 2015

Steps to reproduce the issue

In release version all work as expected.
Bug in J3.4.0b1 when try install components with relate libraries ex:
<libraries>
<library name="redshop"/>
<library name="tcpdf"/>
</libraries>
First library install as expected.
When joomla try install second library, he try copy files who set in first xml library.

Expected result

All relates libraries must be install.

Actual result

Broken installation process. Error: Library %s: Could not copy files from the sourcescreen shot 2015-01-28 at 07 11 11

System information (as much as possible)

Additional comments

Votes

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

avatar shandak shandak - open - 28 Jan 2015
avatar shandak shandak - change - 28 Jan 2015
The description was changed
avatar mbabker
mbabker - comment - 28 Jan 2015

Do you have a package that can be tested with? As far as I'm aware, the core system has never su

avatar mbabker
mbabker - comment - 28 Jan 2015

Ugh, fat finger on mobile, sorry.

... never supported this style XML which would mean you have to process this in an install script. With some tweaking in the JInstaller library, it is suggested to not use the singleton JInstaller::getInstance to fetch an instance because of object caching. Maybe you're hitting this issue?

avatar brianteeman brianteeman - change - 28 Jan 2015
Labels Added: ?
avatar shandak
shandak - comment - 28 Jan 2015

You right, i have some process in install script.
But for each library use new object $install = new JInstaller.
So cache cant be set there as i understand.
In bottom exmple function with install libraries
private function installLibraries($parent)
{
// Required objects
$installer = new JInstaller;
$manifest = $parent->get('manifest');
$src = $parent->getParent()->getPath('source');

    if ($nodes = $manifest->libraries->library)
    {
        foreach ($nodes as $node)
        {
            $extName = $node->attributes()->name;
            $extPath = $src . '/libraries/' . $extName;
            $result  = 0;

            if (is_dir($extPath))
            {
                $result = $installer->install($extPath);
            }

            $this->_storeStatus('libraries', array('name' => $extName, 'result' => $result));
        }
    }
}<hr /><sub>This comment was created with the <a href="https://github.com/joomla/jissues">J!Tracker Application</a> at <a href="http://issues.joomla.org/tracker/joomla-cms/5909">issues.joomla.org/joomla-cms/5909</a>.</sub>
avatar shandak
shandak - comment - 28 Jan 2015

Guys thank you for help, i find a cache. Realy i use singleton. Need move $installer = new JInstaller; in foreach.
Issue can be closed.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5909.
avatar zero-24 zero-24 - change - 28 Jan 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-01-28 16:06:13
Closed_By zero-24
avatar jissues-bot
jissues-bot - comment - 28 Jan 2015

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

avatar jissues-bot jissues-bot - close - 28 Jan 2015
avatar zero-24
zero-24 - comment - 28 Jan 2015

Closing as requested thanks for the update


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

Add a Comment

Login with GitHub to post a comment