ISP-Config 3.1.9 updating packages gives an empty list
short description
In this version of ispconfig I have to enable the resource for packages. After I enable it and try to update the package list I get a 200 back but no packages are found.
Added a couple of var_dumps to '/usr/local/ispconfig/interface/web/admin/software_package_list.php'
$packages_added = 0;
$repos = $app->db->queryAllRecords("SELECT software_repo_id, repo_url, repo_username, repo_password FROM software_repo WHERE active = 'y'");
if(is_array($repos) && isset($_GET['action']) && $_GET['action'] == 'repoupdate' ) {
foreach($repos as $repo) {
$client = new SoapClient(null, array('location' => $repo['repo_url'],
'uri' => $repo['repo_url']));
$packages = $client->get_packages($repo['repo_username'], $repo['repo_password']);
var_dump( $client );
var_dump( $repo );
var_dump( $repo['repo_username']);
var_dump( $repo['repo_password']);
var_dump( $packages ); exit;
if(is_array($packages)) {
With the following result
object(SoapClient)#18 (7) { ["uri"]=> string(33) "http://repo.ispconfig.org/addons/" ["location"]=> string(33) "http://repo.ispconfig.org/addons/" ["_stream_context"]=> resource(5) of type (stream-context) ["_soap_version"]=> int(1) ["httpsocket"]=> resource(6) of type (stream) ["_use_proxy"]=> int(0) ["httpurl"]=> resource(7) of type (SOAP URL) } array(4) { ["software_repo_id"]=> string(1) "1" ["repo_url"]=> string(33) "http://repo.ispconfig.org/addons/" ["repo_username"]=> string(0) "" ["repo_password"]=> string(0) "" } string(0) "" string(0) "" array(0) { }
As you can see the result from the soap call is an empty array
correct behaviour
I was expecting to see a list of packages
environment
Server OS: debian
Server OS version: 9.2
ISPConfig version: 3.1.9
PHP 7.1.12-2+0~20171207160618.12+stretch~1.gbp5c91f3 (cli) (built: Dec 7 2017 16:06:20) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.1.12-2+0~20171207160618.12+stretch~1.gbp5c91f3, Copyright (c) 1999-2017, by Zend Technologies
proposed fix
references
screenshots
log entries
[Tue Dec 26 00:40:13.897718 2017] [fcgid:warn] [pid 3612] [client 88.159.22.200:57058] mod_fcgid: stderr: PHP Warning: A non-numeric value encountered in /usr/local/ispconfig/interface/lib/classes/simplepie.inc.php on line 13341, referer: https://xxx.xxx.xxx.xxx:8080/index.php
[Tue Dec 26 00:40:13.897741 2017] [fcgid:warn] [pid 3612] [client 88.159.22.200:57058] mod_fcgid: stderr: PHP Warning: A non-numeric value encountered in /usr/local/ispconfig/interface/lib/classes/simplepie.inc.php on line 13341, referer: https://xxx.xxx.xxx.xxx:8080/index.php
[Tue Dec 26 00:40:13.897744 2017] [fcgid:warn] [pid 3612] [client 88.159.22.200:57058] mod_fcgid: stderr: PHP Warning: A non-numeric value encountered in /usr/local/ispconfig/interface/lib/classes/simplepie.inc.php on line 13341, referer: https://xxx.xxx.xxx.xxx:8080/index.php
[Tue Dec 26 00:40:13.897747 2017] [fcgid:warn] [pid 3612] [client 88.159.22.200:57058] mod_fcgid: stderr: PHP Warning: A non-numeric value encountered in /usr/local/ispconfig/interface/lib/classes/simplepie.inc.php on line 13341, referer: https://xxx.xxx.xxx.xxx:8080/index.php
[Tue Dec 26 00:40:13.897750 2017] [fcgid:warn] [pid 3612] [client 88.159.22.200:57058] mod_fcgid: stderr: PHP Warning: A non-numeric value encountered in /usr/local/ispconfig/interface/lib/classes/simplepie.inc.php on line 13341, referer: https://xxx.xxx.xxx.xxx:8080/index.php
[Tue Dec 26 00:40:13.897752 2017] [fcgid:warn] [pid 3612] [client 88.159.22.200:57058] mod_fcgid: stderr: PHP Warning: A non-numeric value encountered in /usr/local/ispconfig/interface/lib/classes/simplepie.inc.php on line 13341, referer: https://xxx.xxx.xxx.xxx:8080/index.php
[Tue Dec 26 00:40:13.897755 2017] [fcgid:warn] [pid 3612] [client 88.159.22.200:57058] mod_fcgid: stderr: PHP Warning: A non-numeric value encountered in /usr/local/ispconfig/interface/lib/classes/simplepie.inc.php on line 13341, referer: https://xxx.xxx.xxx.xxx:8080/index.php
[Tue Dec 26 00:40:13.897757 2017] [fcgid:warn] [pid 3612] [client 88.159.22.200:57058] mod_fcgid: stderr: PHP Warning: A non-numeric value encountered in /usr/local/ispconfig/interface/lib/classes/simplepie.inc.php on line 13341, referer: https://xxx.xxx.xxx.xxx:8080/index.php
[Tue Dec 26 00:40:13.897759 2017] [fcgid:warn] [pid 3612] [client 88.159.22.200:57058] mod_fcgid: stderr: PHP Warning: A non-numeric value encountered in /usr/local/ispconfig/interface/lib/classes/simplepie.inc.php on line 13341, referer: https://xxx.xxx.xxx.xxx:8080/index.php
[Tue Dec 26 00:40:13.897762 2017] [fcgid:warn] [pid 3612] [client 88.159.22.200:57058] mod_fcgid: stderr: PHP Warning: A non-numeric value encountered in /usr/local/ispconfig/interface/lib/classes/simplepie.inc.php on line 13341, referer: https://xxx.xxx.xxx.xxx:8080/index.php