Archives de la liste a​i​d​e​@p​a​h​e​k​o​.c​l​o​u​d​

Bug dans la RC5

<grd32

05/12/2020 10:48:32

Bonjour,

 

J’ai upgradé de la rc4 à la rc5 sans problème. Je vais sur configuration et j’ai
l’écran suivant :

 

\__/
(xx)
//||\\

Une erreur s'est produite

PHP error

Recoverable error: Method KD2\HTTP_Response::__toString() must return a string value

in ...\include\lib\Garradin/Utils.php:871

867        if (!$list) {

868            return null;

869        }

870

871        $list = json_decode($list);

872

873        if (!$list) {

874            return null;

875        }

in ...\include\lib\Garradin/Utils.php:871

→ json_decode (1 arg.)


$json

object(KD2\HTTP_Response) (10) {

  ["url"]=> string(39) "https://fossil.kd2.org/garradin/juvlist"

  ["headers"]=> object(KD2\HTTP_Headers) (1) {

  }

  ["body"]=> bool(false)

  ["fail"]=> bool(true)

  ["cookies"]=> array(0) {

  }

  ["status"]=> NULL

  ["request"]=> string(0) ""

  ["size"]=> int(0)

  ["error"]=> string(63) "SSL certificate problem: unable to get local
issuer certificate"

  ["previous"]=> NULL

}

867        if (!$list) {

868            return null;

869        }

870

871        $list = json_decode($list);

872

873        if (!$list) {

874            return null;

875        }

in ...\www\admin\config/index.php:58

→ Garradin\Utils::getLatestVersion (0 arg.)

54$server_time = time();

55

56$tpl->assign('garradin_version', garradin_version() . ' [' .
(garradin_manifest() ?: 'release') . ']');

57

58$tpl->assign('new_version', ENABLE_TECH_DETAILS ? Utils::getLatestVersion()
: null);

59$tpl->assign('php_version', phpversion());

60$tpl->assign('has_gpg_support', \KD2\Security::canUseEncryption());

61$tpl->assign('server_time', $server_time);

62

Context


id

a4fie9lj


date

2020-12-05T10:45:12+01:00


os

WINNT


language

PHP 7.3.21


environment

development


php_sapi

apache2handler


remote_ip

::1


http_method

GET


files_sent

array(0) { }


rootDirectory

L:\wamp64\www\garradin


garradin_data_root

L:\wamp64\www\garradin


garradin_version

1.0.0-rc5


url

http://garradin.loc/admin/config/

 

 

Grd

Re: Bug dans la RC5

BohwaZ/Garradin

05/12/2020 11:17:25

Corrigé RC6, merci.