Update Joomla! to version 3.6.
OK.
Argument 3 passed to JClientFtp::getInstance() must be of the type array, null given, called in /var/www/site/libraries/joomla/filesystem/file.php on line 488
Ubuntu + Nginx + PHP-7-FPM
I use FTP layer and have strong file permissions.
Title |
|
Title |
|
Labels |
Added:
?
|
Yes I have. I used 3.5.1 version. When i switch off the FTP layer, it updates correctly, but when the FTP layer is on, I have got this error.
I can confirm that, had to switch off FTP layer, too, to avoid the error.
Status | New | ⇒ | Confirmed |
Category | ⇒ | Installation Libraries |
Status | Confirmed | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-07-12 23:13:58 |
Closed_By | ⇒ | mbabker |
Labels |
Added:
?
|
I have the same issue whatever the method I use (direct, hybrid or ftp)
I have the same issue whatever the method I use (direct, hybrid or ftp)
yes, that codes global config FTP-enable setting and not the setting for Joomla upgrade method
The fix exists in J3.6.1+, older Joomla versions do not get the fix automatically, but this prevents you from running Joomla upgrade (also setting error_reporting to 'none' has not effect on this one)
Simplest way out of this is (if you can edit the file)
At about line 488 of libraries/joomla/filesystem/file.php (backup the file 1st)
find:
$ftp = JFTP::getInstance($FTPOptions['host'], $FTPOptions['port'], null, $FTPOptions['user'], $FTPOptions['pass']);
replace with: (if you get syntax error then restore the file and retry)
$ftp = JClientFtp::getInstance($FTPOptions['host'], $FTPOptions['port'], array(), $FTPOptions['user'], $FTPOptions['pass']);
Have you ever updated this site before? That specific file has not been updated for a while