When updating a Joomla installation from version 3.0.3 to 3.1.1 I encuontered the following error:
PHP Catchable fatal error: Argument 3 passed to JClientFtp::getInstance() must be an array, null given, called in /path/administrator/components/com_joomlaupdate/helpers/download.php on line 420 and defined in /path/libraries/joomla/client/ftp.php on line 192, referer: http://site/administrator/index.php?option=com_joomlaupdate
In administrator/components/com_joomlaupdate/helpers/download.php
// Connect the FTP client
$ftp = JClientFtp::getInstance(
$ftpOptions['host'], $ftpOptions['port'], null,
$ftpOptions['user'], $ftpOptions['pass']
);
The default value for that third argument is array(), and replacing the null with array() seems to solve the issue.
Labels |
Added:
?
Removed: ? ? |
||
Build | ⇒ | staging |
Thanks for reporting this. At this time we are only using github as the place to submit code fixes so I am closing the report here. The actual reporting of issues and testing fixes is still taking place on Joomlacode.
As it has been some time since you opened this issue can you please confirm that it is still valid with the current Master or Joomla 3.2 beta.
If it is still valid please can you open an item on the Joomlacode tracker in the appropriate area.
CMS Bug Reports: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemBrowse&tracker_id=8103
CMS Feature Requests: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemBrowse&tracker_id=8549