Project

General

Profile

Actions

Bug #29280

closed

Extension Manager: can't download extension from second repository

Added by Wouter Wolters over 12 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
Extension Manager
Target version:
-
Start date:
2011-08-26
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
medium
Is Regression:
No
Sprint Focus:

Description

When I try to download an extension from a second repository, which is added in the new Extension Manager, I get an error that there are network problems.
Getting the extensions.xml.gz from this repository is working fine.

I researched the code and located the problem.

In index.php in the sysext/em/classes is a function getMirrorURL. This function doesn't take the selectedRepository variable to get the mirrors array. I tried to add this with the following code :

$selectedRepo = $this->settings->getSelectedRepository();
$repoUtility = t3lib_div::makeInstance('tx_em_Repository_Utility');
$repoUtility->setRepository($selectedRepo);

$this->MOD_SETTINGS['mirrorListURL'] = $repoUtility->getRemoteMirrorListFile();
$this->fetchMetaData('mirrors');
$mirrors = unserialize($this->MOD_SETTINGS['extMirrors']);

After adding this code I could download the extensions.

In tx_em_Settings is also a getMirrorURL function. In this function the selectedRepository is used to get the mirrors array.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #25387: Installation from own TER not possibleRejected2011-03-24

Actions
Actions

Also available in: Atom PDF